In the Dialogues Concerning Two New Sciences (1638), Galileo observes that every integer is the root of exactly one square and every square has exactly one root, so that there should be as many squares as integers; yet the squares form a proper part of the integers, so that there should be fewer of them. He concludes that the attributes “equal”, “greater” and “smaller” do not apply to infinite quantities.
Cantor kept the first intuition as a definition: two sets have the same size when their elements can be matched one-to-one. The second intuition, that a proper part is smaller than the whole, is then a theorem about finite sets which fails for infinite ones. This lesson sets up the definitions and proves the facts about finite sets that the comparison relies on.
1.1 Functions and inverses
All functions in this course are total: a function assigns to every an element . For , the image of is , and for the preimage of is . The identity function of is written .
A function is
- injective if for all , implies ;
- surjective if , that is, every is of the form ;
- bijective if it is both injective and surjective.
A composition of injections is an injection, and a composition of surjections is a surjection: if and are surjective and , pick with , then with . Hence a composition of bijections is a bijection.
Let .
- If , then is injective if and only if there is with (a left inverse).
- If there is with (a right inverse), then is surjective.
- is bijective if and only if there is with and . Such a is unique; it is written and is itself a bijection.
- Suppose injective, and fix . For there is exactly one with , by injectivity; let be this . For , let . Then for every . Conversely, if and , then .
- Every equals , so it lies in .
- If is bijective, define as the unique with ; both identities hold. Conversely, the first identity gives injectivity, as in item 1, and the second gives surjectivity, by item 2. If and both satisfy the two identities, then . Finally has as a two-sided inverse, so it is bijective.
The converse of item 2 — every surjection has a right inverse — requires choosing, for each , one element of the non-empty set . For arbitrary sets, this is exactly the axiom of choice. No choice is needed when : take to be the least element of . This device, replacing an arbitrary choice by a least element, is used repeatedly in this course.
1.2 Equipotence
Two sets and are equipotent if there is a bijection from to . We then write .
For all sets , , : ; if then ; if and then .
The identity is a bijection. If is a bijection, so is , by Lemma 1.2. A composition of bijections is a bijection.
- and the set of squares are equipotent, via , which is injective on since squaring is strictly increasing on non-negative numbers.
- and are equipotent, via ; more generally, and via .
- and the set of even numbers are equipotent, via .
- The open interval and are equipotent, via . Its inverse is : if , then has the sign of and , so that and . Since every non-empty open interval is equipotent to by an affine map, all non-empty open intervals are equipotent to .
In each of the first three examples, a set is equipotent to a proper subset of itself. This is the phenomenon Galileo found paradoxical, and the next section shows that it cannot happen for finite sets.
The notation suggests an equality between two objects, the cardinalities of and . A cardinality can be defined as a set (in ZFC, the least ordinal equipotent to ), but this course does not need it: the relation is defined directly, and on its own is only a notation.
1.3 Finite sets
For , write , so that .
A set is finite if for some , and infinite otherwise.
That is determined by — the number of elements of — is a consequence of the following principle.
For all , there is no injection from into .
By induction on . For : since , the set contains , and there is no function at all from a non-empty set into .
Suppose the statement holds for , and let be injective, with . If , then maps injectively into , which contradicts the induction hypothesis since . Otherwise for a unique . Let exchange and and fix every other element. Then is injective and sends to ; by injectivity, it sends no element of to . So its restriction to is an injection into , with , which contradicts the induction hypothesis.
- If , then .
- If is finite, is not equipotent to any proper subset .
- is infinite.
- If , say , a bijection would be an injection, contradicting Lemma 1.9.
- Let be a bijection, and suppose is a bijection onto . Pick . Then ; let be the permutation of exchanging and . The map is a bijection sending to , so it sends into . Then is an injection from into , a contradiction.
- By item 2, since is equipotent to its proper subset .
So a finite set has a well-defined number of elements, and Galileo’s matching is a property of infinite sets only. Dedekind took the converse as a definition: a set is Dedekind-infinite if it is equipotent to a proper subset. That every infinite set is Dedekind-infinite uses the axiom of choice (in a weak form); see Exercise 3.16 in the lesson on countable sets.
1.4 Subpotence
Intuitively, is at least as large as if every element of can be given its own representative in .
A set is subpotent to a set if there is an injection from into . We then write , and otherwise. We write if and .
If , the inclusion map shows . By Lemma 1.9, whenever .
The relation is reflexive and transitive: , and if and , then . Moreover, it is compatible with equipotence: if and , then if and only if .
The identity is an injection. If and are injections and in , then by injectivity of , hence by injectivity of ; so is an injection. For the last statement, if and are bijections and is an injection, then is an injection; the converse is symmetric.
Surjections compare sets in the opposite direction, at least when the domain is a set of integers.
If and is surjective, then .
For , the set is a non-empty set of integers; let be its least element. Then , so has a left inverse and is injective by Lemma 1.2.
For arbitrary , the same statement holds under the axiom of choice (Remark 1.3). Two questions remain. Is antisymmetric, that is, do and imply ? This is the Cantor–Bernstein theorem of the next lesson. Is there a pair of infinite sets with ? This is Cantor’s diagonal argument, three lessons ahead.
1.5 Exercises
Let . Show that if , then .
Solution
Let be an injection. Define by , for , and for . This is well defined since is injective. It is injective, since it is injective on each of the three pieces , and , whose images , and are disjoint. It is surjective, since these three images cover .
Show that every subset of a finite set is finite.
Solution
It suffices to treat subsets , by transporting through a bijection. By induction on : for , . If , then is in bijection with some via some , by the induction hypothesis. If , then . Otherwise, extend by ; this is a bijection from to .
Show that if is finite and is injective, then is surjective. Show that this fails for .
Solution
If were injective and not surjective, then would be a bijection from onto the proper subset , which contradicts Corollary 1.10. For , the successor is injective and not surjective.
1.6 Notes and references
The passage on squares and roots is in the First Day of Galileo’s Discorsi (1638). Cantor introduced the comparison of sets by one-to-one correspondences in his papers of 1874 and 1878, under the name Mächtigkeit (power); the term “equipotent” derives from it. Dedekind defined infinite sets as those equipotent to a proper subset in Was sind und was sollen die Zahlen? (1888). For a systematic treatment of cardinality in axiomatic set theory, see Hrbacek and Jech.
- G. Galilei, Discorsi e dimostrazioni matematiche intorno a due nuove scienze, Leiden, 1638.
- G. Cantor, Ein Beitrag zur Mannigfaltigkeitslehre, Journal für die reine und angewandte Mathematik 84 (1878), 242–258.
- R. Dedekind, Was sind und was sollen die Zahlen?, Vieweg, Braunschweig, 1888.
- K. Hrbacek and T. Jech, Introduction to Set Theory, 3rd edition, Marcel Dekker, 1999.