Lean library · module TopologyByExample.Spaces.MisraSparseTopology
Hausdorffness and stage embeddings of the sparse 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.
Imports
definition Stage
TopologyByExample.MisraSparse.Stage
The carrier of a finite sparse attachment stage.
abbrev Stage (e : OmegaOne → OmegaOne) (n : ℕ)
:= (layer e n).Carrier
variable (e : OmegaOne → OmegaOne)
theorem isClosedEmbedding_step
TopologyByExample.MisraSparse.isClosedEmbedding_step
Each sparse bonding map is a closed embedding.
theorem isClosedEmbedding_step (n : ℕ) : IsClosedEmbedding (step e n)
Proof
:=
isClosedEmbedding_base (attachment e (layer e n))
theorem continuous_toLimit
TopologyByExample.MisraSparse.continuous_toLimit
Each finite-stage map to the sparse limit is continuous.
theorem continuous_toLimit (n : ℕ) : Continuous (toLimit e n)
Proof
:=
continuous_quot_mk.comp continuous_sigmaMk
theorem toLimit_step
TopologyByExample.MisraSparse.toLimit_step
Successive-stage maps agree along the bonding map.
theorem toLimit_step (n : ℕ) (x : Stage e n) :
toLimit e n x = toLimit e (n + 1) (step e n x)
Proof
:= Quot.sound (Rel.step n x)
definition advance
TopologyByExample.MisraSparse.advance
Carry a point from one finite stage to any later stage.
noncomputable def advance {n m : ℕ} (h : n ≤ m) (x : Stage e n) : Stage e m
:=
Nat.leRecOn h (fun {k} ↦ step e k) x
theorem advance_self
TopologyByExample.MisraSparse.advance_self
@[simp] theorem advance_self (n : ℕ) (x : Stage e n) : advance e (le_refl n) x = x
Proof
:=
Nat.leRecOn_self x
theorem advance_succ
TopologyByExample.MisraSparse.advance_succ
Advancing one more stage applies the bonding map.
theorem advance_succ {n m : ℕ} (h : n ≤ m) (x : Stage e n) :
advance e (h.trans (Nat.le_succ m)) x = step e m (advance e h x)
Proof
:= Nat.leRecOn_succ h x
theorem advance_succ_left
TopologyByExample.MisraSparse.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 e n) :
advance e h (step e n x) = advance e ((Nat.le_succ n).trans h) x
Proof
:=
Nat.leRecOn_succ_left x h
theorem continuous_advance
TopologyByExample.MisraSparse.continuous_advance
Iterated bonding maps are continuous.
theorem continuous_advance {n m : ℕ} (h : n ≤ m) : Continuous (advance e h)
Proof
:= by
induction m, h using Nat.le_induction with
| base =>
have he : advance e (le_refl n) = (id : Stage e n → Stage e n) := funext (advance_self e n)
rw [he]
exact continuous_id
| succ m h ih =>
simpa only [show advance e (h.trans (Nat.le_succ m)) = step e m ∘ advance e h from
funext (advance_succ e h)] using (isClosedEmbedding_step e m).continuous.comp ih
theorem toLimit_advance
TopologyByExample.MisraSparse.toLimit_advance
Advancing a point does not change its image in the limit.
theorem toLimit_advance {n m : ℕ} (h : n ≤ m) (x : Stage e n) :
toLimit e m (advance e h x) = toLimit e n x
Proof
:= by
induction m, h using Nat.le_induction with
| base => simp only [advance_self e]
| succ m h ih =>
rw [advance_succ e h, ← toLimit_step e]
exact ih
definition forward
TopologyByExample.MisraSparse.forward
Extend a subset through all subsequent stages by apex tails.
noncomputable def forward {n m : ℕ} (h : n ≤ m) (U : Set (Stage e n)) : Set (Stage e m)
:=
Nat.leRecOn h (fun {k} V ↦ (tailPatch (attachment e (layer e k)) V ⊥).set) U
theorem forward_self
TopologyByExample.MisraSparse.forward_self
@[simp] theorem forward_self (n : ℕ) (U : Set (Stage e n)) : forward e (le_refl n) U = U
Proof
:=
Nat.leRecOn_self (motive := fun k ↦ Set (Stage e k)) U
theorem forward_succ
TopologyByExample.MisraSparse.forward_succ
The next extension is the tail patch of the current extension.
theorem forward_succ {n m : ℕ} (h : n ≤ m) (U : Set (Stage e n)) :
forward e (h.trans (Nat.le_succ m)) U =
(tailPatch (attachment e (layer e m)) (forward e h U) ⊥).set
Proof
:=
Nat.leRecOn_succ (motive := fun k ↦ Set (Stage e k)) h U
theorem isOpen_forward
TopologyByExample.MisraSparse.isOpen_forward
Forward extensions of open sets are open.
theorem isOpen_forward {n m : ℕ} (h : n ≤ m) {U : Set (Stage e n)} (hU : IsOpen U) :
IsOpen (forward e h U)
Proof
:= by
induction m, h using Nat.le_induction with
| base => simpa only [forward_self e] using hU
| succ m h ih =>
rw [forward_succ e h]
exact isOpen_tailPatch (attachment e (layer e m)) ih ⊥
theorem disjoint_forward
TopologyByExample.MisraSparse.disjoint_forward
Forward extensions of disjoint sets remain disjoint.
theorem disjoint_forward {n m : ℕ} (h : n ≤ m) {U V : Set (Stage e n)}
(hUV : Disjoint U V) : Disjoint (forward e h U) (forward e h V)
Proof
:= by
induction m, h using Nat.le_induction with
| base => simpa only [forward_self e] using hUV
| succ m h ih =>
rw [forward_succ e h, forward_succ e h]
exact disjoint_tailPatch (attachment e (layer e m)) ih ⊥ ⊥
definition thread
TopologyByExample.MisraSparse.thread
A subset at one stage determines compatible subsets at all stages.
noncomputable def thread (n : ℕ) (U : Set (Stage e n)) (k : ℕ) : Set (Stage e k)
:=
if h : n ≤ k then forward e h U else advance e (Nat.le_of_lt (Nat.lt_of_not_ge h)) ⁻¹' U
theorem thread_self
TopologyByExample.MisraSparse.thread_self
@[simp] theorem thread_self (n : ℕ) (U : Set (Stage e n)) : thread e n U n = U
Proof
:= by
simp [thread]
theorem thread_compatible
TopologyByExample.MisraSparse.thread_compatible
Successive members of a thread have exactly matching traces.
theorem thread_compatible (n : ℕ) (U : Set (Stage e n)) (k : ℕ) :
step e k ⁻¹' thread e n U (k + 1) = thread e 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 e h]
rfl
· by_cases h' : n ≤ k + 1
· have heq : n = k + 1 := by omega
subst n
rw [thread_self e, thread, dite_eq_right h]
congr 1
funext x
exact ((advance_succ e (le_refl k) x).trans (congrArg (step e k) (advance_self e 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 e (by omega) x) |> Iff.of_eq
theorem isOpen_thread
TopologyByExample.MisraSparse.isOpen_thread
Every member of the thread of an open set is open.
theorem isOpen_thread (n : ℕ) {U : Set (Stage e n)} (hU : IsOpen U) (k : ℕ) :
IsOpen (thread e n U k)
Proof
:= by
unfold thread
split_ifs with h
· exact isOpen_forward e h hU
· exact hU.preimage (continuous_advance e _)
theorem disjoint_thread
TopologyByExample.MisraSparse.disjoint_thread
Threads of disjoint sets are pointwise disjoint.
theorem disjoint_thread (n : ℕ) {U V : Set (Stage e n)} (hUV : Disjoint U V) (k : ℕ) :
Disjoint (thread e n U k) (thread e n V k)
Proof
:= by
unfold thread
split_ifs with h
· exact disjoint_forward e h hUV
· exact hUV.preimage _
definition limitSet
TopologyByExample.MisraSparse.limitSet
Descend a compatible thread to a subset of the limit.
noncomputable def limitSet (n : ℕ) (U : Set (Stage e n)) : Set (Limit e)
Definition
:=
Set.ofPred <| Quot.lift (fun p : Σ k, Stage e k ↦ p.2 ∈ thread e n U p.1) (by
intro a b h
cases h with
| step k x =>
exact congrArg (fun V : Set (Stage e k) ↦ x ∈ V) (thread_compatible e n U k).symm)
theorem preimage_limitSet
TopologyByExample.MisraSparse.preimage_limitSet
The trace of a limit subset on each stage is its thread member.
@[simp] theorem preimage_limitSet (n : ℕ) (U : Set (Stage e n)) (k : ℕ) :
toLimit e k ⁻¹' limitSet e n U = thread e n U k
Proof
:= rfl
theorem preimage_limitSet_self
TopologyByExample.MisraSparse.preimage_limitSet_self
The limit extension has the original prescribed trace.
theorem preimage_limitSet_self (n : ℕ) (U : Set (Stage e n)) :
toLimit e n ⁻¹' limitSet e n U = U
Proof
:= thread_self e n U
theorem isOpen_limitSet
TopologyByExample.MisraSparse.isOpen_limitSet
Open stage subsets extend to open limit subsets.
theorem isOpen_limitSet (n : ℕ) {U : Set (Stage e n)} (hU : IsOpen U) :
IsOpen (limitSet e n U)
Proof
:= by
apply (isQuotientMap_quot_mk (r := (Rel e))).isOpen_preimage.mp
exact isOpen_sigma_iff.2 (isOpen_thread e n hU)
theorem disjoint_limitSet
TopologyByExample.MisraSparse.disjoint_limitSet
Disjoint stage subsets have disjoint limit extensions.
theorem disjoint_limitSet (n : ℕ) {U V : Set (Stage e n)} (hUV : Disjoint U V) :
Disjoint (limitSet e n U) (limitSet e 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 e n hUV p.1) hu hv
instance
instance : T2Space (Limit e)
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 e (le_max_left n m) a
let b' := advance e (le_max_right n m) b
have ha : toLimit e k a' = toLimit e n a := toLimit_advance e _ a
have hb : toLimit e k b' = toLimit e m b := toLimit_advance e _ b
have hab : a' ≠ b' := by
intro h
exact hxy (ha.symm.trans ((congrArg (toLimit e k) h).trans hb))
obtain ⟨U, V, hU, hV, haU, hbV, hUV⟩ := t2_separation hab
refine ⟨limitSet e k U, limitSet e k V, isOpen_limitSet e k hU,
isOpen_limitSet e k hV, ?_, ?_, disjoint_limitSet e k hUV⟩
· change toLimit e n a ∈ limitSet e k U
rw [← ha]
exact (show a' ∈ toLimit e k ⁻¹' limitSet e k U from
(preimage_limitSet_self e k U).symm ▸ haU)
· change toLimit e m b ∈ limitSet e k V
rw [← hb]
exact (show b' ∈ toLimit e k ⁻¹' limitSet e k V from
(preimage_limitSet_self e k V).symm ▸ hbV)
theorem isInducing_toLimit
TopologyByExample.MisraSparse.isInducing_toLimit
Each finite stage has its original topology as a subspace of the limit.
theorem isInducing_toLimit (n : ℕ) : IsInducing (toLimit e n)
Proof
:= by
constructor
apply TopologicalSpace.ext
funext U
apply propext
constructor
· intro hU
exact ⟨limitSet e n U, isOpen_limitSet e n hU, preimage_limitSet_self e n U⟩
· rintro ⟨V, hV, rfl⟩
exact hV.preimage (continuous_toLimit e n)
theorem toLimit_injective
TopologyByExample.MisraSparse.toLimit_injective
No two points of a finite stage are identified in the limit.
theorem toLimit_injective (n : ℕ) : Function.Injective (toLimit e n)
Proof
:= by
intro x y h
by_contra hxy
let U : Set (Stage e n) := {y}ᶜ
have hx : toLimit e n x ∈ limitSet e n U := by
change x ∈ toLimit e n ⁻¹' limitSet e n U
rw [preimage_limitSet_self e]
exact hxy
have hy : toLimit e n y ∉ limitSet e n U := by
change y ∉ toLimit e n ⁻¹' limitSet e n U
rw [preimage_limitSet_self e]
exact fun h ↦ h rfl
exact hy (h ▸ hx)
theorem isEmbedding_toLimit
TopologyByExample.MisraSparse.isEmbedding_toLimit
Every finite stage embeds into the limit.
theorem isEmbedding_toLimit (n : ℕ) : IsEmbedding (toLimit e n)
Proof
:=
⟨isInducing_toLimit e n, toLimit_injective e n⟩
theorem isClosedEmbedding_advance
TopologyByExample.MisraSparse.isClosedEmbedding_advance
Each composite of finite-stage bonding maps is a closed embedding.
theorem isClosedEmbedding_advance {n m : ℕ} (h : n ≤ m) :
IsClosedEmbedding (advance e h)
Proof
:= by
induction m, h using Nat.le_induction with
| base =>
have he : advance e (le_refl n) = (id : Stage e n → Stage e n) := funext (advance_self e n)
rw [he]
exact IsClosedEmbedding.id
| succ m h ih =>
have he : advance e (h.trans (Nat.le_succ m)) = step e m ∘ advance e h :=
funext (advance_succ e h)
rw [he]
exact (isClosedEmbedding_step e m).comp ih
theorem preimage_range_toLimit_of_le
TopologyByExample.MisraSparse.preimage_range_toLimit_of_le
A stage's image meets a later stage in exactly its finite bonding image.
theorem preimage_range_toLimit_of_le {n m : ℕ} (h : n ≤ m) :
toLimit e m ⁻¹' range (toLimit e n) = range (advance e h)
Proof
:= by
ext x
constructor
· rintro ⟨y, hy⟩
refine ⟨y, (toLimit_injective e m) ?_⟩
exact (toLimit_advance e h y).trans hy
· rintro ⟨y, rfl⟩
exact ⟨y, (toLimit_advance e h y).symm⟩
theorem preimage_range_toLimit_of_ge
TopologyByExample.MisraSparse.preimage_range_toLimit_of_ge
Every earlier stage lies in the image of a later stage.
theorem preimage_range_toLimit_of_ge {n m : ℕ} (h : m ≤ n) :
toLimit e m ⁻¹' range (toLimit e n) = univ
Proof
:= by
apply eq_univ_of_forall
intro x
exact ⟨advance e h x, toLimit_advance e h x⟩
theorem isClosed_range_toLimit
TopologyByExample.MisraSparse.isClosed_range_toLimit
Every finite stage has closed image in the limit.
theorem isClosed_range_toLimit (n : ℕ) : IsClosed (range (toLimit e n))
Proof
:= by
apply (isQuotientMap_quot_mk (r := (Rel e))).isClosed_preimage.mp
apply isClosed_sigma_iff.2
intro m
change IsClosed (toLimit e m ⁻¹' range (toLimit e n))
rcases le_total n m with h | h
· rw [preimage_range_toLimit_of_le e h]
exact (isClosedEmbedding_advance e h).isClosed_range
· rw [preimage_range_toLimit_of_ge e h]
exact isClosed_univ
theorem isClosedEmbedding_toLimit
TopologyByExample.MisraSparse.isClosedEmbedding_toLimit
Each finite stage is a closed subspace of the limit.
theorem isClosedEmbedding_toLimit (n : ℕ) : IsClosedEmbedding (toLimit e n)
Proof
:=
⟨isEmbedding_toLimit e n, isClosed_range_toLimit e n⟩
theorem not_countablyParacompactSpace
TopologyByExample.MisraSparse.not_countablyParacompactSpace
The closed initial E₀ obstructs countable paracompactness of the limit.
theorem not_countablyParacompactSpace : ¬CountablyParacompactSpace (Limit e)
Proof
:= by
intro h
let := h
exact MisraE0.not_countablyParacompactSpace
(isClosedEmbedding_toLimit e 0).countablyParacompactSpace
theorem not_t25Space
TopologyByExample.MisraSparse.not_t25Space
The embedded initial E₀ obstructs Urysohn separation in every sparse limit.
theorem not_t25Space : ¬T25Space (Limit e)
Proof
:= by
intro h
let := h
exact MisraE0.not_t25Space (isEmbedding_toLimit e 0).t25Space