Symbols used throughout these notes:
| Symbol | Meaning |
|---|
| x∈y / x∈/y | membership / non-membership |
| x⊆y | subset (for any z, z∈x⇒z∈y) |
| x∪y, x∩y, x∖y | union, intersection, set difference |
| ∅ | the empty set |
| P(x) | power set |
| ⋃x | general (big) union |
| x×y | Cartesian product |
| aRb | (a,b)∈R (relation notation) |
| R−1, S∘R | inverse relation, composite relation |
| [a]R | equivalence class of a under R |
| A⩽B | A is dominated by B: there is an injection A→B |
| A≈B | A is equinumerous to B: there is a bijection A→B |
| A≈B | A is not equinumerous to B |
| BA=(A→B), 2A=(A→{0,1}), A2=A×A | function-space / product shorthand |
- An element of a set can itself be a set.
- Membership: x∈y means "x is an element of y".
- Equality (extensionality): x=y iff for any z, z∈x⇔z∈y.
- Subset: x⊆y iff for any z, if z∈x then z∈y.
- x=y iff x⊆y and y⊆x.
- Union: z∈x∪y⇔z∈x or z∈y.
- Intersection: z∈x∩y⇔z∈x and z∈y.
- Set-theoretic difference: z∈x∖y⇔z∈x and z∈/y.
- Empty set: ∅ satisfies "for any z, z∈/∅".
- Enumerated set: x∈{a1,a2,a3}⇔x=a1 or x=a2 or x=a3.
- Set-builder: x∈{y∣y2−3y+2=0}⇔x2−3x+2=0.
- Power set (幂集): y∈P(x)⇔y⊆x.
- General union: y∈⋃x⇔ there exists z such that z∈x and y∈z.
- Indexed union: y∈⋃i=0+∞xi⇔ there exists i∈N such that y∈xi.
- Indexed intersection: y∈⋂i=0+∞xi⇔ for any i∈N, y∈xi.
- Ordered pairs: (x,y).
- Equality of pairs: (x,y)=(u,v)⇔x=u and y=v.
- Cartesian product: x×y={(u,v)∣u∈x and v∈y}.
Claims: (a) if A⊆B then P(A)⊆P(B); (b) if A⊆B then ⋃A⊆⋃B; (c) A=⋃P(A).
- (a) Method: take an arbitrary element X∈P(A), so X⊆A; since A⊆B, X⊆B, hence X∈P(B).
- (b) Method: take x∈⋃A; there is Y∈A with x∈Y; since A⊆B, Y∈B, so x∈⋃B.
- (c) Method: (⊆) for x∈A, the singleton {x}⊆A so {x}∈P(A), and x∈{x} gives x∈⋃P(A). (⊇) for x∈⋃P(A) there is Y∈P(A) with x∈Y; Y⊆A so x∈A.
- Transferable pattern: prove set equality S=T by the two inclusions S⊆T and T⊆S; prove an inclusion by taking an arbitrary element and unfolding the membership definitions.
Claims: (a) P(A)∩P(B)=P(A∩B); (b) A×⋃B=⋃{A×X∣X∈B}.
- (a) (⊆) X∈P(A)∩P(B) gives X⊆A and X⊆B, so every a∈X lies in A∩B, hence X⊆A∩B, i.e. X∈P(A∩B). (⊇) X⊆A∩B gives X⊆A and X⊆B.
- (b) (⊆) for (a,x)∈A×⋃B, x∈⋃B gives some X∈B with x∈X, so (a,x)∈A×X; the key step is A×X∈{A×X∣X∈B}, hence (a,x)∈⋃{A×X∣X∈B}. (⊇) reverse: an element of the big union lies in some A×X with X∈B, write it as (a,x) with a∈A, x∈X⊆⋃B.
- Definition: subsets of A×B are binary relations from A to B; subsets of A×A are also called binary relations on A.
- Notation: write aRb for (a,b)∈R.
- reflexive on A (自反性): ∀a∈A. (aRa).
- symmetric (对称性): ∀a,b∈A. if aRb then bRa.
- antisymmetric (反对称性): ∀a,b∈A. if aRb and bRa then a=b.
- transitive (传递性): ∀a,b,c∈A. if aRb and bRc then aRc.
- Inverse: if R⊆A×B, then R−1={(x,y)∈B×A∣yRx}.
- Composition: if R⊆A×B and S⊆B×C, then S∘R:={(x,z)∈A×C∣∃y(xRy∧ySz)}.
- Theorem 6: (R−1)−1=R; (S∘R)−1=R−1∘S−1; R∘(S∘T)=(R∘S)∘T (associativity).
- Theorem 7: R∘(S∪T)=(R∘S)∪(R∘T).
- Theorem 8 (characterizations), with IA:={(a,b)∈A×A∣a=b}:
- R reflexive on A iff IA⊆R.
- R symmetric iff R=R−1.
- R transitive iff R∘R⊆R.
- R antisymmetric iff R∩R−1⊆IA.
- Definition: R⊆A×A is an equivalence relation on A if it is reflexive, symmetric, and transitive.
- Equivalence class: for an equivalence relation R on A and a∈A, [a]R:={b∈A∣aRb}; a is a representative element of [a]R.
- Theorem 11: for an equivalence relation R and a,b∈A, aRb⇔[a]R=[b]R.
- (⇒) for any c, c∈[a]R⇔aRc⇔bRc⇔c∈[b]R (middle step uses aRb with symmetry+transitivity).
- (⇐) by reflexivity b∈[b]R=[a]R, hence aRb.
- Theorem 12: for an equivalence relation R and a,b∈A, aRb⇔[a]R∩[b]R=∅.
- (⇒) aRb gives [a]R=[b]R, and a∈[a]R so the (equal) class is nonempty.
- (⇐) if c∈[a]R∩[b]R, then aRc and bRc, so [a]R=[c]R=[b]R, hence aRb.
- Partition: P⊆P(A) is a partition of A if (i) ∀B∈P. B=∅; (ii) ∀B,B′∈P. if B=B′ then B∩B′=∅ (pairwise disjoint); (iii) ⋃P=A.
- Theorem 2 (partition ⇒ equivalence relation): if P is a partition of A, then R={(a,b)∈A×A∣∃B∈P. a∈B and b∈B} is an equivalence relation on A, and P is exactly the set of all equivalence classes of R, i.e. P={[a]R∣a∈A}.
- reflexive: each a∈A lies in some B∈P (since ⋃P=A), so aRa.
- symmetric: from the symmetric form of R's definition.
- transitive: aRb and bRc give blocks B1,B2∈P with a,b∈B1 and b,c∈B2; blocks of a partition are identical or disjoint, and b∈B1∩B2 forces B1=B2, so aRc.
- P={[a]R}: each block B∈P is nonempty, pick a∈B, then B=[a]R; conversely each a∈A lies in some block B and [a]R=B.
- Definition 1 (universal/order-theoretic form): for a relation R on A, R′ is the transitive closure of R if (i) R⊆R′; (ii) R′ is transitive; (iii) for every T, if R⊆T and T is transitive, then R′⊆T. (I.e. R′ is the smallest transitive relation containing R.)
- Definition 2 (constructive form): Rn is the n-fold composition of R, and R+ is the transitive closure:
- R1≜R;
- Rn+1≜Rn∘R;
- R+≜⋃n∈Z+Rn.
- Remark (原文): the textbook writes R∗, but it should generally be written R+.
- Theorem 3: the two definitions above are equivalent.
Supporting lemmas:
- Lemma 4 (monotonicity of ∘): if R1⊆R1′ and R2⊆R2′, then R1∘R2⊆R1′∘R2′.
- Lemma 5: if Rn⊆T for every n, then ⋃nRn⊆T (stated for an arbitrary indexed family {Rn}; later instantiated with Rn=Rn).
- Lemma 6: R⊆R+.
- Lemma 7: Rn∘Rm=Rn+m.
- Lemma 8: R+ is transitive. Proof: aR+b and bR+c give n,m with aRnb and bRmc; then aRn+mc (Lemma 7), so aR+c.
- Lemma 9: if R⊆T and T is transitive, then R+⊆T. Proof by induction: R1⊆T; if Rn⊆T then Rn+1=Rn∘R⊆T∘T⊆T (transitivity); hence R+=⋃n∈Z+Rn⊆T.
- Lemma 10: there is at most one least relation that is a superset of R and is transitive.
- Adding these lemmas together proves Theorem 3.
- Definition 11 (universal form): R′ is the reflexive transitive closure of R if (i) R⊆R′; (ii) R′ transitive; (iii) R′ reflexive; (iv) for every T, if R⊆T, T transitive and T reflexive, then R′⊆T. (原文该普遍形用 R′ 记闭包,构造形 R∗ 见 Definition 12。)
- Definition 12 (constructive form): R0≜IA={(a,a)∣a∈A}, and R∗≜⋃n∈NRn (so the index starts at 0, adding the identity for reflexivity).
- Theorem 13: the two definitions of the reflexive transitive closure are equivalent.
- Definition (function): a relation F⊆A×B is a function from A into B iff (i) ∀x∈A. ∃y. (xFy) (totality), and (ii) ∀x∀y∀y′. (if xFy and xFy′ then y=y′) (single-valuedness). A is the domain, B the codomain.
- Notation: write F:A→B for a function from A into B; F(x) is the unique element with (x,F(x))∈F.
- Theorem 17 (function extensionality): for F,G:A→B, F=G⇔∀x∈A. F(x)=G(x).
- Theorem 18 (composition is a function): for F:B→C and G:A→B, F∘G is a function and (F∘G)(x)=F(G(x)) for all x∈A.
For f:A→B:
- one-to-one / injection (单射): ∀a,a′∈A. if f(a)=f(a′) then a=a′.
- onto / surjection (满射): ∀b∈B. ∃a∈A. f(a)=b.
- bijection (one-to-one correspondence, 双射): both an injection and a surjection.
- Theorem 20 (composition), for F:B→C, G:A→B:
- F,G injections ⇒F∘G injection.
- F,G surjections ⇒F∘G surjection.
- F∘G injection ⇒G injection (only the inner map is forced).
- F∘G surjection ⇒F surjection (only the outer map is forced).
- Theorem 21: if F:A→B is a bijection, then F−1⊆B×A is also a bijection.
-
Theorem 1 (Schröder–Bernstein): if f:A→B and g:B→A are both injections, then there is a bijection from A into B.
-
Key construction (the transferable idea — "back-and-forth chasing through g's non-image"):
- C0={a∈A∣∀b∈B. g(b)=a} — the elements of A outside the range of g.
- D0={f(a)∣a∈C0}.
- C1={a∈A∖C0∣∀b∈B∖D0. g(b)=a}; one shows C1={g(b)∣b∈D0}.
- D1={f(a)∣a∈C1}, and in general Cn+1={a∈A∖⋃i=0nCi∣∀b∈B∖⋃i=0nDi. g(b)=a}, Dn+1={f(a)∣a∈Cn+1}, with Cn+1={g(b)∣b∈Dn}.
- Define
h(a)={f(a),b s.t. g(b)=a,a∈⋃i=0∞Cia∈A∖⋃i=0∞Ci
-
Why h is a bijection:
- injection (three cases): both in the ⋃Ci branch — then f(a1)=f(a2) so a1=a2 (f injective); mixed branch — if a1∈A∖⋃iCi and a2∈Cn, then f(a2)∈Dn and g(f(a2))∈Cn+1, so a1=g(h(a1))=g(h(a2))=g(f(a2))∈Cn+1, a contradiction (so no collision across branches); both in the complement branch — then g(h(a1))=a1 and g(h(a2))=a2 give a1=a2.
- surjection: if b∈Dn there is a∈Cn with f(a)=b; if b∈B∖⋃iDi, set a=g(b), which must lie in A∖⋃iCi (otherwise a∈Cn forces b∈Dn, contradiction), and then h(a)=b.
- Domination: A⩽B if there exists an injection from A into B.
- Equinumerosity: A≈B if there exists a bijection from A into B.
- Theorem 4: [0,1]≈[0,1). Proof 1: by Schröder–Bernstein. Proof 2: explicit bijection f(x)=x/2 if x∈{1,21,41,81,…}, and f(x)=x otherwise (shift the dyadic chain to drop the endpoint 1).
- Theorem 5: N≈N×N.
- Theorem 6 (≈ behaves like an equivalence relation): A≈A; if A≈B then B≈A; if A≈B and B≈C then A≈C.
- Theorem 7 (products): A×B≈B×A; if A1≈A2 and B1≈B2 then A1×B1≈A2×B2.
- constructions: F(a,b)=(b,a) is the swap bijection; for the second part, bijections f:A1→A2, g:B1→B2 give h(x,y)=(f(x),g(y)).
- Corollary 8: N≈Q and N×N×N≈N.
- via N⩽Q⩽Z+×Z≈N×N≈N, and (N×N)×N≈N×N≈N (Schröder–Bernstein turns the ⩽-chain into ≈).
Theorem 1 collects the function-space identities (here (A→B) is the set of all functions from A to B):
- if A1≈A2 and B1≈B2, then (A1→B1)≈(A2→B2);
- if A1⩽A2 and B1⩽B2, then (A1→B1)⩽(A2→B2) when B2=∅; if B2=∅, this conclusion also holds except in the edge case A1=∅ and A2=∅.
- currying: ((A×B)→C)≈(A→(B→C));
- pairing: (A→B×C)≈(A→B)×(A→C);
- ({0,1}→A)≈A×A;
- if A≈B, then P(A)≈P(B);
- (A→{0,1})≈P(A).
Proof techniques (the transferable bijection constructions):
- relabel domain/codomain by H(h)=g∘h∘f−1 (uses f,g bijections).
- for the ⩽ version with B2=∅, pick b∈B2 and extend outside f[A1], using injectivity of f (well-definedness) and g (injectivity of H); the B2=∅ case must be checked separately as above.
- currying via H(f)(a)(b)=f(a,b); pairing via H(f,g)(a)=(f(a),g(a)); ({0,1}→A)≈A×A via H(f)=(f(0),f(1)); power-set monotonicity (A≈B by a bijection f ⇒P(A)≈P(B)) via H(X)={f(a)∣a∈X}; and (A→{0,1})≈P(A) via the indicator map H(f)={a∈A∣f(a)=1}.
- Notation: A2:=A×A, A3:=A×A×A, …; 2A:=(A→{0,1}) and BA:=(A→B).
- Definition: a set A is countable if it is equinumerous to N (A≈N).
- Example 10 (countable sets): N; Z+; Z; {n∈N∣n is even}; N×N; N×N×N; Q.
- Theorem 11: the set of finite sequences of natural numbers is countable.
- Corollary 12: each of the following is countable — the set of strings (of finite length); the set of integer arithmetic expressions; the set of polynomials with integer coefficients (整系数多项式); the set of algebraic numbers (代数数,整系数多项式的根).
- Theorem 1 (Cantor's Theorem): for any set X, X≈P(X).
- Proof by contradiction (Cantor's diagonal argument): suppose θ:X→P(X) is a bijection. Define Y:={x∈X∣x∈/θ(x)}∈P(X). Let y be the unique element with θ(y)=Y. Then y∈Y⇒y∈/θ(y)=Y, and y∈/Y⇒y∈θ(y)=Y — contradiction.
- Theorem 2: (A→{0,1})≈P(A). Proof: F(f)={a∈A∣f(a)=1} is a bijection (injective because f is determined by which points map to 1; surjective because any X⊆A is hit by its indicator function).
- Corollary 3: P(N) is uncountable; (N→{0,1}) is uncountable.
- Theorem 4: the set of infinite sequences of natural numbers is uncountable.
- Proof: an infinite sequence of naturals is a function N→N, and 2N⩽NN⩽(2N)N≈2N×N≈2N, so NN≈2N is uncountable.
- Theorem 5: R≈2N.
- Corollary 6: (0,1)≈[0,1]≈2N.
- Theorem 7: (R→R)≈22N.
- Proof: RR≈(2N)2N≈2N×2N, and 22N⩽2N×2N⩽22N×2N≈2(2N)2⩽2(2N)N≈22N×N≈22N.
- Theorem 8: the set of continuous functions from R into R is equinumerous with R.
- Definition 1 (ordered pairs as sets): (x,y) can be encoded as {{x},{x,y}}.
- The encoding is sound because of:
- Theorem 2: for any sets x,y,u,v, if {{x},{x,y}}={{u},{u,v}} then x=u and y=v.
- Example 3 (natural numbers as sets): each natural number is encoded as the set of all smaller ones.
| n | as a set | ={0,…,n−1} |
|---|
| 0 | {} | {} |
| 1 | {{}} | {0} |
| 2 | {{},{{}}} | {0,1} |
| 3 | {{},{{}},{{},{{}}}} | {0,1,2} |
- Definition 4 (inductive set): a set x is inductive iff ∅∈x and ∀y(if y∈x then y∪{y}∈x).
- Definition 5 (N): N is the smallest inductive set: (i) N is inductive; (ii) for any inductive set x, N⊆x.
- Theorem 6 (existence of N): there exists a set x that is inductive and is contained in every inductive set.
- Theorem 7 (uniqueness of N): any two sets that are inductive and contained in every inductive set are equal.
- Definition 8 (addition): the sum of n,m∈N is r iff (n,m,r)∈T, where T⊆N×N×N is the least set such that
- ∀n. ((n,0,n)∈T) — base case n+0=n;
- ∀n∀m∀r. (if (n,m,r)∈T, then (n,m∪{m},r∪{r})∈T) — successor step on the second argument (using m∪{m} as m+1, i.e. n+(m+1)=(n+m)+1).
- Definition 9: for any relation R on A (i.e. R⊆A×A), write (a,b)∈Rn iff (a,b,n)∈T, where T⊆A×A×N is the least set such that
- ∀a∀b(if aRb, then (a,b,1)∈T);
- ∀n∀a∀b∀c(if aRb and (b,c,n)∈T, then (a,c,n∪{n})∈T).
- Definition 10: for any relation R on A, R+=⋃n∈Z+Rn is the set {(a,b)∈A×A∣∃n((a,b,n)∈T)}, obtained by the axiom of separation from the T above.
- Z≈(N×{0,1})∖{(0,0)}, so Z can be defined accordingly.
- Q≈{(n,m)∈Z×(N∖{0})∣n and m are coprime to each other}, so Q can be defined accordingly.
- Definition 11 (Dedekind cut): (X,Y)∈P(Q)×P(Q) is a Dedekind cut of rationals if X=∅; Y=∅; X∩Y=∅; X∪Y=Q; ∀x∈X. ∀y∈Y. (x<y); and Y has no least element, i.e. ∀y∈Y. ∃y′∈Y. (y′<y).
- Theorem 12: if D is the set of Dedekind cuts of rationals, then D≈R; so R can be defined accordingly.
- Alternative construction of R via Cauchy sequences:
- Definition 13 (Cauchy sequence): l:N→Q is a Cauchy sequence if for any rational ε>0 there exists N such that for any m,n>N, ∣l(n)−l(m)∣<ε.
- Definition 14: RC={(l1,l2)∣for any rational ε>0 there exists N such that for any n>N, ∣l1(n)−l2(n)∣<ε} is a relation between Cauchy sequences of rationals.
- Theorem 15: RC is an equivalence relation on Cauchy sequences of rationals.
- Theorem 16: R≈{[l]RC∣l is a Cauchy sequence of rationals}.
- Finally, since C≈R×R, C can be defined accordingly.
- Consider A={a∣a∈/a}. Then ∀x(x∈A⇔x∈/x), so A∈A⇔A∈/A — a contradiction.
- Definition 17 (primitive constructions):
- Separation: for any set A and property P, {a∈A∣P(a)} is a set, with ∀x(x∈{a∈A∣P(a)}⇔x∈A and P(x)).
- For an arbitrary property P, {a∣P(a)} is not guaranteed to be a set (this is what blocks Russell's paradox).
- ∅ is a set, ∀x(x∈/∅).
- Pairing: for any sets x,y, {x,y} is a set, ∀z(z∈{x,y}⇔z=x or z=y).
- Union: for any set x, ⋃x is a set, ∀y(y∈⋃x⇔∃z(z∈x and y∈z)).
- Power set: for any set x, P(x) is a set, ∀y(y∈P(x)⇔y⊆x).
- Theorem 18: x∪y is a set, since x∪y=⋃{x,y}.
- Theorem 19: x∩y is a set, since x∩y={a∈x∣a∈y}.
- Theorem 20: {x} is a set, since {x}={x,x}.
- Corollary 21: 0={}, 1={{}}, 2={{},{{}}} are all sets; and if x is a set, x∪{x} is also a set.
- Theorem 22: x×y is a set, since x×y={a∈P(P(x∪y))∣∃u∈x∃v∈y. a={{u},{u,v}}}.