Comparing Cardinalities
Can we say one infinite set is "bigger" than another? This holds even when we cannot literally count either one. This question sounds paradoxical until we notice something. Counting is really just matching. To check two finite piles of stones have the same size, we pair off stones one by one. None are left over on either side. Nothing in this pairing idea requires finiteness. This observation, due to Georg Cantor in the 1870s, matters greatly. It turns "same size" and "no bigger than" into precise, provable notions. This works for any sets, finite or infinite. This matters because it lets us organize the entire universe of sets by size. It reveals structure invisible to naive intuition. There are exactly as many even numbers as natural numbers. But there are strictly more real numbers than natural numbers. Without a rigorous definition, statements like these are meaningless wordplay. With one, they become theorems. The comparison of cardinalities is the entry point to a hierarchy of infinities. This is one of the most striking discoveries in the foundations of mathematics. The big picture is this: we replace "counting elements" with "constructing functions between sets." A set is no bigger than a set if there is an injection from into . This means placing a labeled copy of inside without collision. Two sets are the same size (equinumerous) if there is a bijection between them. This matches every element of one to exactly one element of the other, with nothing left over. This article builds these definitions from scratch. It proves that "no bigger than" behaves like an order (reflexive and transitive). It also proves that equinumerosity is an equivalence relation. What follows: the formal definitions of equinumerosity and of the relation . Also included is a theorem establishing their basic order-like properties, with a complete, rigorous proof. There are fully worked examples with genuinely asymmetric infinite sets. A counterexample shows why injectivity is essential, not mere existence of some function. Finally, there is a survey of where this comparison machinery is used across mathematics. We stop just short of the deepest fact in the subject. That fact is that and together force . This is the Schroeder-Bernstein Theorem, treated on its own.
- Two sets are equinumerous () iff there exists a bijection .
- means there exists an injection ; this makes sense with no reference to counting.
- Equinumerosity is an equivalence relation: reflexive, symmetric, transitive — proved directly from function composition and inverses.
- on cardinalities is reflexive and transitive, giving a genuine (pre-)order on the "sizes" of sets.
- Injections reveal surprises: and the even numbers are equinumerous, though one is a proper subset of the other.
- Key idea: replace counting with matching — a bijection (or injection) is a rigorous, finiteness-free way to compare sizes of sets.
Where this lives today
Cardinal comparison is not a museum piece; it is load-bearing machinery throughout modern mathematics and its applications.
Foundations and logic. The entire classification of infinite sets into countable and uncountable — and further into the hierarchy — rests on exactly the definitions given here. The question of whether there is a set strictly between and (the Continuum Hypothesis) is phrased entirely in the language of and developed above, and is a central object of study in modern set theory and independence results (Gödel, Cohen).
Computability theory and complexity. Reductions between decision problems are often literally injections (or computable injections) witnessing that one problem is "no harder" than another; the notion of many-one reducibility is a computable analogue of , and cardinality-style arguments (diagonalization) prove the existence of undecidable and non-computable sets.
Combinatorics. Injective and bijective proofs — showing two finite structures have equal size by exhibiting an explicit bijection, rather than computing both counts and comparing numerals — are a core proof technique, a finite-world echo of exactly the equinumerosity idea developed here for arbitrary sets.
Measure theory and analysis. The distinction between countable and uncountable sets (a direct descendant of cardinal comparison) determines whether a set can have positive Lebesgue measure, underlies almost-everywhere convergence arguments, and separates "small" exceptional sets from "generic" behavior throughout real analysis.
Cryptography. Injective functions (and their inverses) are the mathematical backbone of encryption schemes: a cipher must act injectively on messages (no two distinct plaintexts may collide to the same ciphertext) precisely so that decryption is well-defined — an applied instance of the injection concept central to this article.
Statistics and data science. Encoding schemes (hashing, feature embeddings) rely on injectivity to guarantee no information is lost when mapping a data domain into another representation space; cardinality comparisons between a sample space and a representation space govern whether lossless encoding is even possible.
Ask the tutor: How does the Schröder–Bernstein theorem actually build a single bijection out of two given injections?
Let and be sets.
Equinumerosity. We say and are equinumerous, written , if there exists a bijection (that is, is both injective and surjective). We also write for this relation, understood purely as shorthand for "" — we are not here assuming cardinal numbers exist as objects, only using as notation for the relation .
Comparison. We say has cardinality less than or equal to that of , written
if there exists an injection . We say if but it is not the case that (equivalently, as we will later be able to justify via The Schroeder-Bernstein Theorem, not the case that ). These definitions apply to all sets, finite or infinite, and make no reference to any prior notion of "number of elements."
Intuition
The finite case is the anchor for intuition. Suppose and . To see , exhibit an injection, say : each suit lands on a distinct number, with room to spare (the number is unused). No injection can go the other way — has "too many" elements to fit into without a collision — and this is exactly the content of the Finite Sets and Counting pigeonhole principle. The definition of simply extracts the "fits without collision" idea and detaches it from any finite counting process, so it survives unchanged when and are infinite. The famous twist is that for infinite sets, a set can be equinumerous with a proper subset of itself — something utterly impossible for finite sets. The natural numbers and the even naturals give a clean picture: , yet the map is a bijection . There is no contradiction, because "same size" for infinite sets is defined by the existence of a bijection, not by some prior notion of counting that a proper-subset argument would violate. This is precisely what makes cardinal comparison a genuinely new and useful concept rather than a restatement of finite counting.
Theorem
Let be sets. 1. (Reflexivity of and of ) , and hence . 2. (Symmetry of ) If then . 3. (Transitivity of ) If and then . 4. (Transitivity of ) If and then . 5. (Monotonicity under ) If then and . Consequently, is an equivalence relation on any collection of sets, and is reflexive and transitive on cardinalities — a preorder — compatible with in the sense of (5).
We use only the definitions of injection, surjection, bijection, composition of functions, and inverse function, all from Injections, Surjections.
(1) Reflexivity. The identity map , defined by for all , is a bijection: it is injective because literally means ; it is surjective because for every , taking gives . Hence . Since a bijection is in particular an injection, itself also witnesses .
(2) Symmetry. Suppose , witnessed by a bijection . Since is a bijection, it has an inverse function , defined by: is the unique with (this exists because is surjective, and is unique because is injective). We must check is itself a bijection. Injectivity of : suppose . By definition of , this means and . Since is a function, is a single value, so . Surjectivity of : let be arbitrary, and set . By definition of , is the unique element of mapping to under ; since , uniqueness gives . Hence every is hit. So is a bijection, and .
(3) Transitivity of . Suppose and are bijections. Consider the composite , defined by . Injectivity: suppose , i.e. . Since is injective, . Since is injective, . Surjectivity: let . Since is surjective, there is with . Since is surjective, there is with . Then . So is a bijection , and .
(4) Transitivity of . Suppose and are injections (not assumed surjective). We claim is an injection. Suppose . As above, injectivity of gives , and injectivity of gives . This is exactly injectivity; we make no surjectivity claim about , and none is needed. So witnesses .
(5) Monotonicity. If via a bijection , then is in particular an injection , giving ; and by part (2), via , which is in particular an injection , giving . Finally: is reflexive by (1), symmetric by (2), transitive by (3), so it is an equivalence relation on any set of sets under consideration. The relation is reflexive by (1) and transitive by (4); together with (5), this shows descends to a well-defined, reflexive, transitive relation on -equivalence classes ("cardinalities"), i.e. a preorder.
∎Note what is not claimed here: antisymmetry of , i.e. that and imply . That implication is true but is a separate, much deeper theorem — the Schroeder-Bernstein Theorem — requiring a genuinely different construction (building a bijection out of two one-directional injections), and it is not a routine consequence of the preorder properties proved above.
Worked examples
Example 1: and are equinumerous. Let and let . These look structurally different — has "twice as many" elements in the naive sense, stretching in two directions — yet we claim . Define by
Concretely: — the map zig-zags outward from , alternately hitting nonnegative and negative integers. Injectivity. Suppose . If : the only way is via the even branch (the odd branch always outputs a strictly negative integer, since for odd ), so are both even with , giving . If : only the odd branch can produce a negative value, so are odd with , giving . Either way . Surjectivity. Given : if , take (even), and . If , take (odd, since is odd for any integer ), and . So is a bijection, hence , i.e. . This is our first hint that "-sized" infinity (later called countable, see Countable Sets) can absorb sets that look larger.
Example 2: and , via explicit injections (asymmetric, non-bijective witnesses). Here we illustrate the inequality notion with maps that are injective but deliberately not surjective, to show does not require a bijection. Let denote the positive rationals. First, : define by (viewing each natural number as the rational ). This is injective (if then ) but wildly non-surjective — it misses every non-integer rational such as or . That is fine: only demands an injection, not a bijection. Second, exhibit an injection . Every positive rational has a unique representation as with and (lowest terms). Define
Injectivity. If , then by definition both and equal the lowest-terms fraction , so . This is again far from surjective: e.g. is never hit, since is not in lowest terms (it reduces to , whose lowest-terms pair is ). By transitivity of (part 4 of the theorem, using the composite for any fixed injection composed appropriately — here directly itself already lands in ), we get . Combined with the standard Cantor pairing bijection (constructed elsewhere), one obtains a chain of inequalities that — once Schröder–Bernstein is available — collapses to . At the present stage, without invoking that theorem, we have rigorously shown only the one-directional inequalities above; this is exactly the kind of gap Schröder–Bernstein is built to close, and it is worth seeing that gap concretely before filling it.
It is tempting to think any function already shows is "no bigger than" . This is false, and the fix — requiring to be injective — is exactly why the definition of specifies an injection rather than an arbitrary function. Take (five elements) and (one element). Define by for every . This is a perfectly well-defined function — indeed the only function , since has just one element. If we (wrongly) declared " whenever some function exists," we would conclude , i.e. the 5-element set is "no bigger than" the 1-element set. This directly contradicts the finite pigeonhole principle from Finite Sets and Counting: five pigeons cannot be placed into one hole without collisions, and indeed no injection exists (any function from a 5-element set to a 1-element set must send at least two distinct elements to the same image, by pigeonhole). The problem is that a non-injective function collapses distinct elements of onto the same element of , discarding information about how large is. Injectivity is precisely the requirement that guarantees contains a "faithful copy" of — a subset of in bijection with — via the image , over which does become a bijection onto its image. Dropping injectivity destroys this faithful-copy property, and with it the entire sense in which measures relative size. This is why the definition insists on an injection, and why weakening that single hypothesis breaks the theorem's intended meaning immediately, even at the level of finite sets.
Scope, edge cases & common traps
| Situation | What holds | What fails / caution |
|---|---|---|
| both finite | (injection sense) matches ordinary | None; the definitions agree by the pigeonhole principle |
| finite, infinite | Always | The converse injection () never exists |
| , both infinite | Still can have (e.g. , ) | Proper-subset intuition from finite sets fails; do not assume |
| Composing functions to compare size | Injections compose to injections (proved above) | A composite of an injection with a non-injective function need not be injective |
| and | Together force | True but not proved here — needs Schroeder-Bernstein Theorem; do not treat it as automatic from reflexivity/transitivity |
| "There's a function " | Says nothing about relative size | Only injections certify ; surjections certify (a related but distinct fact) |
The mathematician behind it
Origins · 1 minGeorg Cantor and how this was discovered
Georg Cantor developed the theory of comparing infinite sets by bijection and injection in the 1870s, against significant resistance from contemporaries such as Leopold Kronecker, who rejected the legitimacy of completed infinities as mathematical objects. Cantor's insight — that "same size" could be defined by pairing rather than counting — let him prove, among other things, that the real numbers are strictly more numerous than the natural numbers (his 1874 and 1891 diagonal arguments), launching the study of a hierarchy of distinct infinite cardinalities. His work laid the groundwork for modern set theory and, eventually, for the formal foundations of essentially all of mathematics.
Why use injections instead of just "there's a function from A to B" to define ?
A function alone can collapse many elements of onto one element of , discarding size information entirely — as the counterexample shows with a five-element set mapping into a singleton. An injection, by contrast, guarantees that contains a subset that is a perfect, collision-free copy of : restricting the codomain to the image gives a bijection . That faithful embedding is exactly the mathematical content of " fits inside without overcrowding," which is what "no bigger than" should mean. Without injectivity, the relation would be trivially true between almost any two nonempty sets, making it useless as a size comparison.
Is the same as saying A and B have the same elements?
No — equinumerosity has nothing to do with what the elements are, only with whether they can be perfectly paired up. The sets and share no elements at all, yet are equinumerous via any bijection pairing them off, such as , , . Equinumerosity is a purely structural notion of "same number of elements," abstracted entirely away from identity or content, which is exactly what makes it meaningful to compare, say, a set of numbers to a set of geometric points.
Can a set be equinumerous with a proper subset of itself?
Yes, and this happens if and only if the set is infinite (this converse characterization, due to Dedekind, is a deeper fact than what is proved in this article, but the forward direction — infinite sets can have this property — is fully illustrated by above). For finite sets this is impossible: a routine pigeonhole argument shows no finite set is equinumerous with a proper subset of itself. The possibility of this phenomenon for infinite sets is often taken, following Dedekind, as the very definition of "infinite," making it a defining rather than incidental feature of infinite cardinality.
Does |A| ≤ |B| and A ⊆ B automatically hold, or is subset containment special?
If , then the inclusion map , , is automatically injective (it's literally the identity, just with a bigger codomain listed), so always implies . But the converse direction is subtler: does not require to literally be a subset of — it only requires a faithful copy of to sit inside somewhere, via some injection, possibly relabeling elements entirely (as in the -style examples above, run in reverse).
How does this relate to countable and uncountable sets?
A set is called countably infinite precisely when , i.e. in the sense defined here; it is countable if it is finite or countably infinite. "Uncountable" means infinite but not equinumerous with — equivalently (once Schröder–Bernstein is available) that strictly. All of this vocabulary is literally built directly on top of the equinumerosity and relations defined in this article; Countable Sets is the natural next topic once these definitions are in hand.
Why isn't antisymmetry of ≤ proved alongside reflexivity and transitivity here?
Because it requires a fundamentally different argument. Reflexivity and transitivity of follow almost immediately from composing (or not needing to compose) injections, as shown in the proof above. Antisymmetry — that mutual injectability forces a bijection to exist — requires actively constructing a bijection out of two possibly very different injections and , typically via a back-and-forth or "ping-pong" tracing argument through chains of preimages. This construction is substantial enough to deserve its own dedicated treatment as the Schroeder-Bernstein Theorem, rather than being folded into the basic order-property proof here.
Is it circular to define |A| = |B| using "=" when we haven't defined what |A| "is" as an object?
No — this article deliberately treats and as notation for the relations and "there is an injection ," without asserting that names some independently existing "cardinal number" object. Making cardinals into bona fide objects (e.g. via equivalence classes or, in ZF with the Axiom of Choice, via least-rank representatives) is a further construction built on top of these relations, not a prerequisite for them. Everything proved here is fully rigorous without ever needing to denote anything beyond shorthand for the relation.