4 #25 Cantor-Schröder-Bernsteinの定理 forget
\(X\) から \(Y\) への単射と \(Y\) から \(X\) への単射があれば、\(X\) と \(Y\) の間に全単射がある。
4.1 準備
「単射」は定義せず、次を使う。
word(ss,p) …
\(\stackrel{\#}\le\)≤#. …
\(X \stackrel{\#}\le Y \Longleftrightarrow \exists A \subset Y . X \stackrel{\#}= A\) 4.2 証明① forget
最小の不動点を作る証明。
部分集合 \(Y' \subset Y\)、\(X' \subset X\) と全単射 \(f : X \to Y'\)、\(g : Y \to X'\) に対して \(\Phi(B) = (X \setminus X') \cup g[f[B]]\) とする。
\(\Phi(B) \subset B\) を満たす集合 \(B\) すべてに属する \(X\) の元を集めて \(A\) とする(\(B = X\) が候補の1つ)。
\(\Phi\) は包含を保つ。各候補 \(B\) で \(A \subset B\),\(\Phi(A) \subset \Phi(B) \subset B\) より \(\Phi(A) \subset A\)。
もう一度包含を保つことから \(\Phi(A)\) も候補になり \(A \subset \Phi(A)\)。
よって \(\Phi(A) = A\) で、\(g\) の単射性から \(g(y) \in A \iff y \in f[A]\)。
\(A\) の上では \(f\)、\(X \setminus A\) の上では \(g\) の逆を使って \(f' : X \to Y\) を作る。
\(f'\) は \(A\) を \(f[A]\) へ、\(X \setminus A\) を \(Y \setminus f[A]\) へ全単射に移す。
\(X \stackrel{\#}\le Y \stackrel{\#}\le X \Longrightarrow X \stackrel{\#}= Y\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,ax_sprf hyX <- \(\mathrm{X}' \subset \mathrm{X}\) ; hyF <- \(\mathrm{f} \in \mathrm{X} \stackrel{\rm IS}\to \mathrm{Y}'\) ; hyY <- \(\mathrm{Y}' \subset \mathrm{Y}\) ; hyG <- \(\mathrm{g} \in \mathrm{Y} \stackrel{\rm IS}\to \mathrm{X}'\) ; \(\Phi\) := \(\lceil B \mapsto ( \mathrm{X} \mathop\setminus \mathrm{X}' ) \cup \mathrm{g} [ \mathrm{f} [ B ] ] \rfloor\) ; \(\mathrm{A}\) := \(\{ x \in \mathrm{X} \mid \forall B \, ( \Phi ( B ) \subset B \Longrightarrow x \in B ) \}\) ; \(\mathrm{A} \subset \mathrm{X}\) -| O p; hyA <- \(\mathrm{A} = \mathrm{A}\) ; Φmono <- \(B \subset C \Longrightarrow \Phi ( B ) \subset \Phi ( C )\) //// \(\mathbb{W}.\) -| O p; Φsub <- \(\Phi ( \mathrm{A} ) \subset \mathrm{A}\) / ⊂. / hyA / ⊂. [&l // \(\mathbb{W}.\) -| hyG /// \(\mathbb{W}.\)'!=. , hyX / \(\mathbb{W}.\) , pr:0 || &r -| hyA / ⊂. , Φmono / ⊂.] p; Φfix <- \(\mathrm{A} = \Phi ( \mathrm{A} )\) / =. -| Φsub / ⊂. , Φmono / ⊂. , hyA / ⊂. p; \(\mathrm{f}'\) := \(\{ \langle x , y \rangle \mid ( x \in \mathrm{A} , \langle x , y \rangle \in \mathrm{f} ) \mathbin{\rm o\!r} ( x \notin \mathrm{A} , \langle y , x \rangle \in \mathrm{g} ) \}\) ; LsubC <- \(\mathrm{f}' \subset \mathrm{X} \times \mathrm{Y}\) / \(\mathbb{W}.\)!=. -| hyF /// \(\mathbb{W}.\)'!=. , hyY / \(\mathbb{W}.\) , hyG /// \(\mathbb{W}.\)'!=. , hyX / \(\mathbb{W}.\) , pr:0 p; hyf' <- \(\mathrm{f}' = \mathrm{f}'\) ; LF <- \(\mathrm{f}' \in \mathrm{X} \stackrel{\rm IS}\to \mathrm{Y}\) / →IS.' [&l -| LsubC , hyf' , ⊂. || &r -| hyF /// \(\mathbb{W}.\)'!=. , hyG /// \(\mathbb{W}.\)'!=. , Φsub //// \(\mathbb{W}.\) , Φfix //// \(\mathbb{W}.\) , hyf' , pr:0] p; \(\mathrm{X} \stackrel{\#}= \mathrm{Y}\) / =#.' -| LF p; Lall2 <- \(Y' \subset Y , X' \subset X , f \in X \stackrel{\rm IS}\to Y' , g \in Y \stackrel{\rm IS}\to X' \Longrightarrow X \stackrel{\#}= Y\) -| \(\mathbb{W}.\) , ax_s h[fix]; goal / ≤#. / =#.' -| Lall2 / =#.' v; goal -| \(\mathbb{W}.\) , ax_s h;4.3 証明② forget
証明①と同じく、閉じた最小の集合を作る証明(Dedekind)。
まず \(Z \subset X\) かつ \(X \le^{\#} Z\) なら、\(X\) と \(Z\) は同じ大きさであることを示す。
部分集合 \(Z' \subset Z\) への全単射 \(h : X \to Z'\) を取り、\(X \setminus Z\) を含み \(h\) で閉じた最小の集合を \(A\) とする。\(A = (X \setminus Z) \cup h[A]\)。
\(A\) の上では \(h\)、\(X \setminus A\) の上では恒等写像として \(k : X \to Z\) を作ると、\(k\) は全単射になる。
\(Z \subset X \stackrel{\#}\le Z \Longrightarrow X \stackrel{\#}= Z\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,ax_sprf hyX <- \(\mathrm{Z} \subset \mathrm{X}\) ; hyZ <- \(\mathrm{Z}' \subset \mathrm{Z}\) ; hyH <- \(\mathrm{h} \in \mathrm{X} \stackrel{\rm IS}\to \mathrm{Z}'\) ; \(\Phi\) := \(\lceil B \mapsto ( \mathrm{X} \mathop\setminus \mathrm{Z} ) \cup \mathrm{h} [ B ] \rfloor\) ; \(\mathrm{A}\) := \(\{ x \in \mathrm{X} \mid \forall B \, ( \Phi ( B ) \subset B \Longrightarrow x \in B ) \}\) ; \(\mathrm{A} \subset \mathrm{X}\) -| O p; hyA <- \(\mathrm{A} = \mathrm{A}\) ; Φmono <- \(B \subset C \Longrightarrow \Phi ( B ) \subset \Phi ( C )\) /// \(\mathbb{W}.\) -| O p; Φsub <- \(\Phi ( \mathrm{A} ) \subset \mathrm{A}\) / ⊂. / hyA / ⊂. [&l // \(\mathbb{W}.\) -| hyH /// \(\mathbb{W}.\)'!=. , hyZ / \(\mathbb{W}.\) , hyX / \(\mathbb{W}.\) , pr:0 || &r -| hyA / ⊂. , Φmono / ⊂.] p; Φfix <- \(\mathrm{A} = \Phi ( \mathrm{A} )\) / =. -| Φsub / ⊂. , Φmono / ⊂. , hyA / ⊂. p; \(\mathrm{k}\) := \(\{ \langle x , y \rangle \mid ( x \in \mathrm{A} , \langle x , y \rangle \in \mathrm{h} ) \mathbin{\rm o\!r} ( x \in \mathrm{X} , x \notin \mathrm{A} , y = x ) \}\) ; LsubC <- \(\mathrm{k} \subset \mathrm{X} \times \mathrm{Z}\) / \(\mathbb{W}.\)!=. -| hyH /// \(\mathbb{W}.\)'!=. , hyZ / \(\mathbb{W}.\) , Φsub /// \(\mathbb{W}.\) p; hyk <- \(\mathrm{k} = \mathrm{k}\) ; LHfn <- \(\forall x \in \mathrm{X} . \exists! y \, \langle x , y \rangle \in \mathrm{k}\) -| hyH /// \(\mathbb{W}.\)'!=. , hyk , pr:0 v; LHbij <- \(\forall y \in \mathrm{Z} . \exists! x \, \langle x , y \rangle \in \mathrm{k}\) -| hyH /// \(\mathbb{W}.\)'!=. , hyX / \(\mathbb{W}.\) , Φfix /// \(\mathbb{W}.\) , hyk , pr:0 v; \(\mathrm{X} \stackrel{\#}= \mathrm{Z}\) /// \(\mathbb{W}.\)' -| hyk , LsubC , LHfn , LHbij v; L <- \(Z' \subset Z \subset X , h \in X \stackrel{\rm IS}\to Z' \Longrightarrow X \stackrel{\#}= Z\) -| \(\mathbb{W}.\) , ax_s h[fix]; goal / ≤#. / =#.' -| L / =#.' v; goal -| \(\mathbb{W}.\) , ax_s h;部分集合 \(Y' \subset Y\)、\(X' \subset X\) と全単射 \(f : X \to Y'\)、\(g : Y \to X'\) を取る。
\(g \circ f\) は \(X\) から \(g[Y'] \subset X'\) への全単射なので \(X \le^{\#} X'\)。上の結果から \(X\) と \(X'\) は同じ大きさになる。
\(g\) によって \(Y\) と \(X'\) も同じ大きさなので、\(X\) と \(Y\) は同じ大きさになる。
\(X \stackrel{\#}\le Y \stackrel{\#}\le X \Longrightarrow X \stackrel{\#}= Y\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,ax_sprf hyX <- \(\mathrm{X}' \subset \mathrm{X}\) ; hyF <- \(\mathrm{f} \in \mathrm{X} \stackrel{\rm IS}\to \mathrm{Y}'\) ; hyY <- \(\mathrm{Y}' \subset \mathrm{Y}\) ; hyG <- \(\mathrm{g} \in \mathrm{Y} \stackrel{\rm IS}\to \mathrm{X}'\) ; \(T\) := \(\mathrm{g} [ \mathrm{Y}' ]\) ; LT <- \(T \subset \mathrm{X}'\) // \(\mathbb{W}.\) -| hyG /// \(\mathbb{W}.\)'!=. , hyY / \(\mathbb{W}.\) , pr:0 p; Lgf <- \(\mathrm{g} \circ \mathrm{f} \in \mathrm{X} \stackrel{\rm IS}\to T\) //// \(\mathbb{W}.\)'!=. -| hyF /// \(\mathbb{W}.\)'!=. , hyG /// \(\mathbb{W}.\)'!=. , hyY / \(\mathbb{W}.\) , pr:0 v; LXU <- \(\mathrm{X} \stackrel{\#}\le \mathrm{X}'\) / ≤#. / =#.' -| Lgf , LT p; LXeqU <- \(\mathrm{X} \stackrel{\#}= \mathrm{X}'\) -| \(Z \subset X \stackrel{\#}\le Z \Longrightarrow X \stackrel{\#}= Z\) , hyX , LXU p; LYU <- \(\mathrm{Y} \stackrel{\#}= \mathrm{X}'\) / =#.' -| hyG p; \(\mathrm{X} \stackrel{\#}= \mathrm{Y}\) -| LXeqU , LYU , =#:X , =#:T p; Lall <- \(Y' \subset Y , X' \subset X , f \in X \stackrel{\rm IS}\to Y' , g \in Y \stackrel{\rm IS}\to X' \Longrightarrow X \stackrel{\#}= Y\) -| \(\mathbb{W}.\) , ax_s h[fix]; goal / ≤#. / =#.' -| Lall / =#.' v; goal -| \(\mathbb{W}.\) , ax_s h;!txt 2026-10-23:≤#. を部分集合との等濃度で定義し、二つの証明とも部分集合への全単射を固定して進める形に変更。単射の記号と接続補題は不要になった。集合の存在は h[fix] と ax_s で処理する。!txt 2026-10-23 速度実験:証明①の g[Y] は全単射の値域 X' に置き換え、全単射の条件を示す段では余分な包含の仮定を外した。証明②の補題の LHfn・LHbij は v; にし、主定理の g[Y'] は像の記号で直接書いて集合の固定化を省いた。条件を一段にまとめる案は遅くなるか時間切れだった。!txt 2026-10-23:全単射と直積の定義の列を W./W.' の slash に整理。最後の ≤#.・=#.' の合成は展開の深さが揃う個別指定を残した。!txt 2026-10-23 構成の実験:型の補題 hyF0・hyG0・hyH0 は使う段に全単射の条件と pr:0 を直接置けば不要。証明②の結びは Y =# X' と等濃度の対称性・推移性を使う形にできる。証明部分3217→3076字、速度は同程度。