Lean library · module TopologyByExample.Spaces.MisraSparseDisconnectedness
Total disconnectedness 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
theorem exists_new_separating_map
TopologyByExample.MisraSparse.exists_new_separating_map
A new non-apex point is separated from the whole preceding stage by a continuous Boolean map.
theorem exists_new_separating_map (e : OmegaOne → OmegaOne) (he : Function.Injective e)
(n : ℕ) (i : (layer e (n + 1)).Copies) (y : MisraE0)
(hy : ∀ s, y ≠ MisraE0.apex s) :
∃ g : Limit e → Bool, Continuous g ∧
g (toLimit e (n + 1) ((layer e (n + 1)).copyMap i y)) = true ∧
∀ x : Stage e n, g (toLimit e n x) = false
Proof
:= by
classical
obtain ⟨U, hU, hyU, ha, hpair⟩ := exists_invariant_neighbourhood e he y hy
let t := attachment e (layer e n)
let P := singlePatch t i U ha
have hP : IsClopen P.set := isClopen_singlePatch t i hU ha
let f : MapSection Bool e (layer e (n + 1)) := {
value := P.set.boolIndicator
continuous_value := (continuous_boolIndicator_iff_isClopen P.set).2 hP
agrees := by
intro j
change P.set.boolIndicator (copy t j.1 (printedTargets e j.2 false)) =
P.set.boolIndicator (copy t j.1 (printedTargets e j.2 true))
change (if printedTargets e j.2 false ∈ P.fresh j.1 then true else false) =
(if printedTargets e j.2 true ∈ P.fresh j.1 then true else false)
change (if printedTargets e j.2 false ∈
(if (j.1 : (layer e n).Copies × Edge) = i then U else ∅) then true else false) =
(if printedTargets e j.2 true ∈
(if (j.1 : (layer e n).Copies × Edge) = i then U else ∅) then true else false)
by_cases hj : (j.1 : (layer e n).Copies × Edge) = i
· simp only [hj, ite_true, hpair j.2]
· simp only [hj, ite_false, notMem_empty] }
refine ⟨stageLimitMap e (n + 1) f, continuous_stageLimitMap e (n + 1) f, ?_, ?_⟩
· rw [stageLimitMap_toLimit_self]
change P.set.boolIndicator (copy t i y) = true
apply (P.set.mem_iff_boolIndicator _).1
change y ∈ (if (i : (layer e n).Copies × Edge) = i then U else ∅)
simpa only [ite_true] using hyU
· intro x
rw [toLimit_step e n x, stageLimitMap_toLimit_self]
change P.set.boolIndicator (base t x) = false
apply (P.set.notMem_iff_boolIndicator _).1
exact notMem_empty x
theorem isPreconnected_subset_stage
TopologyByExample.MisraSparse.isPreconnected_subset_stage
A preconnected subset meeting a finite stage cannot contain points born later.
theorem isPreconnected_subset_stage (e : OmegaOne → OmegaOne) (he : Function.Injective e)
{C : Set (Limit e)} (hC : IsPreconnected C) (n : ℕ) (x : Stage e n)
(hx : toLimit e n x ∈ C) : C ⊆ range (toLimit e n)
Proof
:= by
intro z hz
rcases old_or_later_birth e n z with ⟨a, rfl⟩ | ⟨k, hk, i, y, hy, rfl⟩
· exact mem_range_self _
· cases k with
| zero => omega
| succ k =>
obtain ⟨g, hg, hnew, hold⟩ := exists_new_separating_map e he k i y hy
have hnx : n ≤ k := by omega
have hfalse : g (toLimit e n x) = false := by
rw [← toLimit_advance e hnx x]
exact hold _
have hconst := (hC.image g hg.continuousOn).subsingleton
⟨toLimit e n x, hx, rfl⟩
⟨toLimit e (k + 1) ((layer e (k + 1)).copyMap i y), hz, rfl⟩
rw [hfalse, hnew] at hconst
cases hconst
theorem totallyDisconnectedSpace
TopologyByExample.MisraSparse.totallyDisconnectedSpace
Sparse limits with injective enumeration parameter are totally disconnected.
theorem totallyDisconnectedSpace (e : OmegaOne → OmegaOne) (he : Function.Injective e) :
TotallyDisconnectedSpace (Limit e)
Proof
:= by
constructor
intro C _ hC
rcases C.eq_empty_or_nonempty with h | ⟨z, hz⟩
· subst C
exact subsingleton_empty
· obtain ⟨⟨n, x⟩, rfl⟩ := Quot.exists_rep z
have hsub := isPreconnected_subset_stage e he hC n x hz
exact ((isEmbedding_toLimit e n).isTotallyDisconnected_range.2 inferInstance) C hsub hC