Lean library · module TopologyByExample.Spaces.MisraSparseLocalConnectedness
Failure of local connectedness in the sparse 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
variable (e : OmegaOne → OmegaOne)
theorem forward_union
TopologyByExample.MisraSparse.forward_union
Forward extension commutes with binary unions.
theorem forward_union {n m : ℕ} (h : n ≤ m) (U V : Set (Stage e n)) :
forward e h (U ∪ V) = forward e h U ∪ forward e h V
Proof
:= by
induction m, h using Nat.le_induction with
| base => simp only [forward_self]
| succ m h ih =>
rw [forward_succ e h, forward_succ e h, forward_succ e h, ih, MisraAllPairs.tailPatch_union]
rfl
theorem forward_trans
TopologyByExample.MisraSparse.forward_trans
Extending through an intermediate stage gives the same final extension.
theorem forward_trans {n m k : ℕ} (h : n ≤ m) (h' : m ≤ k) (U : Set (Stage e n)) :
forward e h' (forward e h U) = forward e (h.trans h') U
Proof
:= by
induction k, h' using Nat.le_induction with
| base => simp only [forward_self]
| succ k hk ih => rw [forward_succ e hk, forward_succ e (h.trans hk), ih]
theorem eq_of_eventual_preimage_eq
TopologyByExample.MisraSparse.eq_of_eventual_preimage_eq
Limit subsets are equal if their traces agree on all sufficiently late stages.
theorem eq_of_eventual_preimage_eq {A B : Set (Limit e)} (n : ℕ)
(h : ∀ k, n ≤ k → toLimit e k ⁻¹' A = toLimit e k ⁻¹' B) : A = B
Proof
:= by
ext z
obtain ⟨⟨m, x⟩, hx⟩ := Quot.exists_rep z
change toLimit e m x = z at hx
let k := max n m
let y := advance e (Nat.le_max_right n m) x
have hy : toLimit e k y = z := (toLimit_advance e _ x).trans hx
have he := congrArg (fun S : Set (Stage e k) ↦ y ∈ S) (h k (Nat.le_max_left n m))
change (toLimit e k y ∈ A) = (toLimit e k y ∈ B) at he
rw [hy] at he
exact Iff.of_eq he
theorem limitSet_union
TopologyByExample.MisraSparse.limitSet_union
Limit extension commutes with binary unions.
theorem limitSet_union (n : ℕ) (U V : Set (Stage e n)) :
limitSet e n (U ∪ V) = limitSet e n U ∪ limitSet e n V
Proof
:= by
apply eq_of_eventual_preimage_eq e n
intro k h
simp only [preimage_union, preimage_limitSet, thread, dite_eq_left h, forward_union e]
theorem limitSet_forward
TopologyByExample.MisraSparse.limitSet_forward
Restarting a tail extension at a later trace leaves its limit subset unchanged.
theorem limitSet_forward {n m : ℕ} (h : n ≤ m) (U : Set (Stage e n)) :
limitSet e m (forward e h U) = limitSet e n U
Proof
:= by
apply eq_of_eventual_preimage_eq e m
intro k hk
simp only [preimage_limitSet, thread]
rw [dite_eq_left hk, dite_eq_left (h.trans hk), forward_trans e]
theorem no_connected_open_neighbourhood
TopologyByExample.MisraSparse.no_connected_open_neighbourhood
No connected open neighbourhood of an initial point fits inside its canonical tail extension.
theorem no_connected_open_neighbourhood (x : Stage e 0) {C : Set (Limit e)}
(hC : IsOpen C) (hx : toLimit e 0 x ∈ C)
(hsub : C ⊆ limitSet e 0 (univ : Set (Stage e 0))) : ¬IsPreconnected C
Proof
:= by
classical
let U : Set (Stage e 1) := forward e (Nat.zero_le 1) (univ : Set (Stage e 0))
have hU : IsOpen U := isOpen_forward e _ isOpen_univ
have htrace : limitSet e 1 U = limitSet e 0 (univ : Set (Stage e 0)) :=
limitSet_forward e (Nat.zero_le 1) univ
have hx1 : step e 0 x ∈ toLimit e 1 ⁻¹' C := by
change toLimit e 1 (step e 0 x) ∈ C
rwa [← toLimit_step e]
obtain ⟨y, hyC, hynew⟩ := exists_new_mem e 0 x (hC.preimage (continuous_toLimit e 1)) hx1
have hyx : y ≠ step e 0 x := fun h ↦ hynew ⟨x, h.symm⟩
obtain ⟨W, hW, hyW, hxW⟩ : ∃ W : Set (Stage e 1), IsClopen W ∧ y ∈ W ∧ step e 0 x ∉ W := by
rcases base_or_new (attachment e (layer e 0)) y with ⟨a, ha⟩ | ⟨i, z, hz, rfl⟩
· exact False.elim (hynew ⟨a, ha.symm⟩)
· exact exists_clopen_separator_new (attachment e (layer e 0)) i hz hyx
let A := limitSet e 1 (U ∩ W)
let B := limitSet e 1 (U ∩ Wᶜ)
have hA : IsOpen A := isOpen_limitSet e 1 (hU.inter hW.isOpen)
have hB : IsOpen B := isOpen_limitSet e 1 (hU.inter hW.isClosed.isOpen_compl)
have hAB : Disjoint A B := disjoint_limitSet e 1 (by
apply disjoint_left.2
exact fun z hz hz' ↦ hz'.2 hz.2)
have hcover : A ∪ B = limitSet e 0 (univ : Set (Stage e 0)) := by
rw [← limitSet_union e]
have he : (U ∩ W) ∪ (U ∩ Wᶜ) = U := by ext z; simp
rw [he]
exact htrace
have hyU : y ∈ U := by
have hm := hsub hyC
rw [← htrace] at hm
exact (preimage_limitSet_self e 1 U) ▸ hm
have hxU : step e 0 x ∈ U := by
have hm := hsub hx
rw [toLimit_step e 0 x, ← htrace] at hm
exact (preimage_limitSet_self e 1 U) ▸ hm
have hya : toLimit e 1 y ∈ A := by
change (y : Stage e 1) ∈ toLimit e 1 ⁻¹' limitSet e 1 (U ∩ W)
exact (preimage_limitSet_self e 1 (U ∩ W)).symm ▸ ⟨hyU, hyW⟩
have hxb : toLimit e 0 x ∈ B := by
rw [toLimit_step e 0 x]
change step e 0 x ∈ toLimit e 1 ⁻¹' limitSet e 1 (U ∩ Wᶜ)
exact (preimage_limitSet_self e 1 (U ∩ Wᶜ)).symm ▸ ⟨hxU, hxW⟩
intro hc
have hs : C ⊆ A ∪ B := by rwa [hcover]
rcases hc.subset_or_subset hA hB hAB hs with ha | hb
· exact disjoint_left.1 hAB (ha hx) hxb
· exact disjoint_left.1 hAB hya (hb hyC)
theorem not_locallyConnectedSpace
TopologyByExample.MisraSparse.not_locallyConnectedSpace
The sparse Misra limit is not locally connected.
theorem not_locallyConnectedSpace : ¬LocallyConnectedSpace (Limit e)
Proof
:= by
intro h
let := h
let x : Stage e 0 := MisraE0.apex false
let O := limitSet e 0 (univ : Set (Stage e 0))
have hO : IsOpen O := isOpen_limitSet e 0 isOpen_univ
have hx : toLimit e 0 x ∈ O := by
change x ∈ toLimit e 0 ⁻¹' limitSet e 0 (univ : Set (Stage e 0))
exact (preimage_limitSet_self e 0 (univ : Set (Stage e 0))).symm ▸ mem_univ x
obtain ⟨C, hsub, hC, hxC, hc⟩ :=
locallyConnectedSpace_iff_subsets_isOpen_isConnected.1 h (toLimit e 0 x) O (hO.mem_nhds hx)
exact no_connected_open_neighbourhood e x hC hxC hsub hc.isPreconnected