Mathematics · Book 3 · Bachelor Year 1

University Mathematics — Year 1

University Mathematics — Year 1 · Bachelor Year 1

1Logic, Sets and Maps

Up to now, proofs have been carried out with an informal but honest idea of what “proving” means. This first chapter of undergraduate mathematics makes the rules of the game explicit: what a mathematical statement is, how the connectives and quantifiers combine statements, which moves are legal in a proof — and then builds, on this footing, the two universal languages of mathematics: sets and maps.

1.1 Statements and connectives

Definition 1.1 (Statement, connectives)

A statement (or proposition) is a sentence which is either true (T) or false (F) — exactly one of the two. From statements PP and QQ one forms:

  • the negation ¬P\lnot P (“not PP”), true exactly when PP is false;
  • the conjunction PQP \land Q (“PP and QQ”), true exactly when both are true;
  • the disjunction PQP \lor Q (“PP or QQ”), true exactly when at least one is true (this “or” is inclusive);
  • the implication P    QP \implies Q, false exactly when PP is true and QQ is false;
  • the equivalence P    QP \iff Q, true exactly when PP and QQ have the same truth value.

Remark 1.2

The truth table of P    QP \implies Q deserves a pause: when PP is false, P    QP \implies Q is true, whatever QQ is. “If 2<12 < 1 then 0=50 = 5” is a true implication. An implication asserts nothing about what happens when its hypothesis fails.

Proposition 1.3 (Rules of computation on statements)

For all statements PP, QQ, RR:

  1. ¬(¬P)    P\lnot(\lnot P) \iff P;
  2. De Morgan’s laws: ¬(PQ)    (¬P)(¬Q)\lnot(P \land Q) \iff (\lnot P) \lor (\lnot Q) and ¬(PQ)    (¬P)(¬Q)\lnot(P \lor Q) \iff (\lnot P) \land (\lnot Q);
  3. (P    Q)    ((¬P)Q)(P \implies Q) \iff \bigl((\lnot P) \lor Q\bigr), hence ¬(P    Q)    P(¬Q)\lnot(P \implies Q) \iff P \land (\lnot Q);
  4. contraposition: (P    Q)    ((¬Q)    (¬P))(P \implies Q) \iff \bigl((\lnot Q) \implies (\lnot P)\bigr);
  5. (P    Q)    ((P    Q)(Q    P))(P \iff Q) \iff \bigl((P \implies Q) \land (Q \implies P)\bigr);
  6. distributivity: P(QR)    (PQ)(PR)P \land (Q \lor R) \iff (P \land Q) \lor (P \land R) and P(QR)    (PQ)(PR)P \lor (Q \land R) \iff (P \lor Q) \land (P \lor R).

Proof. Each equivalence is checked by comparing truth tables: two compound statements built from PP, QQ, RR are equivalent exactly when they take the same truth value in each of the (four or eight) cases. Let us display one table in full, for the first De Morgan law:

PPQQPQP \land Q¬(PQ)\lnot(P \land Q)¬P\lnot P¬Q\lnot Q(¬P)(¬Q)(\lnot P) \lor (\lnot Q)
TTTFFFF
TFFTFTT
FTFTTFT
FFFTTTT

Columns 44 and 77 coincide, which proves the law. For contraposition a verbal shortcut is quicker: P    QP \implies Q is false exactly in the case (PP true, QQ false), and (¬Q)    (¬P)(\lnot Q) \implies (\lnot P) is false exactly in the case (¬Q\lnot Q true, ¬P\lnot P false), i.e. (QQ false, PP true) — the same single case, so the two implications have identical tables. The remaining rules are checked the same way; note that (3) reduces every implication to a disjunction, so that (2) mechanically produces the negation rule ¬(P    Q)    P(¬Q)\lnot(P \implies Q) \iff P \land (\lnot Q): to contradict an implication one must exhibit a case where the hypothesis holds and the conclusion fails.

1.2 Quantifiers

Definition 1.4 (Quantifiers)

Let P(x)P(x) be a property of an element xx of a set EE.

  • xE, P(x)\forall x \in E,\ P(x) (“for all xx in EE, P(x)P(x)”) is true when every element of EE satisfies PP;
  • xE, P(x)\exists x \in E,\ P(x) (“there exists xx in EE such that P(x)P(x)”) is true when at least one element of EE satisfies PP.

One writes !\exists! for “there exists a unique”.

Proposition 1.5 (Negation of quantifiers)

¬(xE, P(x))    xE, ¬P(x),¬(xE, P(x))    xE, ¬P(x).\lnot\bigl(\forall x \in E,\ P(x)\bigr) \iff \exists x \in E,\ \lnot P(x), \qquad \lnot\bigl(\exists x \in E,\ P(x)\bigr) \iff \forall x \in E,\ \lnot P(x).

Proof. Let us argue the first equivalence in both directions; the second is symmetric. If xE, P(x)\forall x \in E,\ P(x) is false, then not every element satisfies PP: the set A={xE:¬P(x)}A = \{x \in E : \lnot P(x)\} cannot be empty, and any of its elements witnesses xE, ¬P(x)\exists x \in E,\ \lnot P(x). Conversely, if some x0Ex_0 \in E satisfies ¬P(x0)\lnot P(x_0), then x0x_0 is a counterexample and the universal statement fails. For the second rule: “no xx satisfies PP” means the set {x:P(x)}\{x : P(x)\} is empty, i.e. every xx lies in its complement AA. Applied in cascade to a nested prefix of quantifiers, the two rules give the mechanical procedure of Example 1.8: the negation walks left to right, flipping every \forall into \exists and every \exists into \forall, and finally negates the innermost predicate.

Example 1.6 (Negating everyday mathematical sentences)

Let f ⁣:RRf \colon \R \to \R. The sentence “ff is increasing” reads

xR, yR,xy    f(x)f(y),\forall x \in \R,\ \forall y \in \R,\quad x \leq y \implies f(x) \leq f(y) ,

and its negation, by Proposition 1.5 plus the rule ¬(P    Q)    P¬Q\lnot(P \implies Q) \iff P \land \lnot Q:

xR, yR,xy  and  f(x)>f(y):\exists x \in \R,\ \exists y \in \R,\quad x \leq y \ \text{ and }\ f(x) > f(y) :

a single witnessing pair suffices. Likewise “ff is bounded” is MR, xR, f(x)M\exists M \in \R,\ \forall x \in \R,\ \abs{f(x)} \leq M, with negation

MR, xR,f(x)>M:\forall M \in \R,\ \exists x \in \R,\quad \abs{f(x)} > M :

whatever bound is proposed, some point beats it. The insight: a correct negation never contains “not” applied to a quantified block — it is a new positive statement, in which the roles are exchanged: one now produces the witnesses one previously received.

Example 1.7 (Order of quantifiers)

The order of different quantifiers matters:

xR, yR, y>xis true (take y=x+1),\forall x \in \R,\ \exists y \in \R,\ y > x \quad\text{is true (take } y = x+1\text{),}
yR, xR, y>xis false (no real number exceeds all reals).\exists y \in \R,\ \forall x \in \R,\ y > x \quad\text{is false (no real number exceeds all reals).}

In the first statement yy may depend on xx; in the second, one single yy must work for all xx. Two identical quantifiers, on the other hand, always commute.

Example 1.8 (Reading a definition with three quantifiers)

The sentence “the sequence (un)(u_n) converges to \ell” will be written in Chapter 11 as

ε>0, NN, nN,unε.\forall \varepsilon > 0,\ \exists N \in \N,\ \forall n \geq N,\quad \abs{u_n - \ell} \leq \varepsilon .

Its negation, by Proposition 1.5 applied three times, is

ε>0, NN, nN,un>ε.\exists \varepsilon > 0,\ \forall N \in \N,\ \exists n \geq N,\quad \abs{u_n - \ell} > \varepsilon .

Being able to negate such sentences mechanically, without thinking about what they mean, is a genuine skill: it separates the logical work from the mathematical work.

1.3 Proof techniques

Method 1.9 (The standard proof patterns)

To prove…

  1. an implication P    QP \implies Q directly: assume PP, deduce QQ;
  2. by contraposition: assume ¬Q\lnot Q, deduce ¬P\lnot P — valid by Proposition 1.3 (4);
  3. by contradiction: assume the statement is false, derive a contradiction;
  4. an equivalence: prove both implications separately (or chain known equivalences);
  5. a “for all” statement: pick an arbitrary xx in EE (“let xEx \in E”) and prove P(x)P(x);
  6. a “there exists” statement: exhibit a witness, or prove existence indirectly;
  7. by induction: see Theorem 1.12.

When proving a statement about a well-chosen but arbitrary element, never give the element extra properties: “let xRx \in \R” followed by “since x>0x > 0…” proves nothing about negative xx.

Remark 1.10 (Common pitfalls in proofs)

Four classical traps, all worth naming once.

  1. Converse instead of contrapositive. Q    PQ \implies P is not equivalent to P    QP \implies Q; only ¬Q    ¬P\lnot Q \implies \lnot P is. “If it rains, the street is wet” does not entitle one to conclude rain from a wet street.
  2. Proving an equivalence by one implication. An “iff” claim is two theorems; announce which direction is being proved, and prove both. Chains of     \iff are legal only if every link is genuinely reversible — squaring an equation, for instance, is not.
  3. Backwards proofs. Starting from the desired conclusion and deducing a true statement proves nothing (from 1=1-1 = 1 one derives the true 1=11 = 1 by squaring). A computation may be discovered backwards, but it must be written forwards, or with explicit equivalences.
  4. Fixed witness versus arbitrary element. To prove x, P(x)\exists x,\ P(x), one may exhibit a single cleverly chosen xx; to prove x, P(x)\forall x,\ P(x), the chosen xx must remain arbitrary. Mixing the two — checking a universal claim on an example — is the most common error in beginners’ copies.

Example 1.11 (Contraposition and contradiction at work)

For nNn \in \N: if n2n^2 is even then nn is even. By contraposition: if nn is odd, n=2k+1n = 2k+1, then n2=4k2+4k+1n^2 = 4k^2 + 4k + 1 is odd.

2\sqrt 2 is irrational. By contradiction: suppose 2=p/q\sqrt 2 = p/q with p,qNp, q \in \N^* and the fraction in lowest terms. Then p2=2q2p^2 = 2q^2 is even, so pp is even (previous point), p=2rp = 2r; then q2=2r2q^2 = 2r^2 is even, so qq is even — contradicting lowest terms.

Theorem 1.12 (Induction)

Let P(n)P(n) be a property of the integer nn. If

  1. P(0)P(0) is true, and
  2. for all nNn \in \N, P(n)    P(n+1)P(n) \implies P(n+1),

then P(n)P(n) is true for all nNn \in \N.

Strong induction: conclusion unchanged if (2) is replaced by: for all nn, (P(0)P(n))    P(n+1)\bigl(P(0) \land \dots \land P(n)\bigr) \implies P(n+1).

Proof. This is a property of N\N itself, equivalent to: every nonempty subset of N\N has a least element (which we take as known). Indeed, suppose (1) and (2) hold and let A={nN:P(n) false}A = \{n \in \N : P(n) \text{ false}\}. If AA \neq \emptyset, it has a least element mm; m0m \neq 0 by (1); then m1Am - 1 \notin A, so P(m1)P(m-1) holds, and (2) gives P(m)P(m) — contradiction. So A=A = \emptyset. For strong induction, apply the same argument: P(0),,P(m1)P(0), \dots, P(m-1) all hold since mm is least in AA.

Example 1.13 (Proving unique existence)

A statement !x, P(x)\exists!\,x,\ P(x) is two statements, proved separately: existence (exhibit or construct some x0x_0 with P(x0)P(x_0)) and uniqueness (assume P(x)P(x) and P(x)P(x'), deduce x=xx = x'). Sample: there is a unique real xx with x3+x=2x^3 + x = 2. Existence: x0=1x_0 = 1 works, since 1+1=21 + 1 = 2. Uniqueness: if x3+x=x3+xx^3 + x = x'^3 + x', then

0=(x3x3)+(xx)=(xx)(x2+xx+x2+1),0 = (x^3 - x'^3) + (x - x') = (x - x')\,\bigl(x^2 + xx' + x'^2 + 1\bigr),

and the second factor is positive (it equals (x+x2)2+34x2+11\bigl(x + \tfrac{x'}2\bigr)^2 + \tfrac34 x'^2 + 1 \geq 1), so x=xx = x'. Note the division of labor: existence used a lucky guess, uniqueness used algebra valid for arbitrary solutions — neither argument does the other’s job, and forgetting the second half is a standing temptation once a solution has been found.

Example 1.14

For all nNn \in \N^*:   k=1nk=n(n+1)2\;\sum_{k=1}^n k = \frac{n(n+1)}{2}. Base case n=1n = 1: both sides equal 11. Step: assuming the formula for nn,

k=1n+1k=n(n+1)2+(n+1)=(n+1)(n2+1)=(n+1)(n+2)2.\sum_{k=1}^{n+1} k = \frac{n(n+1)}{2} + (n+1) = (n+1)\Bigl(\frac n2 + 1\Bigr) = \frac{(n+1)(n+2)}{2}. \qedhere

Example 1.15 (Strong induction at work)

Every integer n2n \geq 2 is a product of prime numbers (a prime being an integer 2\geq 2 whose only divisors 1\geq 1 are 11 and itself; primes are studied for their own sake in Chapter 6). Ordinary induction is helpless here: knowing that 95=5×1995 = 5 \times 19 factors says nothing about 9696. Strong induction fits exactly. Base case: 22 is prime, hence a (one-factor) product of primes. Step: let n2n \geq 2 and assume every integer mm with 2mn2 \leq m \leq n is a product of primes. If n+1n + 1 is prime, done. Otherwise n+1=abn + 1 = ab with 2a,bn2 \leq a, b \leq n; by the strong hypothesis both aa and bb are products of primes, hence so is n+1n + 1. The insight: strong induction is the right tool whenever the “reason” for P(n+1)P(n+1) lives at some unpredictable earlier rank, not at rank nn.

1.4 Sets

Definition 1.16 (Set operations)

We take the notion of set and the membership relation xEx \in E as primitive. For sets A,BA, B inside an ambient set EE:

  • inclusion: ABA \subseteq B when x, xA    xB\forall x,\ x \in A \implies x \in B; equality A=BA = B when ABA \subseteq B and BAB \subseteq A;
  • union ABA \cup B, intersection ABA \cap B, difference AB={xA:xB}A \setminus B = \{x \in A : x \notin B\}, complement A=EA\overline{A} = E \setminus A;
  • the empty set \emptyset, contained in every set;
  • the power set P(E)\mathcal{P}(E): the set of all subsets of EE;
  • the product E×FE \times F: the set of ordered pairs (x,y)(x, y) with xEx \in E, yFy \in F.

Example 1.17 (Getting used to the power set)

For E={a,b}E = \{a, b\}:

P(E)={, {a}, {b}, {a,b}},\mathcal P(E) = \bigl\{\, \emptyset,\ \{a\},\ \{b\},\ \{a, b\} \,\bigr\},

four elements — and note the type discipline: aEa \in E but {a}P(E)\{a\} \in \mathcal P(E); the statements aP(E)a \in \mathcal P(E) and {a}P(E)\{a\} \subseteq \mathcal P(E) are both false as written (the second would require aa to be a subset of EE). Iterating from nothing: P()={}\mathcal P(\emptyset) = \{\emptyset\} has one element, P(P())={,{}}\mathcal P(\mathcal P(\emptyset)) = \{\emptyset, \{\emptyset\}\} has two, the next has four — sets of sets are ordinary sets, and Chapter 2 will confirm the doubling pattern: P(E)=2E\abs{\mathcal P(E)} = 2^{\abs E}. Keeping the levels (xx, {x}\{x\}, {{x}}\{\{x\}\}) straight is half the battle in exercises like Exercises 1.11 and 1.12.

Proposition 1.18 (Set algebra)

For subsets A,B,CA, B, C of EE:

  1. A(BC)=(AB)(AC)A \cap (B \cup C) = (A \cap B) \cup (A \cap C) and A(BC)=(AB)(AC)A \cup (B \cap C) = (A \cup B) \cap (A \cup C);
  2. De Morgan: AB=AB\overline{A \cup B} = \overline{A} \cap \overline{B} and AB=AB\overline{A \cap B} = \overline{A} \cup \overline{B};
  3. AB    BAA \subseteq B \iff \overline{B} \subseteq \overline{A}.

Proof. Each identity translates a rule of Proposition 1.3 through the dictionary (A\in A or not) \leftrightarrow (statement true or false): e.g. xAB    ¬(xAxB)    (xA)(xB)    xABx \in \overline{A \cup B} \iff \lnot(x \in A \lor x \in B) \iff (x \notin A) \land (x \notin B) \iff x \in \overline{A} \cap \overline{B}. Point (3) is contraposition. As a second sample, the first distributivity law in full:

xA(BC)    (xA)(xBxC)    (xAxB)(xAxC),x \in A \cap (B \cup C) \iff (x \in A) \land \bigl(x \in B \lor x \in C\bigr) \iff \bigl(x \in A \land x \in B\bigr) \lor \bigl(x \in A \land x \in C\bigr),

by the distributivity of Proposition 1.3 (6), and the last statement reads x(AB)(AC)x \in (A \cap B) \cup (A \cap C). Every set identity of this kind is provable by this one mechanical translation — which is why none of them needs memorizing.

Method 1.19 (Proving set equalities)

To prove A=BA = B, prove the two inclusions: let xAx \in A, show xBx \in B; then let xBx \in B, show xAx \in A. Alternatively, chain equivalences xA        xBx \in A \iff \dots \iff x \in B when each step really is an equivalence.

De Morgan’s laws in pictures: the shaded region on the left is A ∪ B = A ∩ B (everything outside both disks); on the right, A ∩ B = A ∪ B (everything except the lens-shaped overlap). A diagram is not a proof, but it makes the element-chasing proof of  impossible to misremember.
De Morgan’s laws in pictures: the shaded region on the left is AB=AB\overline{A \cup B} = \overline A \cap \overline B (everything outside both disks); on the right, AB=AB\overline{A \cap B} = \overline A \cup \overline B (everything except the lens-shaped overlap). A diagram is not a proof, but it makes the element-chasing proof of Proposition 1.18 impossible to misremember.

1.5 Maps

Definition 1.20 (Map, image, preimage)

A map (or function) f ⁣:EFf \colon E \to F assigns to every element xx of the set EE (the domain) exactly one element f(x)f(x) of the set FF (the codomain). For AEA \subseteq E and BFB \subseteq F:

f(A)={f(x):xA}F,f1(B)={xE:f(x)B}Ef(A) = \{f(x) : x \in A\} \subseteq F, \qquad f^{-1}(B) = \{x \in E : f(x) \in B\} \subseteq E

are the direct image of AA and the preimage of BB. The composition of f ⁣:EFf \colon E \to F and g ⁣:FGg \colon F \to G is gf ⁣:EGg \circ f \colon E \to G, xg(f(x))x \mapsto g(f(x)).

Remark 1.21

The notation f1(B)f^{-1}(B) does not presuppose an inverse map: f1(B)f^{-1}(B) is defined for every ff. Preimages behave better than images: f1f^{-1} preserves unions, intersections and complements, whereas f(AA)f(A)f(A)f(A \cap A') \subseteq f(A) \cap f(A') can be strict (Exercise 1.8).

Example 1.22 (Computing images and preimages)

Let f ⁣:RRf \colon \R \to \R, xx2x \mapsto x^2. Then:

f([1,2])=[0,4],f1([1,4])=[2,1][1,2],f1({1})=.f\bigl(\intcc{-1}{2}\bigr) = \intcc04, \qquad f^{-1}\bigl(\intcc14\bigr) = \intcc{-2}{-1} \cup \intcc12, \qquad f^{-1}(\{-1\}) = \emptyset .

For the first: every x[1,2]x \in \intcc{-1}2 has x2[0,4]x^2 \in \intcc04, and every y[0,4]y \in \intcc04 is attained as y=(y)2y = (\sqrt y)^2 with y[0,2][1,2]\sqrt y \in \intcc02 \subseteq \intcc{-1}2 — note that the image is not [1,4]={(1)2,22}\intcc14 = \{(-1)^2, 2^2\}: images of intervals are not computed from endpoints alone. For the second: 1x24    1x21 \leq x^2 \leq 4 \iff 1 \leq \abs x \leq 2, which splits into two pieces. The third illustrates that a preimage may be empty — f1(B)f^{-1}(B) always makes sense, however small the intersection of BB with the image. Finally observe on this example the strictness phenomenon of the remark above: with A=[1,0]A = \intcc{-1}0 and A=[0,1]A' = \intcc01, one has f(AA)=f({0})={0}f(A \cap A') = f(\{0\}) = \{0\}, while f(A)f(A)=[0,1]f(A) \cap f(A') = \intcc01.

Definition 1.23 (Injective, surjective, bijective)

A map f ⁣:EFf \colon E \to F is:

  • injective when distinct elements have distinct images: x,xE, f(x)=f(x)    x=x\forall x, x' \in E,\ f(x) = f(x') \implies x = x';
  • surjective when every element of FF is attained: yF, xE, f(x)=y\forall y \in F,\ \exists x \in E,\ f(x) = y;
  • bijective when it is both, i.e. every yFy \in F has exactly one preimage.

Theorem 1.24 (Inverse map)

A map f ⁣:EFf \colon E \to F is bijective if and only if there is a map g ⁣:FEg \colon F \to E with gf=idEg \circ f = \mathrm{id}_E and fg=idFf \circ g = \mathrm{id}_F. In that case gg is unique; it is written f1f^{-1} and called the inverse of ff, and f1f^{-1} is itself bijective with (f1)1=f(f^{-1})^{-1} = f.

Proof. (\Rightarrow) If ff is bijective, every yFy \in F has a unique preimage; define g(y)g(y) to be that preimage. Then f(g(y))=yf(g(y)) = y by construction, and g(f(x))=xg(f(x)) = x because xx is the preimage of f(x)f(x).

(\Leftarrow) Suppose such a gg exists. If f(x)=f(x)f(x) = f(x'), applying gg gives x=xx = x': ff is injective. For yFy \in F, x=g(y)x = g(y) satisfies f(x)=yf(x) = y: ff is surjective.

Uniqueness: if gg and hh both work, then g=gidF=g(fh)=(gf)h=hg = g \circ \mathrm{id}_F = g \circ (f \circ h) = (g \circ f) \circ h = h. Finally the pair of identities is symmetric in ff and gg, so g=f1g = f^{-1} is bijective with inverse ff.

Example 1.25 (Computing an inverse in practice)

Let f ⁣:R(0,+)f \colon \R \to \intoo0{+\infty}, f(x)=e2x+1f(x) = \eu^{2x+1}. To invert, solve y=f(x)y = f(x) for a given y>0y > 0:

y=e2x+1    lny=2x+1    x=lny12,y = \eu^{2x+1} \iff \ln y = 2x + 1 \iff x = \frac{\ln y - 1}2 ,

each step being reversible on the announced domains. The computation delivers everything at once: for each yy in the codomain there is exactly one solution xx, so ff is bijective, and

f1 ⁣:(0,+)R,f1(y)=lny12.f^{-1} \colon \intoo0{+\infty} \to \R, \qquad f^{-1}(y) = \frac{\ln y - 1}2 .

A quick check of both compositions (f1(f(x))=(2x+1)12=xf^{-1}(f(x)) = \frac{(2x+1) - 1}2 = x and f(f1(y))=elny=yf(f^{-1}(y)) = \eu^{\ln y} = y) confirms Theorem 1.24’s criterion. The insight: “solve for xx and watch the equivalences” is simultaneously the existence proof, the uniqueness proof, and the formula — but it only works if the codomain was announced correctly (ff is not surjective onto R\R).

Proposition 1.26 (Composition and the three properties)

Let f ⁣:EFf \colon E \to F and g ⁣:FGg \colon F \to G.

  1. If ff and gg are injective (resp. surjective, bijective), so is gfg \circ f; and then (gf)1=f1g1(g \circ f)^{-1} = f^{-1} \circ g^{-1} in the bijective case.
  2. If gfg \circ f is injective, then ff is injective. If gfg \circ f is surjective, then gg is surjective.

Proof. (1) If g(f(x))=g(f(x))g(f(x)) = g(f(x')), injectivity of gg gives f(x)=f(x)f(x) = f(x'), then injectivity of ff gives x=xx = x'. If zGz \in G, surjectivity of gg gives yy with g(y)=zg(y) = z, then surjectivity of ff gives xx with f(x)=yf(x) = y, so g(f(x))=zg(f(x)) = z. In the bijective case one checks directly that f1g1f^{-1} \circ g^{-1} is a two-sided inverse of gfg \circ f, and uniqueness in Theorem 1.24 concludes.

(2) If f(x)=f(x)f(x) = f(x') then g(f(x))=g(f(x))g(f(x)) = g(f(x')), and injectivity of gfg \circ f gives x=xx = x'. If zGz \in G, surjectivity of gfg \circ f gives xx with g(f(x))=zg(f(x)) = z: then y=f(x)y = f(x) satisfies g(y)=zg(y) = z.

Example 1.27 (Point (2) is sharp)

In Proposition 1.26 (2), one cannot upgrade the conclusions: gfg \circ f bijective does not force ff surjective or gg injective. Take E=G={1}E = G = \{1\}, F={1,2}F = \{1, 2\}, with f(1)=1f(1) = 1 and g(1)=g(2)=1g(1) = g(2) = 1: then gf=idEg \circ f = \mathrm{id}_E is bijective, yet ff misses the element 22 and gg collapses both elements. The moral is a precise bookkeeping rule: composition information flows to the inner map for injectivity and to the outer map for surjectivity, never the other way. (Exercise 1.9 builds the same phenomenon with infinite sets, where it is the engine behind one-sided inverses.)

Example 1.28

f ⁣:RRf \colon \R \to \R, xx2x \mapsto x^2 is neither injective (f(1)=f(1)f(-1) = f(1)) nor surjective (1-1 has no preimage). Restricting the domain and codomain, f ⁣:R+R+f \colon \R_+ \to \R_+, xx2x \mapsto x^2 is bijective, with inverse yyy \mapsto \sqrt y. A map’s injectivity or surjectivity depends on the announced domain and codomain, not only on the formula.

1.6 Relations

Definition 1.29 (Equivalence relation)

A binary relation R\mathcal{R} on a set EE is an equivalence relation when it is: reflexive (xRxx \mathbin{\mathcal{R}} x for all xx), symmetric (xRy    yRxx \mathbin{\mathcal{R}} y \implies y \mathbin{\mathcal{R}} x) and transitive (xRyx \mathbin{\mathcal{R}} y and yRzy \mathbin{\mathcal{R}} z imply xRzx \mathbin{\mathcal{R}} z). The equivalence class of xx is cl(x)={yE:xRy}\mathrm{cl}(x) = \{y \in E : x \mathbin{\mathcal{R}} y\}.

Example 1.30 (Checking the three axioms)

On R\R, declare xRyx \mathbin{\mathcal{R}} y when xyZx - y \in \Z. Reflexive: xx=0Zx - x = 0 \in \Z. Symmetric: if xyZx - y \in \Z then yx=(xy)Zy - x = -(x - y) \in \Z. Transitive: if xyZx - y \in \Z and yzZy - z \in \Z, then xz=(xy)+(yz)Zx - z = (x - y) + (y - z) \in \Z (a sum of integers). So R\mathcal R is an equivalence relation, and cl(x)=x+Z={x+k:kZ}\mathrm{cl}(x) = x + \Z = \{x + k : k \in \Z\}: each class contains exactly one representative in [0,1)\intco01, its fractional part. By contrast, the relation “xy1\abs{x - y} \leq 1” on R\R is reflexive and symmetric but not transitive (0R10 \mathbin{\mathcal R} 1 and 1R21 \mathbin{\mathcal R} 2, yet 02>1\abs{0 - 2} > 1): closeness does not propagate, and no partition into classes exists — a useful counterexample to keep in mind when verifying the axioms feels routine.

Theorem 1.31 (Classes form a partition)

Let R\mathcal{R} be an equivalence relation on EE. Then the equivalence classes are nonempty, pairwise disjoint or equal, and their union is EE: they form a partition of EE. Conversely, every partition of EE arises this way from exactly one equivalence relation (“being in the same piece”).

Proof. xcl(x)x \in \mathrm{cl}(x) by reflexivity, so classes are nonempty with union EE. Suppose cl(x)cl(y)\mathrm{cl}(x) \cap \mathrm{cl}(y) \neq \emptyset, say zz lies in both. Then xRzx \mathbin{\mathcal{R}} z and yRzy \mathbin{\mathcal{R}} z, so by symmetry and transitivity xRyx \mathbin{\mathcal{R}} y. Now for any tcl(y)t \in \mathrm{cl}(y), transitivity gives tcl(x)t \in \mathrm{cl}(x), and symmetrically: the two classes are equal. For the converse, let (Ei)iI(E_i)_{i \in I} be a partition of EE and define xSyx \mathbin{\mathcal S} y to mean “some piece contains both xx and yy”. Reflexive: xx lies in some piece, which then contains xx twice over. Symmetric: the defining condition is symmetric in xx and yy. Transitive: if x,yEix, y \in E_i and y,zEjy, z \in E_j, then yEiEjy \in E_i \cap E_j, so Ei=EjE_i = E_j (distinct pieces are disjoint) and x,zx, z share a piece. The S\mathcal S-class of xx is exactly the piece containing xx, so the classes are the given pieces. Finally the relation is determined by its classes: two equivalence relations with the same classes relate the same pairs, since each relates xx and yy exactly when yy belongs to the class of xx — whence the uniqueness claim.

Example 1.32

On Z\Z, congruence modulo nn (xy(modn)x \equiv y \pmod n when nn divides xyx - y) is an equivalence relation; its classes are the nn sets of integers with a given remainder upon division by nn. This example becomes the ring Z/nZ\Z/n\Z in Chapter 7.

Definition 1.33 (Order relation)

A relation \preceq on EE is an order when it is reflexive, antisymmetric (xyx \preceq y and yxy \preceq x imply x=yx = y) and transitive. The order is total when any two elements are comparable, partial otherwise. An element MAEM \in A \subseteq E is a greatest element of AA when aMa \preceq M for all aAa \in A; greatest (and least) elements are unique when they exist.

Example 1.34

(R,)(\R, \leq) is totally ordered. (P(E),)(\mathcal{P}(E), \subseteq) is partially ordered as soon as EE has two elements: {a}\{a\} and {b}\{b\} are not comparable. The subset A={{a},{b}}A = \{\{a\}, \{b\}\} of P({a,b})\mathcal{P}(\{a,b\}) has no greatest element, yet has an upper bound {a,b}\{a, b\}: the distinction between greatest elements and upper bounds returns, for R\R, in Chapter 10.

Example 1.35 (Two orders on the grid N2\N^2)

On pairs of naturals, compare componentwise: (a,b)(a,b)(a, b) \preceq (a', b') when aaa \leq a' and bbb \leq b' (the product order). This is an order — each axiom is inherited coordinate by coordinate — but a partial one: (1,3)(1, 3) and (2,0)(2, 0) are incomparable. Now compare like a dictionary: (a,b)lex(a,b)(a, b) \preceq_{\mathrm{lex}} (a', b') when a<aa < a', or a=aa = a' and bbb \leq b' (the lexicographic order). Transitivity requires a two-case check but holds, and any two pairs are now comparable: the order is total. The two orders rank the same set differently — (0,100)lex(1,0)(0, 100) \preceq_{\mathrm{lex}} (1, 0) though the product order says nothing — a reminder that an order is a structure one chooses, not a property of the set. Lexicographic comparison is also the standard trick for turning several sorting criteria into one.

Remark 1.36 (Interlude: size as bijection)

A quiet theme of this chapter deserves a spotlight: bijections are the mathematician’s notion of “same size”. For finite sets this becomes the counting calculus of Chapter 2, where every formula is secretly a bijection; for infinite sets it becomes the weekend problem below, where N\N, Q\Q and R\R turn out to have genuinely different sizes. The same dictionary reappears twice more in this volume in refined forms: sequences (Chapter 11) are nothing but maps NR\N \to \R, so statements about sequences are statements about a set of maps; and linear algebra will measure vector spaces not by bijections but by linear bijections, whose existence is governed by a single number, the dimension (Chapter 19). Whenever a new “sameness” appears — equipotence, isomorphism of groups (Chapter 7), linear isomorphism — the pattern of Theorem 1.24 repeats: sameness is an invertible, structure-respecting map.

Remark 1.37 (Where this chapter is used)

Everywhere — but a few places deserve flagging. The three-quantifier gymnastics of Example 1.8 is the daily bread of Chapters 11 and 13: every limit proof is a game played against an arbitrary ε\varepsilon. Equivalence classes reappear as the congruence classes of Z/nZ\Z/n\Z in Chapter 7, where the partition of Theorem 1.31 acquires an algebraic structure of its own. Order relations, upper bounds and least upper bounds become the axiomatic heart of R\R in Chapter 10. Injections, surjections and bijections return as the linear maps of Chapter 20, where injectivity can be tested on a single vector (the kernel); and the weekend problem below turns the bare notion of bijection into a theory of the sizes of infinite sets, whose conclusions (countability of Q\Q, uncountability of R\R) resurface in Chapters 10 and 12.

1.7 Exercises

Exercise 1.1

Write the negation of each statement, without using the word “not”:

  1. xR, yR, x+y>0\forall x \in \R,\ \exists y \in \R,\ x + y > 0;
  2. xR, yR, xy=0\exists x \in \R,\ \forall y \in \R,\ xy = 0;
  3. ε>0, δ>0, xR, xδ    f(x)ε\forall \varepsilon > 0,\ \exists \delta > 0,\ \forall x \in \R,\ \abs{x} \leq \delta \implies \abs{f(x)} \leq \varepsilon (for a fixed map f ⁣:RRf \colon \R \to \R).

Then decide whether statements (1) and (2) are true.

Solution

Solution of Exercise 1.1.

Negations, pushing ¬\lnot through each quantifier (Proposition 1.5) and using ¬(P    Q)    P¬Q\lnot(P \implies Q) \iff P \land \lnot Q:

  1. xR, yR, x+y0\exists x \in \R,\ \forall y \in \R,\ x + y \leq 0;
  2. xR, yR, xy0\forall x \in \R,\ \exists y \in \R,\ xy \neq 0;
  3. ε>0, δ>0, xR, xδ and f(x)>ε\exists \varepsilon > 0,\ \forall \delta > 0,\ \exists x \in \R,\ \abs{x} \leq \delta \text{ and } \abs{f(x)} > \varepsilon.

Statement (1) is true: given xx, take y=x+1y = -x + 1; then x+y=1>0x + y = 1 > 0. Statement (2) is true: x=0x = 0 satisfies xy=0xy = 0 for all yy.

Exercise 1.2

Let P,QP, Q be statements. Using truth tables, prove that ¬(P    Q)    P(¬Q)\lnot(P \implies Q) \iff P \land (\lnot Q), and deduce the negation of: “if a function is differentiable then it is continuous”.

Solution

Solution of Exercise 1.2.

Truth table, writing T/F for the four cases (P,Q)(P, Q):

PPQQP    QP \implies Q¬(P    Q)\lnot(P \implies Q)¬Q\lnot QP¬QP \land \lnot Q
TTTFFF
TFFTTT
FTTFFF
FFTFTF

Columns 44 and 66 coincide, proving the equivalence. The negation of “if a function is differentiable then it is continuous” is therefore: “there is a function which is differentiable and not continuous” (a false statement, as it happens: the original implication is true, see Chapter 14).

Exercise 1.3

Prove by contraposition: for xRx \in \R, if x3+x2x^3 + x \geq 2 then x1x \geq 1. Then prove by contradiction: there is no smallest strictly positive real number.

Solution

Solution of Exercise 1.3.

Contraposition. Assume x<1x < 1. Then x3<1x^3 < 1 (the cube function is increasing) and x<1x < 1, so x3+x<2x^3 + x < 2. This proves the contrapositive, hence the statement.

Contradiction. Suppose a>0a > 0 is the smallest strictly positive real. Then a/2a/2 is strictly positive and a/2<aa/2 < a (since a>0a > 0), contradicting minimality. Hence no such aa exists.

Exercise 1.4

Prove by induction that for all nNn \in \N:

  1. k=0n2k=2n+11\sum_{k=0}^{n} 2^k = 2^{n+1} - 1;
  2. 4n+54^n + 5 is divisible by 33.
Solution

Solution of Exercise 1.4.

  1. Base case n=0n = 0: 20=1=2112^0 = 1 = 2^1 - 1. Step: assuming the identity for nn,

    k=0n+12k=(2n+11)+2n+1=22n+11=2n+21.\sum_{k=0}^{n+1} 2^k = (2^{n+1} - 1) + 2^{n+1} = 2 \cdot 2^{n+1} - 1 = 2^{n+2} - 1 .
  2. Base case n=0n = 0: 40+5=6=3×24^0 + 5 = 6 = 3 \times 2. Step: if 4n+5=3m4^n + 5 = 3m, then

    4n+1+5=4(4n+5)15=3(4m5),4^{n+1} + 5 = 4(4^n + 5) - 15 = 3(4m - 5),

    divisible by 33.

Exercise 1.5

Find the flaw in the following “proof” that all pencils have the same color. Let P(n)P(n): “in every set of nn pencils, all pencils have the same color”. P(1)P(1) is clear. Assume P(n)P(n) and take n+1n+1 pencils; removing the last one, the first nn share their color; removing the first one, the last nn share their color; hence all n+1n+1 share their color.

Solution

Solution of Exercise 1.5.

The inductive step silently assumes that the two groups (“the first nn” and “the last nn”) overlap, so that the shared pencils carry the color from one group to the other. For n+1=2n + 1 = 2 the two groups are {\{first pencil}\} and {\{second pencil}\}: they are disjoint, and the argument breaks. So P(1)    P(2)P(1) \implies P(2) was never proved, and the induction collapses — even though P(n)    P(n+1)P(n) \implies P(n+1) is valid for every n2n \geq 2.

Exercise 1.6

Let A,B,CA, B, C be subsets of EE. Prove:

  1. AB=ABA \setminus B = A \cap \overline{B};
  2. (AB)C=(AC)(BC)(A \cup B) \setminus C = (A \setminus C) \cup (B \setminus C);
  3. AB    AB=B    AB=AA \subseteq B \iff A \cup B = B \iff A \cap B = A.
Solution

Solution of Exercise 1.6.

  1. xAB    xAxB    xAxB    xABx \in A \setminus B \iff x \in A \land x \notin B \iff x \in A \land x \in \overline{B} \iff x \in A \cap \overline{B}.
  2. Using (1) and distributivity (Proposition 1.18): (AB)C=(AC)(BC)(A \cup B) \cap \overline{C} = (A \cap \overline{C}) \cup (B \cap \overline{C}).
  3. Suppose ABA \subseteq B. Then ABBA \cup B \subseteq B (both pieces lie in BB) and BABB \subseteq A \cup B always, so AB=BA \cup B = B. Suppose AB=BA \cup B = B: then ABAA \cap B \subseteq A always, and AAB=BA \subseteq A \cup B = B gives AABA \subseteq A \cap B, so AB=AA \cap B = A. Suppose AB=AA \cap B = A: then A=ABBA = A \cap B \subseteq B. The three conditions are thus equivalent (we proved a cycle of implications).

Exercise 1.7 ★★

For each map, decide (with proof) whether it is injective, surjective, bijective:

  1. f ⁣:NNf \colon \N \to \N, nn+1n \mapsto n + 1;
  2. g ⁣:ZZg \colon \Z \to \Z, nn+1n \mapsto n + 1;
  3. h ⁣:R{1}Rh \colon \R \setminus \{1\} \to \R, xx+1x1x \mapsto \frac{x+1}{x-1}.

For hh, adjust the codomain to make it bijective and compute the inverse.

Solution

Solution of Exercise 1.7.

  1. ff is injective (n+1=m+1    n=mn + 1 = m + 1 \implies n = m) but not surjective: 00 has no preimage in N\N.
  2. gg is bijective: nn1n \mapsto n - 1 is a two-sided inverse on Z\Z.
  3. hh is injective: x+1x1=x+1x1\frac{x+1}{x-1} = \frac{x'+1}{x'-1} gives (x+1)(x1)=(x+1)(x1)(x+1)(x'-1) = (x'+1)(x-1), i.e. xxx+x1=xxx+x1xx' - x + x' - 1 = xx' - x' + x - 1, so 2x=2x2x' = 2x. It is not surjective onto R\R: solving y=x+1x1y = \frac{x+1}{x-1} gives x(y1)=y+1x(y - 1) = y + 1, which has no solution when y=1y = 1 (the equation reads 0=20 = 2). With codomain R{1}\R \setminus \{1\}, the same computation gives the unique preimage x=y+1y1x = \frac{y+1}{y-1}, so h ⁣:R{1}R{1}h \colon \R \setminus \{1\} \to \R \setminus \{1\} is bijective and h1(y)=y+1y1=h(y)h^{-1}(y) = \frac{y+1}{y-1} = h(y): hh is its own inverse.

Exercise 1.8 ★★

Let f ⁣:EFf \colon E \to F, let A,AEA, A' \subseteq E and B,BFB, B' \subseteq F.

  1. Prove f1(BB)=f1(B)f1(B)f^{-1}(B \cap B') = f^{-1}(B) \cap f^{-1}(B') and f(AA)=f(A)f(A)f(A \cup A') = f(A) \cup f(A').
  2. Prove f(AA)f(A)f(A)f(A \cap A') \subseteq f(A) \cap f(A') and give an example where the inclusion is strict.
  3. Prove: ff is injective if and only if f(AA)=f(A)f(A)f(A \cap A') = f(A) \cap f(A') for all A,AA, A'.
Solution

Solution of Exercise 1.8.

  1. xf1(BB)    f(x)BB    f(x)Bf(x)B    xf1(B)f1(B)x \in f^{-1}(B \cap B') \iff f(x) \in B \cap B' \iff f(x) \in B \land f(x) \in B' \iff x \in f^{-1}(B) \cap f^{-1}(B'). For images: yf(AA)y \in f(A \cup A') iff y=f(x)y = f(x) for some xx in AA or in AA', iff yf(A)y \in f(A) or yf(A)y \in f(A').
  2. If yf(AA)y \in f(A \cap A'), then y=f(x)y = f(x) with xAx \in A and xAx \in A', so yf(A)y \in f(A) and yf(A)y \in f(A'). Strictness: take f ⁣:RRf \colon \R \to \R, xx2x \mapsto x^2, A={1}A = \{-1\}, A={1}A' = \{1\}: then f(AA)=f()=f(A \cap A') = f(\emptyset) = \emptyset but f(A)f(A)={1}f(A) \cap f(A') = \{1\}.
  3. (\Leftarrow) With A={x}A = \{x\}, A={x}A' = \{x'\} for xxx \neq x': if f(x)=f(x)f(x) = f(x'), then f(A)f(A)={f(x)}f(A) \cap f(A') = \{f(x)\} while f(AA)=f(A \cap A') = \emptyset, contradicting the assumed equality; so ff is injective. (\Rightarrow) Let ff be injective and yf(A)f(A)y \in f(A) \cap f(A'): y=f(x)=f(x)y = f(x) = f(x') with xAx \in A, xAx' \in A'; injectivity gives x=xAAx = x' \in A \cap A', so yf(AA)y \in f(A \cap A'). With (2), equality holds.

Exercise 1.9 ★★

Let f ⁣:EFf \colon E \to F and g ⁣:FEg \colon F \to E satisfy gf=idEg \circ f = \mathrm{id}_E. Prove that ff is injective and gg is surjective. Give an example where neither ff nor gg is bijective.

Solution

Solution of Exercise 1.9.

gf=idEg \circ f = \mathrm{id}_E is injective and surjective, so by Proposition 1.26 (2), ff is injective and gg is surjective. Example: E=NE = \N, F=ZF = \Z, ff the inclusion nnn \mapsto n, and g ⁣:ZNg \colon \Z \to \N, g(n)=ng(n) = n for n0n \geq 0 and g(n)=0g(n) = 0 for n<0n < 0. Then g(f(n))=ng(f(n)) = n for all nNn \in \N, but ff is not surjective and gg is not injective.

Exercise 1.10 ★★

On R\R, define xRy    x2y2=xyx \mathbin{\mathcal{R}} y \iff x^2 - y^2 = x - y. Prove that R\mathcal{R} is an equivalence relation and describe the equivalence class of each real xx. Which classes have exactly one element?

Solution

Solution of Exercise 1.10.

x2y2=xy    (xy)(x+y)=xy    (xy)(x+y1)=0    y=xx^2 - y^2 = x - y \iff (x - y)(x + y) = x - y \iff (x - y)(x + y - 1) = 0 \iff y = x or y=1xy = 1 - x. Reflexive: y=xy = x works. Symmetric: the condition “y=xy = x or y=1xy = 1 - x” is symmetric in xx and yy (if y=1xy = 1 - x then x=1yx = 1 - y). Transitive: suppose xRyx \mathbin{\mathcal{R}} y and yRzy \mathbin{\mathcal{R}} z; going through the four cases, zz equals xx or 1x1 - x each time (e.g. y=1xy = 1 - x and z=1yz = 1 - y give z=xz = x). So R\mathcal{R} is an equivalence relation and cl(x)={x,1x}\mathrm{cl}(x) = \{x,\, 1 - x\}. This class has one element exactly when x=1xx = 1 - x, i.e. for x=12x = \frac12.

Exercise 1.11 ★★★

(Cantor) Let EE be a set. Prove that there is no surjection from EE onto P(E)\mathcal{P}(E). Hint: given f ⁣:EP(E)f \colon E \to \mathcal{P}(E), consider D={xE:xf(x)}D = \{x \in E : x \notin f(x)\}.

Solution

Solution of Exercise 1.11.

Let f ⁣:EP(E)f \colon E \to \mathcal{P}(E) be any map and set D={xE:xf(x)}P(E)D = \{x \in E : x \notin f(x)\} \in \mathcal{P}(E). Suppose D=f(a)D = f(a) for some aEa \in E. If aDa \in D, then by definition of DD, af(a)=Da \notin f(a) = D: contradiction. If aDa \notin D, then af(a)a \notin f(a), so by definition of DD, aDa \in D: contradiction. Hence DD is not in the image of ff, and ff is not surjective. (In particular no set is in bijection with its power set: there are “more” subsets of N\N than integers.)

Exercise 1.12 ★★★

Let f ⁣:EFf \colon E \to F be a map. Define Φ ⁣:P(F)P(E)\Phi \colon \mathcal{P}(F) \to \mathcal{P}(E) by Φ(B)=f1(B)\Phi(B) = f^{-1}(B).

  1. Prove that ff is surjective if and only if Φ\Phi is injective.
  2. Prove that ff is injective if and only if Φ\Phi is surjective.
Solution

Solution of Exercise 1.12.

  1. (\Rightarrow) Let ff be surjective and Φ(B)=Φ(B)\Phi(B) = \Phi(B'). For yBy \in B, pick xx with f(x)=yf(x) = y; then xf1(B)=f1(B)x \in f^{-1}(B) = f^{-1}(B'), so y=f(x)By = f(x) \in B'. Hence BBB \subseteq B', and symmetrically BBB' \subseteq B: Φ\Phi is injective. (\Leftarrow) If ff is not surjective, pick y0Fy_0 \in F outside the image; then f1({y0})==f1()f^{-1}(\{y_0\}) = \emptyset = f^{-1}(\emptyset) with {y0}\{y_0\} \neq \emptyset, so Φ\Phi is not injective.
  2. (\Rightarrow) Let ff be injective and AEA \subseteq E. Set B=f(A)B = f(A); then f1(B)={x:f(x)f(A)}f^{-1}(B) = \{x : f(x) \in f(A)\}, and injectivity gives f(x)f(A)    xAf(x) \in f(A) \iff x \in A, so Φ(B)=A\Phi(B) = A: Φ\Phi is surjective. (\Leftarrow) If ff is not injective, take xxx \neq x' with f(x)=f(x)f(x) = f(x'). Every preimage set f1(B)f^{-1}(B) contains xx if and only if it contains xx'; hence {x}\{x\} is not of the form Φ(B)\Phi(B), and Φ\Phi is not surjective.

1.8 Problem: Comparing infinities

Problem 1.1

When do two sets have “the same number of elements”? Cantor’s answer — when there is a bijection between them — turns out to be usable even for infinite sets, and it splits infinity into genuinely different sizes. This problem builds the whole toolbox from the bare definitions of this chapter: the Cantor–Schröder–Bernstein theorem (two injections manufacture a bijection), the countability of Q\Q, the uncountability of R\R by the diagonal argument, and Cantor’s astonishing 1874 conclusion: transcendental numbers exist, and massively so, without exhibiting a single one. Throughout, for sets EE and FF, write EFE \preceq F when there exists an injection from EE into FF, and EFE \approx F (“EE and FF are equipotent”) when there exists a bijection from EE onto FF.

Part I — The vocabulary of comparison.

  1. Show that \approx behaves like an equivalence relation: EEE \approx E; if EFE \approx F then FEF \approx E; if EFE \approx F and FGF \approx G then EGE \approx G. (Quote precisely Theorem 1.24 and Proposition 1.26.)
  2. Show that \preceq is transitive, and that an injection f ⁣:EFf \colon E \to F always induces Ef(E)E \approx f(E).
  3. Let EE \neq \emptyset. Show that EFE \preceq F if and only if there exists a surjection from FF onto EE.
  4. Verify that nn+1n \mapsto n + 1 is a bijection from N\N onto N=N{0}\N^* = \N \setminus \{0\}, and that

    σ(n)=n2  (n even),σ(n)=n+12  (n odd)\sigma(n) = \frac n2 \ \ (n \text{ even}), \qquad \sigma(n) = -\frac{n+1}2 \ \ (n \text{ odd})

    is a bijection from N\N onto Z\Z. Hence removing a point, or doubling into negatives, does not change the size of N\N.

Part II — The Cantor–Schröder–Bernstein theorem. Let f ⁣:EFf \colon E \to F and g ⁣:FEg \colon F \to E be two injections. Define

C0=Eg(F),Cn+1=g(f(Cn))  (nN),C=nNCn,C_0 = E \setminus g(F), \qquad C_{n+1} = g\bigl(f(C_n)\bigr) \ \ (n \in \N), \qquad C = \bigcup_{n \in \N} C_n,

and let h ⁣:EFh \colon E \to F send xCx \in C to f(x)f(x), and xCx \notin C to the unique yFy \in F with g(y)=xg(y) = x.

  1. Check that hh is well defined: if xCx \notin C then xg(F)x \in g(F), and the element yy with g(y)=xg(y) = x is unique.
  2. Show that g(f(C))=n1CnCg\bigl(f(C)\bigr) = \bigcup_{n \geq 1} C_n \subseteq C. (Direct images commute with unions: Exercise 1.8.)
  3. Show that hh is injective. (Three cases; in the mixed case xCx \in C, xCx' \notin C, show that h(x)=h(x)h(x) = h(x') would force xg(f(C))Cx' \in g(f(C)) \subseteq C.)
  4. Show that hh is surjective: given yFy \in F, distinguish the cases g(y)Cg(y) \notin C and g(y)Cng(y) \in C_n for some n1n \geq 1 (why is g(y)C0g(y) \in C_0 impossible?), and exhibit a preimage of yy in each case.
  5. Conclude with the Cantor–Schröder–Bernstein theorem: if EFE \preceq F and FEF \preceq E, then EFE \approx F. Comment in one sentence on what makes this statement nontrivial.
  6. Two applications. (a) Show [0,1](0,1)\intcc01 \approx \intoo01. (b) Show that φ(p,q)=2p(2q+1)1\varphi(p, q) = 2^p(2q + 1) - 1 defines a bijection from N×N\N \times \N onto N\N — injectivity by a parity argument, surjectivity by strong induction (Theorem 1.12). Hence N×NN\N \times \N \approx \N: the plane of integer points is no bigger than the line.

Part III — Countable sets. Call a set EE at most countable when ENE \preceq \N, and countable when ENE \approx \N.

  1. Show that every infinite subset ANA \subseteq \N is countable. (Define φ(n)\varphi(n) recursively as the least element of A{φ(0),,φ(n1)}A \setminus \{\varphi(0), \dots, \varphi(n-1)\}; show φ\varphi is strictly increasing, satisfies φ(n)n\varphi(n) \geq n, and attains every element of AA.)
  2. Deduce that a set is at most countable if and only if it is finite or countable, and observe that question 9 gives the shortcut: if ENE \preceq \N and NE\N \preceq E, then EE is countable.
  3. Show that if EE and FF are at most countable, so is E×FE \times F. Deduce that Z×N\Z \times \N^* is countable.
  4. Show that Q\Q is countable. (Inject Q\Q into Z×N\Z \times \N^* by writing each rational in lowest terms with positive denominator — the uniqueness of that representation is proved in Chapter 6; then apply question 12.)
  5. Show that a countable union of at most countable sets is at most countable: if each EnE_n (nNn \in \N) is at most countable, so is nNEn\bigcup_{n \in \N} E_n. (Send xx to the pair (n,fn(x))(n, f_n(x)) where nn is the least index with xEnx \in E_n.)
  6. Show that the set of finite subsets of N\N is countable. (Map a finite subset FF to iF2i\sum_{i \in F} 2^i; prove injectivity by comparing the largest element where two finite sets differ, using k=0m12k=2m1\sum_{k=0}^{m-1} 2^k = 2^m - 1 from Exercise 1.4.)

Part IV — Diagonalization. Let {0,1}N\{0,1\}^{\N} denote the set of all maps u ⁣:N{0,1}u \colon \N \to \{0, 1\}, i.e. the set of binary sequences.

  1. Construct a bijection between P(N)\mathcal{P}(\N) and {0,1}N\{0,1\}^{\N} (indicator functions).
  2. (The diagonal argument) Let Φ ⁣:N{0,1}N\Phi \colon \N \to \{0,1\}^{\N} be any map. Consider the sequence dd defined by d(n)=1Φ(n)(n)d(n) = 1 - \Phi(n)(n). Show that dd is not in the image of Φ\Phi, and conclude that {0,1}N\{0,1\}^{\N} is not at most countable. Explain in one sentence why, through question 17, this is exactly Cantor’s theorem (Exercise 1.11) for E=NE = \N.
  3. Admit — as familiar from school, and established rigorously in Chapter 10 — that every x[0,1)x \in \intco01 has a unique proper decimal expansion x=0.d1d2d3x = 0.d_1 d_2 d_3\dots (one not ending in an infinite string of 99s). Given any sequence (xn)n1(x_n)_{n \geq 1} of elements of [0,1)\intco01, construct x[0,1)x \in \intco01 with xxnx \neq x_n for all nn: choose its nn-th digit to be 55 if the nn-th digit of xnx_n differs from 55, and 66 otherwise. Justify carefully that xx is proper and avoids every xnx_n, and conclude that [0,1)\intco01 is not at most countable.
  4. Deduce that R\R is uncountable, and that the set RQ\R \setminus \Q of irrational numbers is uncountable as well. In what precise sense are “most” real numbers irrational?

Part V — Cantor’s 1874 theorem: transcendental numbers exist. A real number xx is algebraic when P(x)=0P(x) = 0 for some nonzero polynomial PP with integer coefficients, and transcendental otherwise. Admit for this part — it is proved in Chapter 8 — that a nonzero polynomial of degree nn has at most nn real roots.

  1. Show that every rational number is algebraic, and find explicit polynomials with integer coefficients annihilating 2\sqrt 2 and 2+3\sqrt 2 + \sqrt 3.
  2. For fixed nNn \in \N, show that the set of polynomials of degree at most nn with integer coefficients is countable. (Inject it into Zn+1\Z^{n+1} and induct on nn with question 13.)
  3. Deduce that the set of all polynomials with integer coefficients is countable.
  4. Prove Cantor’s theorem on algebraic numbers: the set A\mathcal{A} of algebraic real numbers is countable.
  5. Conclude: transcendental real numbers exist, and the set of transcendental numbers is uncountable. Then take stock of the whole problem in a few sentences: the chain NZQA\N \approx \Z \approx \Q \approx \mathcal{A}, the strict jump to R\R \approx (essentially) P(N)\mathcal{P}(\N), where each tool (Cantor–Schröder–Bernstein, countable unions, the diagonal) was decisive — and the philosophical punch of proving that uncountably many transcendental numbers exist without naming even one. (Proving a specific number such as π\pi transcendental is far harder and beyond this volume.)
Solution

Solution of Problem 1.1.

1. Reflexive: idE\mathrm{id}_E is a bijection of EE onto itself. Symmetric: if f ⁣:EFf \colon E \to F is bijective, Theorem 1.24 provides f1 ⁣:FEf^{-1} \colon F \to E, itself bijective. Transitive: if f ⁣:EFf \colon E \to F and g ⁣:FGg \colon F \to G are bijections, Proposition 1.26 (1) says gf ⁣:EGg \circ f \colon E \to G is a bijection. (This is only “like” an equivalence relation: the collection of all sets is not itself a set, by the paradoxes that Exercise 1.11 hints at; the three properties are what matters.)

2. If f ⁣:EFf \colon E \to F and g ⁣:FGg \colon F \to G are injective, gfg \circ f is injective by Proposition 1.26 (1): EGE \preceq G. For the second point, corestrict ff to its image: the map f~ ⁣:Ef(E)\tilde f \colon E \to f(E), xf(x)x \mapsto f(x), is surjective by construction of f(E)f(E) and injective because ff is, hence bijective: Ef(E)E \approx f(E).

3. (\Rightarrow) Let f ⁣:EFf \colon E \to F be injective and fix aEa \in E (EE \neq \emptyset). Define s ⁣:FEs \colon F \to E by: s(y)s(y) is the unique xx with f(x)=yf(x) = y when yf(E)y \in f(E) (uniqueness by injectivity), and s(y)=as(y) = a otherwise. For every xEx \in E, s(f(x))=xs(f(x)) = x, so every xx is attained: ss is surjective. (\Leftarrow) Let s ⁣:FEs \colon F \to E be surjective. For each xEx \in E choose one yxFy_x \in F with s(yx)=xs(y_x) = x, and set u(x)=yxu(x) = y_x. If u(x)=u(x)u(x) = u(x') then x=s(u(x))=s(u(x))=xx = s(u(x)) = s(u(x')) = x': u ⁣:EFu \colon E \to F is injective.

4. nn+1n \mapsto n + 1 maps N\N into N\N^*, is injective (n+1=m+1    n=mn + 1 = m + 1 \implies n = m) and surjective (every m1m \geq 1 is (m1)+1(m - 1) + 1 with m1Nm - 1 \in \N). For σ\sigma: it maps even numbers 0,2,4,0, 2, 4, \dots to 0,1,2,0, 1, 2, \dots and odd numbers 1,3,5,1, 3, 5, \dots to 1,2,3,-1, -2, -3, \dots Injectivity: the even inputs land in N\N (σ(n)=n/20\sigma(n) = n/2 \geq 0) and the odd inputs land in the strictly negative integers (σ(n)=(n+1)/21\sigma(n) = -(n+1)/2 \leq -1), so a collision must happen within one parity class, where σ\sigma is strictly monotonic (n/2=m/2n/2 = m/2 or (n+1)/2=(m+1)/2(n+1)/2 = (m+1)/2 forces n=mn = m). Surjectivity: k0k \geq 0 is σ(2k)\sigma(2k); k1k \leq -1 is σ(2k1)\sigma(-2k - 1) with 2k11-2k - 1 \geq 1 odd. So NN\N \approx \N^* and NZ\N \approx \Z.

5. C0=Eg(F)CC_0 = E \setminus g(F) \subseteq C, so xCx \notin C implies xC0x \notin C_0, i.e. xg(F)x \in g(F): some yFy \in F satisfies g(y)=xg(y) = x. If also g(y)=xg(y') = x, injectivity of gg gives y=yy' = y. Hence the second clause of the definition of hh picks out a unique, well-defined element g1(x)g^{-1}(x).

6. Direct images commute with unions (Exercise 1.8 (1), applied to ff then to gg):

g(f(C))=g(f(nNCn))=nNg(f(Cn))=nNCn+1=n1CnC.g\bigl(f(C)\bigr) = g\Bigl(f\Bigl(\bigcup_{n \in \N} C_n\Bigr)\Bigr) = \bigcup_{n \in \N} g\bigl(f(C_n)\bigr) = \bigcup_{n \in \N} C_{n+1} = \bigcup_{n \geq 1} C_n \subseteq C .

7. Let xxx \neq x' in EE. If both lie in CC, then h(x)=f(x)f(x)=h(x)h(x) = f(x) \neq f(x') = h(x') by injectivity of ff. If neither lies in CC, then g(h(x))=xx=g(h(x))g(h(x)) = x \neq x' = g(h(x')), so h(x)h(x)h(x) \neq h(x'). If xCx \in C and xCx' \notin C (the mixed case, up to swapping names): suppose h(x)=h(x)h(x) = h(x'), i.e. f(x)=g1(x)f(x) = g^{-1}(x'). Applying gg: x=g(f(x))g(f(C))x' = g(f(x)) \in g(f(C)), and question 6 gives xCx' \in C — contradiction. So h(x)h(x)h(x) \neq h(x') in all cases: hh is injective.

8. Let yFy \in F. Case 1: g(y)Cg(y) \notin C. Then h(g(y))=g1(g(y))=yh(g(y)) = g^{-1}(g(y)) = y: the element g(y)g(y) is a preimage. Case 2: g(y)Cg(y) \in C, say g(y)Cng(y) \in C_n. Since g(y)g(F)g(y) \in g(F), we have g(y)C0=Eg(F)g(y) \notin C_0 = E \setminus g(F), so n1n \geq 1 and g(y)Cn=g(f(Cn1))g(y) \in C_n = g(f(C_{n-1})): there is xCn1x \in C_{n-1} with g(y)=g(f(x))g(y) = g(f(x)). Injectivity of gg gives y=f(x)y = f(x), and xCn1Cx \in C_{n-1} \subseteq C, so h(x)=f(x)=yh(x) = f(x) = y. In both cases yy is attained: hh is surjective, hence bijective.

9. If EFE \preceq F and FEF \preceq E, pick injections f ⁣:EFf \colon E \to F and g ⁣:FEg \colon F \to E; questions 5–8 build a bijection h ⁣:EFh \colon E \to F, so EFE \approx F. The statement is nontrivial because the two given injections are unrelated — neither need be surjective, and no formula mixing ff and gg naively defines a map: the whole content is the partition of EE into the region CC (where one copies ff) and its complement (where one runs gg backwards).

10. (a) The inclusion (0,1)[0,1]\intoo01 \to \intcc01 is injective; and xx+13x \mapsto \frac{x + 1}3 maps [0,1]\intcc01 injectively into [13,23](0,1)\intcc{\frac13}{\frac23} \subseteq \intoo01 (it is affine with nonzero slope). By question 9, [0,1](0,1)\intcc01 \approx \intoo01 — a bijection which is quite unpleasant to write down explicitly. (b) Injectivity. Suppose 2p(2q+1)=2p(2q+1)2^p(2q + 1) = 2^{p'}(2q' + 1) with, say, ppp \leq p'. Dividing by 2p2^p: 2q+1=2pp(2q+1)2q + 1 = 2^{p' - p}(2q' + 1). If p>pp' > p the right side is even and the left side odd — impossible; so p=pp = p', then 2q+1=2q+12q + 1 = 2q' + 1 and q=qq = q'. Surjectivity. We show by strong induction that every integer m1m \geq 1 is of the form 2p(2q+1)2^p(2q + 1). For m=1m = 1: p=q=0p = q = 0. Let m1m \geq 1 and assume the claim for all integers of [ ⁣[1,m] ⁣]\intint1m. If m+1m + 1 is odd, m+1=2q+1m + 1 = 2q + 1 with p=0p = 0. If m+1m + 1 is even, m+1=2mm + 1 = 2m' with 1mm1 \leq m' \leq m; by hypothesis m=2p(2q+1)m' = 2^p(2q + 1), so m+1=2p+1(2q+1)m + 1 = 2^{p+1}(2q + 1). Hence φ(p,q)=2p(2q+1)1\varphi(p, q) = 2^p(2q + 1) - 1 hits every nNn \in \N, and φ\varphi is a bijection N×NN\N \times \N \to \N.

11. Since AA is infinite, A{φ(0),,φ(n1)}A \setminus \{\varphi(0), \dots, \varphi(n - 1)\} is never empty, and the least-element property of N\N (used to prove Theorem 1.12) makes the recursive definition legitimate. Strictly increasing: φ(n+1)\varphi(n + 1) belongs to A{φ(0),,φ(n)}A{φ(0),,φ(n1)}A \setminus \{\varphi(0), \dots, \varphi(n)\} \subseteq A \setminus \{\varphi(0), \dots, \varphi(n - 1)\}, whose minimum is φ(n)\varphi(n); so φ(n+1)φ(n)\varphi(n + 1) \geq \varphi(n), and equality is excluded, whence φ(n+1)>φ(n)\varphi(n+1) > \varphi(n). φ(n)n\varphi(n) \geq n: by induction, φ(0)0\varphi(0) \geq 0, and φ(n+1)φ(n)+1n+1\varphi(n + 1) \geq \varphi(n) + 1 \geq n + 1. Injectivity follows from strict monotonicity. Surjectivity onto AA: suppose some aAa \in A is never attained. Since φ(a+1)a+1>a\varphi(a + 1) \geq a + 1 > a, the set of nn with φ(n)>a\varphi(n) > a is nonempty; let nn be its least element. For every k<nk < n, φ(k)a\varphi(k) \leq a, hence φ(k)<a\varphi(k) < a (aa is not attained). Then aa lies in A{φ(0),,φ(n1)}A \setminus \{\varphi(0), \dots, \varphi(n - 1)\} and a<φ(n)a < \varphi(n), contradicting the minimality defining φ(n)\varphi(n). So φ\varphi is a bijection NA\N \to A, and AA is countable.

12. Let ENE \preceq \N via an injection ff; then Ef(E)E \approx f(E) (question 2). If f(E)f(E) is finite, EE is finite; if f(E)f(E) is infinite, question 11 gives f(E)Nf(E) \approx \N, so ENE \approx \N by transitivity (question 1). Conversely finite sets and countable sets obviously inject into N\N. The shortcut: ENE \preceq \N and NE\N \preceq E give ENE \approx \N directly by Cantor–Schröder–Bernstein — no enumeration argument needed.

13. Let f ⁣:ENf \colon E \to \N and g ⁣:FNg \colon F \to \N be injections. Then (x,y)φ(f(x),g(y))(x, y) \mapsto \varphi\bigl(f(x), g(y)\bigr) is an injection E×FNE \times F \to \N: if the images coincide, injectivity of φ\varphi (question 10) gives f(x)=f(x)f(x) = f(x') and g(y)=g(y)g(y) = g(y'), then x=xx = x', y=yy = y'. For Z×N\Z \times \N^*: both factors are countable (question 4), so Z×NN\Z \times \N^* \preceq \N; it is infinite (it contains {0}×N\{0\} \times \N^*), hence countable by question 12.

14. Every rational rr has a unique representation r=p/qr = p/q with pZp \in \Z, qNq \in \N^* and the fraction in lowest terms (uniqueness is proved in Chapter 6; for r=0r = 0 take 0/10/1). The map r(p,q)r \mapsto (p, q) is then injective: the pair determines r=p/qr = p/q. Hence QZ×NN\Q \preceq \Z \times \N^* \preceq \N by question 13. Since NQ\N \subseteq \Q gives NQ\N \preceq \Q, question 12 (or Cantor–Schröder–Bernstein directly) shows QN\Q \approx \N: the rationals are countable.

15. For each nn fix an injection fn ⁣:EnNf_n \colon E_n \to \N. For xnEnx \in \bigcup_n E_n, let n(x)n(x) be the least nn with xEnx \in E_n, and set u(x)=φ(n(x),fn(x)(x))Nu(x) = \varphi\bigl(n(x), f_{n(x)}(x)\bigr) \in \N. If u(x)=u(x)u(x) = u(x'), injectivity of φ\varphi gives n(x)=n(x)=nn(x) = n(x') = n and fn(x)=fn(x)f_n(x) = f_n(x'), hence x=xx = x' by injectivity of fnf_n. So the union injects into N\N: it is at most countable.

16. Let Ψ(F)=iF2i\Psi(F) = \sum_{i \in F} 2^i for FNF \subseteq \N finite (Ψ()=0\Psi(\emptyset) = 0). Suppose FFF \neq F' and let mm be the largest element on which they differ, say mFFm \in F \setminus F' (swap names if needed). Elements >m> m belong to both or neither, so they contribute equally to both sums; comparing the contributions of elements m\leq m:

iF,im2i2m>2m1=k=0m12kiF,im2i,\sum_{i \in F,\, i \leq m} 2^i \geq 2^m > 2^m - 1 = \sum_{k=0}^{m-1} 2^k \geq \sum_{i \in F',\, i \leq m} 2^i ,

using the geometric sum of Exercise 1.4. Hence Ψ(F)Ψ(F)\Psi(F) \neq \Psi(F'): Ψ\Psi is injective and the set of finite subsets of N\N is at most countable; it is infinite (it contains all singletons), hence countable.

17. Send ANA \subseteq \N to its indicator 1A ⁣:N{0,1}\mathbf 1_A \colon \N \to \{0,1\}, 1A(n)=1\mathbf 1_A(n) = 1 if nAn \in A and 00 otherwise; send u{0,1}Nu \in \{0,1\}^{\N} to Au={nN:u(n)=1}A_u = \{n \in \N : u(n) = 1\}. The two maps are mutually inverse: A1A=AA_{\mathbf 1_A} = A and 1Au=u\mathbf 1_{A_u} = u (check the value at each nn). By Theorem 1.24, each is a bijection: P(N){0,1}N\mathcal{P}(\N) \approx \{0,1\}^{\N}.

18. For every nn, d(n)=1Φ(n)(n)Φ(n)(n)d(n) = 1 - \Phi(n)(n) \neq \Phi(n)(n), so the sequences dd and Φ(n)\Phi(n) differ at the index nn: dΦ(n)d \neq \Phi(n). Hence no Φ\Phi is surjective, and by question 3 there is no injection {0,1}NN\{0,1\}^{\N} \to \N either: {0,1}N\{0,1\}^{\N} is not at most countable. Through the dictionary of question 17, a map Φ ⁣:N{0,1}N\Phi \colon \N \to \{0,1\}^{\N} is a map f ⁣:NP(N)f \colon \N \to \mathcal{P}(\N), and dd corresponds to the set D={n:nf(n)}D = \{n : n \notin f(n)\} (indeed d(n)=1    Φ(n)(n)=0    nf(n)d(n) = 1 \iff \Phi(n)(n) = 0 \iff n \notin f(n)): the diagonal argument is Cantor’s proof of Exercise 1.11 for E=NE = \N.

19. Write xn=0.d1(n)d2(n)d3(n)x_n = 0.d_1(n)\,d_2(n)\,d_3(n)\dots in proper form and define δn=5\delta_n = 5 if dn(n)5d_n(n) \neq 5, δn=6\delta_n = 6 if dn(n)=5d_n(n) = 5, then x=0.δ1δ2δ3x = 0.\delta_1\delta_2\delta_3\dots This expansion uses only the digits 55 and 66, so it does not end in all 99s: it is the proper expansion of a real x[0,1)x \in \intco01. For each nn, the nn-th digits of xx and xnx_n differ (δndn(n)\delta_n \neq d_n(n) by construction); since proper expansions are unique, xxnx \neq x_n. Thus no sequence exhausts [0,1)\intco01: by question 3 again, [0,1)\intco01 is not at most countable.

20. [0,1)R\intco01 \subseteq \R, so an injection RN\R \to \N would restrict to one on [0,1)\intco01, contradicting question 19: R\R is uncountable. If RQ\R \setminus \Q were at most countable, then R=Q(RQ)\R = \Q \cup (\R \setminus \Q) would be a union of two at most countable sets, hence at most countable by question 15 (take E0=QE_0 = \Q, En=RQE_n = \R \setminus \Q for n1n \geq 1) — contradiction. So the irrationals are uncountable. Precisely: inside R\R, the rationals form a countable set while their complement is uncountable; no bijection can ever match RQ\R \setminus \Q with Q\Q — there are strictly “more” irrationals than rationals, even though both are infinite and both are dense.

21. p/qp/q (with q0q \neq 0) is a root of qXpqX - p, a nonzero polynomial with integer coefficients. 2\sqrt 2 is a root of X22X^2 - 2. For x=2+3x = \sqrt 2 + \sqrt 3: x2=5+26x^2 = 5 + 2\sqrt 6, so x25=26x^2 - 5 = 2\sqrt 6 and (x25)2=24(x^2 - 5)^2 = 24, i.e.

x410x2+1=0:x^4 - 10x^2 + 1 = 0 :

2+3\sqrt 2 + \sqrt 3 is a root of X410X2+1X^4 - 10X^2 + 1.

22. Map P=a0+a1X++anXnP = a_0 + a_1X + \dots + a_nX^n (degree n\leq n, integer coefficients) to (a0,,an)Zn+1(a_0, \dots, a_n) \in \Z^{n+1}: this is injective, since a polynomial is determined by its coefficients. By induction on nn: Z1=Z\Z^1 = \Z is countable (question 4), and Zn+2Zn+1×Z\Z^{n+2} \approx \Z^{n+1} \times \Z is at most countable by question 13. So each set of bounded-degree integer polynomials is at most countable; it is infinite (it contains the constants), hence countable by question 12.

23. The set of all integer polynomials is nN{P:degPn, P has integer coefficients}\bigcup_{n \in \N} \{P : \deg P \leq n,\ P \text{ has integer coefficients}\}, a countable union of countable sets: at most countable by question 15, infinite, hence countable.

24. For each nonzero integer polynomial PP, the root set RP={xR:P(x)=0}R_P = \{x \in \R : P(x) = 0\} is finite (at most degP\deg P elements, admitted). By question 23 the nonzero integer polynomials can be enumerated P0,P1,P2,P_0, P_1, P_2, \dots; then A=nNRPn\mathcal{A} = \bigcup_{n \in \N} R_{P_n} is a countable union of finite (hence at most countable) sets: at most countable by question 15. It contains Q\Q (question 21), so it is infinite: A\mathcal{A} is countable.

25. If RA\R \setminus \mathcal{A} were at most countable, R=A(RA)\R = \mathcal{A} \cup (\R \setminus \mathcal{A}) would be at most countable (question 15), contradicting question 20. Hence transcendental numbers exist and even form an uncountable set, while the algebraic numbers — which include every number built from integers by radicals — form a mere countable skeleton inside R\R. Summary of the architecture: questions 1–3 set up the comparison language; Cantor–Schröder–Bernstein (questions 5–9) let us prove equipotence by two easy injections instead of one clever bijection, and was used for [0,1](0,1)\intcc01 \approx \intoo01, for Q\Q and throughout Part V; the pairing bijection (question 10) powered products and countable unions (questions 13, 15), which in turn powered Q\Q, the integer polynomials and A\mathcal{A}; the diagonal argument (questions 18–19) provided the one strict inequality NR\N \prec \R that makes the whole story nontrivial. Cantor’s conclusion is philosophically striking: the proof exhibits no transcendental number at all, yet shows that in the sense of equipotence almost every real number is transcendental. Naming one specific transcendental — π\pi or e\eu — required entirely different mathematics and decades more work.