Royal Road to Topology Chapter I
Chapter I. Preliminaries
Section titled “Chapter I. Preliminaries”This chapter outlines the basic set-theoretic concepts, relations, maps, orders, polarities, and cardinalities assumed throughout.
I.1. Relations and Maps
Section titled “I.1. Relations and Maps”Basic Notations
Section titled “Basic Notations”- cards/topology/equality-vs-definition
- cards/topology/sets-and-elements
- cards/topology/subset
- cards/topology/difference
Relations
Section titled “Relations”- cards/topology/relation
- cards/topology/image-and-preimage
- cards/topology/composition
- cards/topology/union-of-images
[!NOTE] Proposition I.1.1 For $R \subset X \times Y$, $A \subset X$, and $B \subset Y$, the following statements are equivalent:
- $RA \cap B \neq \emptyset$
- $A \cap R^- B \neq \emptyset$
- $R \cap (A \times B) \neq \emptyset$
📇 cards/topology/prop-i-1-1 証明(自然言語). いずれの条件も「ある $x \in A$ と $y \in B$ が存在して $(x, y) \in R$」という同一の主張を、像・逆像・直積のどの側から述べるかの違いにすぎない。実際:
- $(1) \Rightarrow (2)$: $y \in RA \cap B$ をとると、$y \in RA$ より $x \in A$ で $(x,y) \in R$ が、$y \in B$ も成り立つ。よって $x \in A$ かつ $x \in R^- B$、すなわち $x \in A \cap R^- B$。
- $(2) \Rightarrow (3)$: $x \in A \cap R^- B$ をとると $x \in A$ かつ $(x, y) \in R$ なる $y \in B$ がある。ゆえに $(x, y) \in R \cap (A \times B)$。
- $(3) \Rightarrow (1)$: $(x, y) \in R \cap (A \times B)$ をとると $y \in RA$($x \in A$ が証人)かつ $y \in B$。ゆえに $y \in RA \cap B$。
Lean. Notes/ChapterI.lean : RoyalRoad.ChapterI.prop_I_1_1(lake build 済み)
theorem prop_I_1_1 (R : Set (X × Y)) (A : Set X) (B : Set Y) : [ (relImage R A ∩ B).Nonempty, (A ∩ relPreimage R B).Nonempty, (R ∩ A ×ˢ B).Nonempty ].TFAE := by tfae_have 1 → 2 := by rintro ⟨y, ⟨x, hxA, hR⟩, hyB⟩ exact ⟨x, hxA, y, hyB, hR⟩ tfae_have 2 → 3 := by rintro ⟨x, hxA, y, hyB, hR⟩ exact ⟨(x, y), hR, hxA, hyB⟩ tfae_have 3 → 1 := by rintro ⟨⟨x, y⟩, hR, hxA, hyB⟩ exact ⟨y, ⟨x, hxA, hR⟩, hyB⟩ tfae_finish- cards/topology/inverse-relation
- Types of Relations (for $R \subset X \times X$):
- cards/topology/identity-relation
Maps (Functions)
Section titled “Maps (Functions)”[!NOTE] Proposition I.1.2 A relation $F \subset X \times Y$ is a graph if and only if $F^-Y = X$ and $F^-y_0 \cap F^-y_1 \neq \emptyset \implies y_0 = y_1$.
📇 cards/topology/prop-i-1-2 証明(自然言語). $F$ がグラフであるとは、各 $x \in X$ にちょうど一つの $y$ で $(x, y) \in F$ となるもの(存在性 + 一意性)が対応すること。
- ($\Rightarrow$) 存在性から各 $x$ にある $y$ で $(x, y) \in F$、ゆえに $x \in F^- Y$。よって $F^- Y = X$。一意性から、$x \in F^- y_0 \cap F^- y_1$ なら $(x, y_0), (x, y_1) \in F$ より $y_0 = y_1$。
- ($\Leftarrow$) $F^- Y = X$ より各 $x$ に少なくとも一つの $y$ が対応(存在性)。一価性条件から二つ対応すれば一致(一意性)。ゆえにグラフ。
Lean. Notes/ChapterI.lean : RoyalRoad.ChapterI.prop_I_1_2(全域性 relPreimage F univ = univ、一価性で定式化。IsGraph F := ∀ x, ∃! y, (x, y) ∈ F)
- cards/topology/injectivity-surjectivity-bijectivity
- cards/topology/composition-injectivity-surjectivity(Remark I.1.3: $g \circ f$ 全射 ⟹ $g$ 全射、単射 ⟹ $f$ 単射)
- cards/topology/permutation
- cards/topology/inverse-map
- cards/topology/restriction
- cards/topology/semi-inverse-map
- Semi-Inverse Map (Definition I.1.4): If $f : X \to Y$ is injective, then $f^{\sim 1} : f(X) \to X$ defined by $f^{\sim 1}(f(x)) := x$ for each $x \in X$ is the semi-inverse map of $f$.
- cards/topology/relation-surjective-injective
- Extensions to Relations (Definition I.1.5): A relation $R \subset V \times W$ is:
- Surjective if $RV = W$.
- Injective if $Rv_0 \cap Rv_1 \neq \emptyset \implies v_0 = v_1$.
- cards/topology/fiber
[!NOTE] Corollary I.1.6 A relation $F \subset X \times Y$ is a graph if and only if its inverse relation $F^-$ is surjective and injective.
📇 cards/topology/cor-i-1-6 証明(自然言語). Proposition I.1.2 の二条件を逆関係 $F^-$ の言葉に翻訳するだけ。$F^-$ の全射性 $F^- Y = X$ は全域性そのもの。$F^-$ の単射性 $F^- y_0 \cap F^- y_1 \neq \emptyset \implies y_0 = y_1$ は一価性そのもの。よって I.1.2 と同値。
Lean. Notes/ChapterI.lean : RoyalRoad.ChapterI.cor_I_1_6(relImage (relInv F) univ = relPreimage F univ などの翻訳補題を経て prop_I_1_2 に帰着)
I.2. Equivalence Relations
Section titled “I.2. Equivalence Relations”- cards/topology/equivalence-relation
- cards/topology/partition
- cards/topology/quotient-set
- cards/topology/canonical-surjection
[!NOTE] Proposition I.2.1 There exists a bijection between equivalence relations on a non-empty set $X$ and surjective maps defined on $X$.
📇 cards/topology/prop-i-2-1 証明(自然言語). 対応を両方向に構成して互いに逆であることを示す。
- 同値関係 $\sim$ には標準全射 $X \to X/{\sim}$($x \mapsto [x]$)を対応させる。
- 全射 $f : X \to Y$ には核 $\ker f := {(a, b) : f(a) = f(b)}$(同値関係)を対応させる。
標準全射の核はもとの $\sim$ に一致し($[a] = [b] \iff a \sim b$)、逆に全射 $f$ の核による商 $X/\ker f$ は $f$ の像(全射なので $Y$)と全単射 $[x] \mapsto f(x)$ で一致する。よって(全射を終域の付け替えで同一視すれば)両者は全単射に対応する。
Lean. Notes/ChapterI.lean : RoyalRoad.ChapterI.prop_I_2_1_ker_mk(Setoid.ker (Quotient.mk r) = r)と prop_I_2_1_quotientEquiv(Quotient (Setoid.ker f) ≃ Y、Mathlib Setoid.quotientKerEquivOfSurjective)で対応の両輪を形式化。
I.3. Order
Section titled “I.3. Order”- cards/topology/preorder
- cards/topology/order
- cards/topology/strict-order
- cards/topology/inverse-order
- cards/topology/linear-order
- cards/topology/diagonal-sweeping-order(Example I.3.4: $\mathbb{N}^2$ の可算列挙)
- cards/topology/lexicographic-order
- cards/topology/bounds-and-extrema
- cards/topology/lattice
- cards/topology/extended-real-line(Example I.3.9: $\overline{\mathbb{R}}$ 完備束・$\mathbb{R}$ 相対完備)
- cards/topology/powerset-complete-lattice
- cards/topology/sublattice-extrema((I.3.1): 部分束の sup/inf は挟む)
- cards/topology/order-preserving-map(Example I.3.2: 順序を保つ全単射 ≠ 順序同型)
- cards/topology/order-isomorphism
[!NOTE] Proposition I.3.8 An order isomorphism $f$ preserves extrema: $$f\left(\bigvee A\right) = \bigvee f(A), \quad f\left(\bigwedge A\right) = \bigwedge f(A)$$
📇 cards/topology/prop-i-3-8 証明(自然言語). $\bigvee A$ について示す($\bigwedge$ は双対)。$s = \bigvee A$ は $A$ の上界の最小元。$f$ は順序同型なので、$x$ が $A$ の上界 $\iff$ $f(x)$ が $f(A)$ の上界($a \le x \iff f(a) \le f(x)$)。順序同型は順序を保つ全単射ゆえ「最小の上界」を「最小の上界」に写す。したがって $f(s)$ は $f(A)$ の上限、すなわち $f(\bigvee A) = \bigvee f(A)$。
Lean. Notes/ChapterI.lean : RoyalRoad.ChapterI.prop_I_3_8_sSup / prop_I_3_8_sInf(完備束上で OrderIso.map_sSup / map_sInf を再利用。e (sSup A) = sSup (e '' A))
I.4. Polarities
Section titled “I.4. Polarities”[!NOTE] Proposition I.4.2 For $R \subset X \times Y$, $A \subset X$, and $B \subset Y$, the following are equivalent:
- $R^\circ A \supset B$
- $A \subset R^{-\circ} B$
- $A \times B \subset R$
📇 cards/topology/prop-i-4-2 証明(自然言語). $R^\circ A = {y : \forall x \in A,\ (x, y) \in R}$、$R^{-\circ} B = {x : \forall y \in B,\ (x, y) \in R}$。三条件はいずれも「$\forall x \in A,\ \forall y \in B,\ (x, y) \in R$」の言い換え:
- (1) $B \subset R^\circ A$: $\forall y \in B,\ \forall x \in A,\ (x, y) \in R$。
- (2) $A \subset R^{-\circ} B$: $\forall x \in A,\ \forall y \in B,\ (x, y) \in R$。
- (3) $A \times B \subset R$: $\forall (x, y) \in A \times B,\ (x, y) \in R$。
全称の順序を入れ替えるだけで互いに同値。
Lean. Notes/ChapterI.lean : RoyalRoad.ChapterI.prop_I_4_2(polar, polarInv を定義し TFAE で)
[!NOTE] Proposition I.4.1 The pair $(R^\circ, R^{-\circ})$ is an inverse order isomorphism (with respect to $\subset$) between $R$-bipolars and $R^-$-bipolars.
📇 cards/topology/prop-i-4-1 証明(自然言語). I.4.2 の (1)$\iff$(2) は随伴 $B \subset R^\circ A \iff A \subset R^{-\circ} B$、すなわち $(R^\circ, R^{-\circ})$ が反変ガロア接続をなすこと。一般のガロア接続論から、双極作用素 $A \mapsto R^{\circ\circ} A := R^{-\circ}(R^\circ A)$ は閉包作用素となる。実際:
- 拡大性 $A \subset R^{\circ\circ} A$、
- 単調性 $A_0 \subset A_1 \implies R^{\circ\circ} A_0 \subset R^{\circ\circ} A_1$、
- 冪等性 $R^{\circ\circ}(R^{\circ\circ} A) = R^{\circ\circ} A$。
閉包で固定される集合(=双極)の上では $R^\circ$ と $R^{-\circ}$ は互いに逆の反変全単射となり、$R$-双極と $R^-$-双極の間の逆順序同型を与える。
Lean. Notes/ChapterI.lean : RoyalRoad.ChapterI.prop_I_4_1_adjunction(随伴), bipolar_extensive / bipolar_mono / bipolar_idem(閉包作用素の三性質), polar_antitone。
I.5. Finite and Infinite Cardinals
Section titled “I.5. Finite and Infinite Cardinals”- cards/topology/cardinality-equipotence
- cards/topology/cardinality-comparison
- cards/topology/interval-equipotent-line(Example I.5.1: $]a,b[\simeq \mathbb{R}$) - cards/topology/finite-and-infinite
- cards/topology/natural-numbers
- cards/topology/thm-i-5-2-induction(帰納法原理)
- cards/topology/countability
[!NOTE] Proposition I.5.3 A set $X$ is countable if and only if it is either finite and non-empty, or $\text{card } X = \aleph_0$.
📇 cards/topology/prop-i-5-3 証明(自然言語). 本書の「可算」は「$\mathbb{N}$ の像」、すなわち全射 $\mathbb{N} \to X$ が存在すること(像は空でない)。
- ($\Rightarrow$) 全射 $f : \mathbb{N} \to X$ があれば $X$ は空でなく可算濃度。$X$ が有限なら「有限かつ空でない」。無限なら可算無限ゆえ $X \simeq \mathbb{N}$、すなわち $\text{card } X = \aleph_0$。
- ($\Leftarrow$) 有限かつ空でなければ要素を有限列に並べ、最後の要素で埋めて $\mathbb{N}$ から全射が作れる。$X \simeq \mathbb{N}$ ならその全単射(の逆)が全射を与える。
Lean. Notes/ChapterI.lean : RoyalRoad.ChapterI.prop_I_5_3((∃ f : ℕ → X, Surjective f) ↔ ((Finite X ∧ Nonempty X) ∨ Nonempty (X ≃ ℕ))。finite_or_infinite、nonempty_denumerable_iff、countable_iff_exists_surjective を利用)
[!NOTE] Proposition I.5.4 & Corollary I.5.6
- The countable union of countable sets is countable.
- The product of two countable sets is countable.
- Consequently, the set of rational numbers $\mathbb{Q}$ is countable.
📇 cards/topology/prop-i-5-4 証明(自然言語).
- 可算和: 添字集合が可算で各 $s_i$ が可算なら、$\mathbb{N} \times \mathbb{N}$ が可算(対関数)であることから $\bigcup_i s_i$ も $\mathbb{N}$ の像として可算。
- 積: $s, t$ が可算なら $s \times t$ は $\mathbb{N} \times \mathbb{N}$ の像として可算。
- 系: $\mathbb{Q}$ は各 $n$ に対する ${m/n : m \in \mathbb{Z}}$(可算)の可算和なので可算。
Lean. Notes/ChapterI.lean : RoyalRoad.ChapterI.prop_I_5_4_iUnion(Set.countable_iUnion), cor_I_5_6_prod(Set.Countable.prod), cor_I_5_6_rat(ℚ の可算インスタンス + Set.countable_univ)
- cards/topology/prop-i-5-5($\mathbb{Q}$ の可算性)
- cards/topology/cor-i-5-6(可算集合の積)
- cards/topology/uncountability
- cards/topology/prop-i-5-7($\mathbb{R}$ 非可算・連続体濃度 $\mathfrak{c}$)
[!NOTE] Theorem I.5.8 (Cantor) For every set $X$: $$\text{card } X < \text{card } 2^X$$
📇 cards/topology/thm-i-5-8-cantor 証明(自然言語). $\text{card } X \le \text{card } 2^X$ は $x \mapsto {x}$ が単射より明らか。等号不成立を背理法で示す。全射 $g : X \to 2^X$ があると仮定し、対角集合 $D := {x \in X : x \notin g(x)}$ をとる。全射性より $D = g(x_0)$ なる $x_0$ がある。すると $x_0 \in D \iff x_0 \notin g(x_0) = D$ となり矛盾。ゆえに全射は存在せず、$\text{card } X < \text{card } 2^X$。
Lean. Notes/ChapterI.lean : RoyalRoad.ChapterI.thm_I_5_8_cantor(Cardinal.mk X < Cardinal.mk (Set X)。Cardinal.mk_set で $2^{#X}$ に直し Cardinal.cantor を適用)
- cards/topology/characteristic-function((I.5.4): $2^X \simeq {0,1}^X$)
- cards/topology/disjoint-union
- cards/topology/finite-subsets