跳转到内容

离散数学 · 集合、关系、函数与基数 · 速览

  • Core constructions by their defining equivalence: z∈x∪y⇔(z∈x or z∈y)z\in x\cup y \Leftrightarrow (z\in x \text{ or } z\in y); z∈x∩y⇔(z∈x and z∈y)z\in x\cap y \Leftrightarrow (z\in x \text{ and } z\in y); z∈x∖y⇔(z∈x and z∉y)z\in x\setminus y \Leftrightarrow (z\in x \text{ and } z\notin y); y∈P(x)⇔y⊆xy\in\mathcal{P}(x)\Leftrightarrow y\subseteq x; y∈⋃x⇔∃z(z∈x∧y∈z)y\in\bigcup x \Leftrightarrow \exists z(z\in x \wedge y\in z).
  • x=y⇔(x⊆y and y⊆x)x=y \Leftrightarrow (x\subseteq y \text{ and } y\subseteq x) (extensionality); pair (x,y)=(u,v)⇔x=u∧y=v(x,y)=(u,v)\Leftrightarrow x=u\wedge y=v; x×y={(u,v)∣u∈x,v∈y}x\times y=\{(u,v)\mid u\in x, v\in y\}.
  • Key identities (proved by double inclusion): P(A)∩P(B)=P(A∩B)\mathcal{P}(A)\cap\mathcal{P}(B)=\mathcal{P}(A\cap B); A=⋃P(A)A=\bigcup\mathcal{P}(A); A×⋃B=⋃{A×X∣X∈B}A\times\bigcup B=\bigcup\{A\times X\mid X\in B\}; monotonicity A⊆B⇒P(A)⊆P(B)A\subseteq B\Rightarrow \mathcal{P}(A)\subseteq\mathcal{P}(B) and ⋃A⊆⋃B\bigcup A\subseteq\bigcup B.
  • Method: prove S=TS=T via S⊆TS\subseteq T and T⊆ST\subseteq S; prove inclusion by taking an arbitrary element and unfolding membership.
  • Relation on AA = subset of A×AA\times A; a R b⇔(a,b)∈Ra\,R\,b \Leftrightarrow (a,b)\in R. Properties: reflexive ∀a. aRa\forall a.\,aRa; symmetric; antisymmetric aRb∧bRa⇒a=baRb\wedge bRa\Rightarrow a=b; transitive.
  • Operators: R−1={(x,y)∣y R x}R^{-1}=\{(x,y)\mid y\,R\,x\}; S∘R={(x,z)∣∃y(xRy∧ySz)}S\circ R=\{(x,z)\mid \exists y(xRy\wedge ySz)\}. Facts: (S∘R)−1=R−1∘S−1(S\circ R)^{-1}=R^{-1}\circ S^{-1}; ∘\circ associative; R∘(S∪T)=(R∘S)∪(R∘T)R\circ(S\cup T)=(R\circ S)\cup(R\circ T).
  • Theorem 8 (characterizations), IA={(a,a)}I_A=\{(a,a)\}: reflexive ⇔IA⊆R\Leftrightarrow I_A\subseteq R; symmetric ⇔R=R−1\Leftrightarrow R=R^{-1}; transitive ⇔R∘R⊆R\Leftrightarrow R\circ R\subseteq R; antisymmetric ⇔R∩R−1⊆IA\Leftrightarrow R\cap R^{-1}\subseteq I_A.

Equivalence relations & partitions (N520–N525)

跳转到:Equivalence relations & partitions (N520–N525)
  • Equivalence relation = reflexive + symmetric + transitive; class [a]R={b∣aRb}[a]_R=\{b\mid aRb\}.
  • aRb⇔[a]R=[b]R⇔[a]R∩[b]R≠∅aRb \Leftrightarrow [a]_R=[b]_R \Leftrightarrow [a]_R\cap[b]_R\neq\varnothing.
  • Partition of AA: nonempty, pairwise disjoint blocks with ⋃P=A\bigcup P=A. Each partition induces an equivalence relation ("same block"), whose classes are exactly the blocks.
  • Transitive closure: two equivalent definitions — (universal) smallest transitive R′⊇RR'\supseteq R; (constructive) R+=⋃n∈Z+RnR^+=\bigcup_{n\in\mathbb{Z}^+}R^n with R1=RR^1=R, Rn+1=Rn∘RR^{n+1}=R^n\circ R.
  • Key lemmas: Rn∘Rm=Rn+mR^n\circ R^m=R^{n+m}; R+R^+ transitive; if R⊆TR\subseteq T and TT transitive then R+⊆TR^+\subseteq T (induction Rn+1=Rn∘R⊆T∘T⊆TR^{n+1}=R^n\circ R\subseteq T\circ T\subseteq T).
  • Reflexive transitive closure: R∗=⋃n∈NRnR^*=\bigcup_{n\in\mathbb{N}}R^n with R0=IAR^0=I_A (= add the identity).
  • F:A→BF:A\to B is a relation that is total (∀x ∃y xFy\forall x\,\exists y\,xFy) and single-valued; F(x)F(x) = the unique image. F=G⇔∀x. F(x)=G(x)F=G \Leftrightarrow \forall x.\,F(x)=G(x).
  • (F∘G)(x)=F(G(x))(F\circ G)(x)=F(G(x)). injection f(a)=f(a′)⇒a=a′f(a)=f(a')\Rightarrow a=a'; surjection ∀b ∃a. f(a)=b\forall b\,\exists a.\,f(a)=b; bijection = both.
  • Composition (F:B→CF:B\to C, G:A→BG:A\to B): F,GF,G inj ⇒F∘G\Rightarrow F\circ G inj; F,GF,G surj ⇒F∘G\Rightarrow F\circ G surj; F∘GF\circ G inj ⇒G\Rightarrow G inj; F∘GF\circ G surj ⇒F\Rightarrow F surj. Bijection ⇒F−1\Rightarrow F^{-1} bijection.

Schröder–Bernstein (N603)

跳转到:Schröder–Bernstein (N603)
  • Injections f:A→Bf:A\to B, g:B→Ag:B\to A ⇒\Rightarrow a bijection A→BA\to B.
  • Construction: C0=A∖ran(g)C_0=A\setminus\mathrm{ran}(g), Cn+1={g(b)∣b∈Dn}C_{n+1}=\{g(b)\mid b\in D_n\}, Dn=f[Cn]D_n=f[C_n]; set h=fh=f on ⋃Ci\bigcup C_i, h=g−1h=g^{-1} off it. Injectivity needs three cases (both in ⋃Ci\bigcup C_i, mixed, both off).

Equinumerosity (N603, N608)

跳转到:Equinumerosity (N603, N608)
  • A⩽BA\leqslant B: injection exists; A≈BA\approx B: bijection exists. ≈\approx is reflexive/symmetric/transitive.
  • [0,1]≈[0,1)[0,1]\approx[0,1); N≈N×N≈Q\mathbb{N}\approx\mathbb{N}\times\mathbb{N}\approx\mathbb{Q}; N×N×N≈N\mathbb{N}\times\mathbb{N}\times\mathbb{N}\approx\mathbb{N}. Products: A×B≈B×AA\times B\approx B\times A; A1≈A2A_1\approx A_2 and B1≈B2⇒A1×B1≈A2×B2B_1\approx B_2 \Rightarrow A_1\times B_1\approx A_2\times B_2.
  • Function-space identities (2A=(A→{0,1})2^A=(A\to\{0,1\}), BA=(A→B)B^A=(A\to B)): currying ((A×B)→C)≈(A→(B→C))((A\times B)\to C)\approx(A\to(B\to C)); pairing (A→B×C)≈(A→B)×(A→C)(A\to B\times C)\approx(A\to B)\times(A\to C); ({0,1}→A)≈A×A(\{0,1\}\to A)\approx A\times A; (A→{0,1})≈P(A)(A\to\{0,1\})\approx\mathcal{P}(A) (indicator map); A≈B⇒P(A)≈P(B)A\approx B\Rightarrow\mathcal{P}(A)\approx\mathcal{P}(B).

Countable / Uncountable (N603, N615)

跳转到:Countable / Uncountable (N603, N615)
  • Countable := ≈N\approx\mathbb{N}. Countable: Z\mathbb{Z}, Q\mathbb{Q}, Nk\mathbb{N}^k, finite sequences/strings of naturals, integer polynomials, algebraic numbers.
  • Cantor: X≉P(X)X\not\approx\mathcal{P}(X) (diagonal Y={x∣x∉θ(x)}Y=\{x\mid x\notin\theta(x)\}). (A→{0,1})≈P(A)(A\to\{0,1\})\approx\mathcal{P}(A), so P(N)\mathcal{P}(\mathbb{N}), NN≈2N\mathbb{N}^{\mathbb{N}}\approx 2^{\mathbb{N}} are uncountable.
  • Continuum: R≈2N≈(0,1)≈[0,1]\mathbb{R}\approx 2^{\mathbb{N}}\approx(0,1)\approx[0,1]; (R→R)≈22N(\mathbb{R}\to\mathbb{R})\approx 2^{2^{\mathbb{N}}}; continuous R→R\mathbb{R}\to\mathbb{R} functions ≈R\approx\mathbb{R}.

Set theory as foundation (N617)

跳转到:Set theory as foundation (N617)
  • Everything is a set: pair (x,y)={{x},{x,y}}(x,y)=\{\{x\},\{x,y\}\} (sound by pair-equality theorem); naturals 0={}0=\{\}, n+1=n∪{n}n+1=n\cup\{n\}; N\mathbb{N} = smallest inductive set (inductive: ∅∈x\varnothing\in x, y∈x⇒y∪{y}∈xy\in x\Rightarrow y\cup\{y\}\in x); exists and is unique.
  • Addition by least T⊆N3T\subseteq\mathbb{N}^3: base (n,0,n)(n,0,n) (n+0=nn+0=n), step (n,m,r)⇒(n,m∪{m},r∪{r})(n,m,r)\Rightarrow(n,m\cup\{m\},r\cup\{r\}) (recursion on 2nd arg). Transitive closure similarly via least T⊆A×A×NT\subseteq A\times A\times\mathbb{N}.
  • Z≈(N×{0,1})∖{(0,0)}\mathbb{Z}\approx(\mathbb{N}\times\{0,1\})\setminus\{(0,0)\}; Q≈\mathbb{Q}\approx coprime pairs (n,m)∈Z×(N∖{0})(n,m)\in\mathbb{Z}\times(\mathbb{N}\setminus\{0\}); R\mathbb{R} = Dedekind cuts (D≈RD\approx\mathbb{R}) or Cauchy-sequence classes; C≈R×R\mathbb{C}\approx\mathbb{R}\times\mathbb{R}.

Naive set theory's problem & fix (N617)

跳转到:Naive set theory's problem & fix (N617)
  • Russell's paradox: A={a∣a∉a}⇒A∈A⇔A∉AA=\{a\mid a\notin a\}\Rightarrow A\in A\Leftrightarrow A\notin A.
  • Fix = restrict comprehension to separation {a∈A∣P(a)}\{a\in A\mid P(a)\} (a set), while bare {a∣P(a)}\{a\mid P(a)\} is not guaranteed a set. Primitives: ∅\varnothing, pairing {x,y}\{x,y\}, union ⋃x\bigcup x, power set P(x)\mathcal{P}(x). Derived as sets: x∪y=⋃{x,y}x\cup y=\bigcup\{x,y\}, x∩y={a∈x∣a∈y}x\cap y=\{a\in x\mid a\in y\}, {x}={x,x}\{x\}=\{x,x\}, x×y⊆P(P(x∪y))x\times y\subseteq\mathcal{P}(\mathcal{P}(x\cup y)).