Lean library · module TopologyByExample.Spaces.MisraLimitTopology
Hausdorffness of the all-pairs Misra limit
This file was written by Codex (OpenAI's AI model) working under the direction of David R. MacIver, who reviews it and is responsible for it.
definition advance
TopologyByExample.MisraAllPairs.advance
Carry a point from one finite stage to any later stage.
def advance {n m : ℕ} (h : n ≤ m) (x : Stage n) : Stage m
:=
Nat.leRecOn h (fun {k} ↦ step k) x
theorem advance_self
TopologyByExample.MisraAllPairs.advance_self
@[simp] theorem advance_self (n : ℕ) (x : Stage n) : advance (le_refl n) x = x
Proof
:=
Nat.leRecOn_self x
theorem advance_succ
TopologyByExample.MisraAllPairs.advance_succ
Advancing one more stage applies the bonding map.
theorem advance_succ {n m : ℕ} (h : n ≤ m) (x : Stage n) :
advance (h.trans (Nat.le_succ m)) x = step m (advance h x)
Proof
:= Nat.leRecOn_succ h x
theorem advance_succ_left
TopologyByExample.MisraAllPairs.advance_succ_left
Starting after the first bonding map gives the same later point.
theorem advance_succ_left {n m : ℕ} (h : n + 1 ≤ m) (x : Stage n) :
advance h (step n x) = advance ((Nat.le_succ n).trans h) x
Proof
:=
Nat.leRecOn_succ_left x h
theorem continuous_advance
TopologyByExample.MisraAllPairs.continuous_advance
Iterated bonding maps are continuous.
theorem continuous_advance {n m : ℕ} (h : n ≤ m) : Continuous (advance h)
Proof
:= by
induction m, h using Nat.le_induction with
| base =>
have he : advance (le_refl n) = (id : Stage n → Stage n) := funext (advance_self n)
rw [he]
exact continuous_id
| succ m h ih =>
simpa only [show advance (h.trans (Nat.le_succ m)) = step m ∘ advance h from
funext (advance_succ h)] using (isClosedEmbedding_step m).continuous.comp ih
theorem toLimit_advance
TopologyByExample.MisraAllPairs.toLimit_advance
Advancing a point does not change its image in the limit.
theorem toLimit_advance {n m : ℕ} (h : n ≤ m) (x : Stage n) :
toLimit m (advance h x) = toLimit n x
Proof
:= by
induction m, h using Nat.le_induction with
| base => simp only [advance_self]
| succ m h ih =>
rw [advance_succ h, ← toLimit_step]
exact ih
definition forward
TopologyByExample.MisraAllPairs.forward
Extend a subset through all subsequent stages by apex tails.
noncomputable def forward {n m : ℕ} (h : n ≤ m) (U : Set (Stage n)) : Set (Stage m)
:=
Nat.leRecOn h (fun {k} V ↦ (tailPatch (allPairs (X := Stage k)) V ⊥).set) U
theorem forward_self
TopologyByExample.MisraAllPairs.forward_self
@[simp] theorem forward_self (n : ℕ) (U : Set (Stage n)) : forward (le_refl n) U = U
Proof
:=
Nat.leRecOn_self (motive := fun k ↦ Set (Stage k)) U
theorem forward_succ
TopologyByExample.MisraAllPairs.forward_succ
The next extension is the tail patch of the current extension.
theorem forward_succ {n m : ℕ} (h : n ≤ m) (U : Set (Stage n)) :
forward (h.trans (Nat.le_succ m)) U = (tailPatch allPairs (forward h U) ⊥).set
Proof
:=
Nat.leRecOn_succ (motive := fun k ↦ Set (Stage k)) h U
theorem isOpen_forward
TopologyByExample.MisraAllPairs.isOpen_forward
Forward extensions of open sets are open.
theorem isOpen_forward {n m : ℕ} (h : n ≤ m) {U : Set (Stage n)} (hU : IsOpen U) :
IsOpen (forward h U)
Proof
:= by
induction m, h using Nat.le_induction with
| base => simpa only [forward_self] using hU
| succ m h ih =>
rw [forward_succ h]
exact isOpen_tailPatch allPairs ih ⊥
theorem disjoint_forward
TopologyByExample.MisraAllPairs.disjoint_forward
Forward extensions of disjoint sets remain disjoint.
theorem disjoint_forward {n m : ℕ} (h : n ≤ m) {U V : Set (Stage n)}
(hUV : Disjoint U V) : Disjoint (forward h U) (forward h V)
Proof
:= by
induction m, h using Nat.le_induction with
| base => simpa only [forward_self] using hUV
| succ m h ih =>
rw [forward_succ h, forward_succ h]
exact disjoint_tailPatch allPairs ih ⊥ ⊥
definition thread
TopologyByExample.MisraAllPairs.thread
A subset at one stage determines compatible subsets at all stages.
noncomputable def thread (n : ℕ) (U : Set (Stage n)) (k : ℕ) : Set (Stage k)
:=
if h : n ≤ k then forward h U else advance (Nat.le_of_lt (Nat.lt_of_not_ge h)) ⁻¹' U
theorem thread_self
TopologyByExample.MisraAllPairs.thread_self
@[simp] theorem thread_self (n : ℕ) (U : Set (Stage n)) : thread n U n = U
Proof
:= by
simp [thread]
theorem thread_compatible
TopologyByExample.MisraAllPairs.thread_compatible
Successive members of a thread have exactly matching traces.
theorem thread_compatible (n : ℕ) (U : Set (Stage n)) (k : ℕ) :
step k ⁻¹' thread n U (k + 1) = thread n U k
Proof
:= by
by_cases h : n ≤ k
· rw [thread, dite_eq_left (h.trans (Nat.le_succ k)), thread, dite_eq_left h, forward_succ h]
rfl
· by_cases h' : n ≤ k + 1
· have heq : n = k + 1 := by omega
subst n
rw [thread_self, thread, dite_eq_right h]
congr 1
funext x
exact ((advance_succ (le_refl k) x).trans (congrArg (step k) (advance_self k x))).symm
· rw [thread, dite_eq_right h', thread, dite_eq_right h]
ext x
exact congrArg (fun y ↦ y ∈ U) (advance_succ_left (by omega) x) |> Iff.of_eq
theorem isOpen_thread
TopologyByExample.MisraAllPairs.isOpen_thread
Every member of the thread of an open set is open.
theorem isOpen_thread (n : ℕ) {U : Set (Stage n)} (hU : IsOpen U) (k : ℕ) :
IsOpen (thread n U k)
Proof
:= by
unfold thread
split_ifs with h
· exact isOpen_forward h hU
· exact hU.preimage (continuous_advance _)
theorem disjoint_thread
TopologyByExample.MisraAllPairs.disjoint_thread
Threads of disjoint sets are pointwise disjoint.
theorem disjoint_thread (n : ℕ) {U V : Set (Stage n)} (hUV : Disjoint U V) (k : ℕ) :
Disjoint (thread n U k) (thread n V k)
Proof
:= by
unfold thread
split_ifs with h
· exact disjoint_forward h hUV
· exact hUV.preimage _
definition limitSet
TopologyByExample.MisraAllPairs.limitSet
Descend a compatible thread to a subset of the limit.
noncomputable def limitSet (n : ℕ) (U : Set (Stage n)) : Set Limit
Definition
:=
Set.ofPred <| Quot.lift (fun p : Σ k, Stage k ↦ p.2 ∈ thread n U p.1) (by
intro a b h
cases h with
| next k x =>
exact congrArg (fun V : Set (Stage k) ↦ x ∈ V) (thread_compatible n U k).symm)
theorem preimage_limitSet
TopologyByExample.MisraAllPairs.preimage_limitSet
The trace of a limit subset on each stage is its thread member.
@[simp] theorem preimage_limitSet (n : ℕ) (U : Set (Stage n)) (k : ℕ) :
toLimit k ⁻¹' limitSet n U = thread n U k
Proof
:= rfl
theorem preimage_limitSet_self
TopologyByExample.MisraAllPairs.preimage_limitSet_self
The limit extension has the original prescribed trace.
theorem preimage_limitSet_self (n : ℕ) (U : Set (Stage n)) :
toLimit n ⁻¹' limitSet n U = U
Proof
:= thread_self n U
theorem isOpen_limitSet
TopologyByExample.MisraAllPairs.isOpen_limitSet
Open stage subsets extend to open limit subsets.
theorem isOpen_limitSet (n : ℕ) {U : Set (Stage n)} (hU : IsOpen U) :
IsOpen (limitSet n U)
Proof
:= by
apply (isQuotientMap_quot_mk (r := Rel)).isOpen_preimage.mp
exact isOpen_sigma_iff.2 (isOpen_thread n hU)
theorem disjoint_limitSet
TopologyByExample.MisraAllPairs.disjoint_limitSet
Disjoint stage subsets have disjoint limit extensions.
theorem disjoint_limitSet (n : ℕ) {U V : Set (Stage n)} (hUV : Disjoint U V) :
Disjoint (limitSet n U) (limitSet n V)
Proof
:= by
apply disjoint_left.2
intro z
induction z using Quot.inductionOn with
| h p => exact fun hu hv ↦ disjoint_left.1 (disjoint_thread n hUV p.1) hu hv
instance
instance : T2Space Limit
Proof
where
t2 x y hxy := by
induction x using Quot.inductionOn with
| h p =>
induction y using Quot.inductionOn with
| h q =>
rcases p with ⟨n, a⟩
rcases q with ⟨m, b⟩
let k := max n m
let a' := advance (le_max_left n m) a
let b' := advance (le_max_right n m) b
have ha : toLimit k a' = toLimit n a := toLimit_advance _ a
have hb : toLimit k b' = toLimit m b := toLimit_advance _ b
have hab : a' ≠ b' := by
intro h
exact hxy (ha.symm.trans ((congrArg (toLimit k) h).trans hb))
obtain ⟨U, V, hU, hV, haU, hbV, hUV⟩ := t2_separation hab
refine ⟨limitSet k U, limitSet k V, isOpen_limitSet k hU,
isOpen_limitSet k hV, ?_, ?_, disjoint_limitSet k hUV⟩
· change toLimit n a ∈ limitSet k U
rw [← ha]
exact (show a' ∈ toLimit k ⁻¹' limitSet k U from
(preimage_limitSet_self k U).symm ▸ haU)
· change toLimit m b ∈ limitSet k V
rw [← hb]
exact (show b' ∈ toLimit k ⁻¹' limitSet k V from
(preimage_limitSet_self k V).symm ▸ hbV)
theorem isInducing_toLimit
TopologyByExample.MisraAllPairs.isInducing_toLimit
Each finite stage has its original topology as a subspace of the limit.
theorem isInducing_toLimit (n : ℕ) : IsInducing (toLimit n)
Proof
:= by
constructor
apply TopologicalSpace.ext
funext U
apply propext
constructor
· intro hU
exact ⟨limitSet n U, isOpen_limitSet n hU, preimage_limitSet_self n U⟩
· rintro ⟨V, hV, rfl⟩
exact hV.preimage (continuous_toLimit n)
theorem toLimit_injective
TopologyByExample.MisraAllPairs.toLimit_injective
No two points of a finite stage are identified in the limit.
theorem toLimit_injective (n : ℕ) : Function.Injective (toLimit n)
Proof
:= by
intro x y h
by_contra hxy
let U : Set (Stage n) := {y}ᶜ
have hx : toLimit n x ∈ limitSet n U := by
change x ∈ toLimit n ⁻¹' limitSet n U
rw [preimage_limitSet_self]
exact hxy
have hy : toLimit n y ∉ limitSet n U := by
change y ∉ toLimit n ⁻¹' limitSet n U
rw [preimage_limitSet_self]
exact fun h ↦ h rfl
exact hy (h ▸ hx)
theorem isEmbedding_toLimit
TopologyByExample.MisraAllPairs.isEmbedding_toLimit
Every finite stage embeds into the limit.
theorem isEmbedding_toLimit (n : ℕ) : IsEmbedding (toLimit n)
Proof
:=
⟨isInducing_toLimit n, toLimit_injective n⟩