Lean library · module TopologyByExample.Spaces.MisraLimitLocalConnectedness
Failure of local connectedness in the all-pairs 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.
theorem tailPatch_union
TopologyByExample.MisraAllPairs.tailPatch_union
Tail patches commute with binary unions.
theorem tailPatch_union {X ι : Type*} (t : ι → Bool → X) (U V : Set X) (δ : OmegaOne) :
(tailPatch t (U ∪ V) δ).set = (tailPatch t U δ).set ∪ (tailPatch t V δ).set
Proof
:= by
ext z
induction z using Quot.inductionOn with
| h p =>
cases p with
| inl x => rfl
| inr p =>
change p.2 ∈ (tailPatch t (U ∪ V) δ).fresh p.1 ↔
p.2 ∈ (tailPatch t U δ).fresh p.1 ∨ p.2 ∈ (tailPatch t V δ).fresh p.1
simp only [tailPatch, mem_iUnion, mem_union]
aesop
theorem forward_union
TopologyByExample.MisraAllPairs.forward_union
Forward extension commutes with binary unions.
theorem forward_union {n m : ℕ} (h : n ≤ m) (U V : Set (Stage n)) :
forward h (U ∪ V) = forward h U ∪ forward h V
Proof
:= by
induction m, h using Nat.le_induction with
| base => simp only [forward_self]
| succ m h ih =>
rw [forward_succ h, forward_succ h, forward_succ h, ih, tailPatch_union]
rfl
theorem forward_trans
TopologyByExample.MisraAllPairs.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 n)) :
forward h' (forward h U) = forward (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 hk, forward_succ (h.trans hk), ih]
theorem eq_of_eventual_preimage_eq
TopologyByExample.MisraAllPairs.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} (n : ℕ)
(h : ∀ k, n ≤ k → toLimit k ⁻¹' A = toLimit k ⁻¹' B) : A = B
Proof
:= by
ext z
obtain ⟨⟨m, x⟩, hx⟩ := Quot.exists_rep z
change toLimit m x = z at hx
let k := max n m
let y := advance (Nat.le_max_right n m) x
have hy : toLimit k y = z := (toLimit_advance _ x).trans hx
have he := congrArg (fun S : Set (Stage k) ↦ y ∈ S) (h k (Nat.le_max_left n m))
change (toLimit k y ∈ A) = (toLimit k y ∈ B) at he
rw [hy] at he
exact Iff.of_eq he
theorem limitSet_union
TopologyByExample.MisraAllPairs.limitSet_union
Limit extension commutes with binary unions.
theorem limitSet_union (n : ℕ) (U V : Set (Stage n)) :
limitSet n (U ∪ V) = limitSet n U ∪ limitSet n V
Proof
:= by
apply eq_of_eventual_preimage_eq n
intro k h
simp only [preimage_union, preimage_limitSet, thread, dite_eq_left h, forward_union]
theorem limitSet_forward
TopologyByExample.MisraAllPairs.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 n)) :
limitSet m (forward h U) = limitSet n U
Proof
:= by
apply eq_of_eventual_preimage_eq m
intro k hk
simp only [preimage_limitSet, thread]
rw [dite_eq_left hk, dite_eq_left (h.trans hk), forward_trans]
theorem no_connected_open_neighbourhood
TopologyByExample.MisraAllPairs.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 0) {C : Set Limit}
(hC : IsOpen C) (hx : toLimit 0 x ∈ C)
(hsub : C ⊆ limitSet 0 (univ : Set (Stage 0))) : ¬IsPreconnected C
Proof
:= by
classical
let U : Set (Stage 1) := forward (Nat.zero_le 1) (univ : Set (Stage 0))
have hU : IsOpen U := isOpen_forward _ isOpen_univ
have htrace : limitSet 1 U = limitSet 0 (univ : Set (Stage 0)) :=
limitSet_forward (Nat.zero_le 1) univ
have hx1 : step 0 x ∈ toLimit 1 ⁻¹' C := by
change toLimit 1 (step 0 x) ∈ C
rwa [← toLimit_step]
obtain ⟨y, hyC, hynew⟩ := exists_new_mem x (hC.preimage (continuous_toLimit 1)) hx1
have hyx : y ≠ step 0 x := fun h ↦ hynew ⟨x, h.symm⟩
obtain ⟨W, hW, hyW, hxW⟩ : ∃ W : Set (Stage 1), IsClopen W ∧ y ∈ W ∧ step 0 x ∉ W := by
rcases base_or_new allPairs y with ⟨a, ha⟩ | ⟨i, z, hz, rfl⟩
· exact False.elim (hynew ⟨a, ha.symm⟩)
· exact exists_clopen_separator_new allPairs i hz hyx
let A := limitSet 1 (U ∩ W)
let B := limitSet 1 (U ∩ Wᶜ)
have hA : IsOpen A := isOpen_limitSet 1 (hU.inter hW.isOpen)
have hB : IsOpen B := isOpen_limitSet 1 (hU.inter hW.isClosed.isOpen_compl)
have hAB : Disjoint A B := disjoint_limitSet 1 (by
apply disjoint_left.2
exact fun z hz hz' ↦ hz'.2 hz.2)
have hcover : A ∪ B = limitSet 0 (univ : Set (Stage 0)) := by
rw [← limitSet_union]
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 1 U) ▸ hm
have hxU : step 0 x ∈ U := by
have hm := hsub hx
rw [toLimit_step 0 x, ← htrace] at hm
exact (preimage_limitSet_self 1 U) ▸ hm
have hya : toLimit 1 y ∈ A := by
change (y : Stage 1) ∈ toLimit 1 ⁻¹' limitSet 1 (U ∩ W)
exact (preimage_limitSet_self 1 (U ∩ W)).symm ▸ ⟨hyU, hyW⟩
have hxb : toLimit 0 x ∈ B := by
rw [toLimit_step 0 x]
change step 0 x ∈ toLimit 1 ⁻¹' limitSet 1 (U ∩ Wᶜ)
exact (preimage_limitSet_self 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.MisraAllPairs.not_locallyConnectedSpace
The all-pairs Misra limit is not locally connected.
theorem not_locallyConnectedSpace : ¬LocallyConnectedSpace Limit
Proof
:= by
intro h
let := h
let x : Stage 0 := MisraE0.apex false
let O := limitSet 0 (univ : Set (Stage 0))
have hO : IsOpen O := isOpen_limitSet 0 isOpen_univ
have hx : toLimit 0 x ∈ O := by
change x ∈ toLimit 0 ⁻¹' limitSet 0 (univ : Set (Stage 0))
exact (preimage_limitSet_self 0 (univ : Set (Stage 0))).symm ▸ mem_univ x
obtain ⟨C, hsub, hC, hxC, hc⟩ :=
locallyConnectedSpace_iff_subsets_isOpen_isConnected.1 h (toLimit 0 x) O (hO.mem_nhds hx)
exact no_connected_open_neighbourhood x hC hxC hsub hc.isPreconnected
On this site: The all-pairs Misra limit is not locally connected