Lean library · module TopologyByExample.Spaces.MisraSparseCategory
Category 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.
theorem exists_cell_mem
TopologyByExample.MisraSparse.exists_cell_mem
Every nonempty open subset of E₀ contains a cell.
theorem exists_cell_mem {U : Set MisraE0} (hU : IsOpen U) (hne : U.Nonempty) :
∃ s α β, MisraE0.cell s α β ∈ U
Proof
:= by
obtain ⟨x, hx⟩ := hne
cases x with
| cell s α β => exact ⟨s, α, β, hx⟩
| row α =>
obtain ⟨β, hβ, _⟩ := (hU.1 α hx false).exists_mem_inter (hU.1 α hx false)
exact ⟨false, α, β, hβ⟩
| apex s =>
obtain ⟨δ, hδ⟩ := hU.2 s hx
obtain ⟨α, hα⟩ := exists_gt δ
obtain ⟨β, hβ, _⟩ := (hδ α hα).exists_mem_inter (hδ α hα)
exact ⟨s, α, β, hβ⟩
variable (e : OmegaOne → OmegaOne)
theorem continuous_layer_copy
TopologyByExample.MisraSparse.continuous_layer_copy
The designated copy maps at every finite stage are continuous.
theorem continuous_layer_copy (n : ℕ) (i : (layer e n).Copies) :
Continuous ((layer e n).copyMap i)
Proof
:= by
cases n with
| zero => exact continuous_id
| succ n => exact continuous_copy (attachment e (layer e n)) i
theorem exists_fresh_cell_of_endpoint
TopologyByExample.MisraSparse.exists_fresh_cell_of_endpoint
An open set containing an attached endpoint contains a fresh cell of that copy.
theorem exists_fresh_cell_of_endpoint (n : ℕ) (i : (layer e (n + 1)).Copies)
{U : Set (Stage e (n + 1))} (hU : IsOpen U)
(hx : step e n (attachment e (layer e n) i false) ∈ U) :
∃ s α β, (layer e (n + 1)).copyMap i (MisraE0.cell s α β) ∈ U
Proof
:= by
have hV := hU.preimage (continuous_copy (attachment e (layer e n)) i)
have ha : MisraE0.apex false ∈ copy (attachment e (layer e n)) i ⁻¹' U := by
change copy (attachment e (layer e n)) i (MisraE0.apex false) ∈ U
exact (copy_apex (attachment e (layer e n)) i false).symm ▸ hx
exact exists_cell_mem hV ⟨_, ha⟩
theorem exists_designated_cell
TopologyByExample.MisraSparse.exists_designated_cell
Every nonempty open stage subset meets a cell in a designated copy.
theorem exists_designated_cell (n : ℕ) {U : Set (Stage e n)}
(hU : IsOpen U) (hne : U.Nonempty) :
∃ i s α β, (layer e n).copyMap i (MisraE0.cell s α β) ∈ U
Proof
:= by
induction n with
| zero =>
obtain ⟨s, α, β, h⟩ := exists_cell_mem hU hne
exact ⟨(), s, α, β, h⟩
| succ n ih =>
obtain ⟨x, hx⟩ := hne
rcases base_or_new (attachment e (layer e n)) x with ⟨y, rfl⟩ | ⟨i, y, _, rfl⟩
· obtain ⟨i, s, α, β, hi⟩ := ih
(hU.preimage (isClosedEmbedding_step e n).continuous) ⟨y, hx⟩
let j : (layer e (n + 1)).Copies := (i, some (s, α), true, β)
have hj : attachment e (layer e n) j false =
(layer e n).copyMap i (MisraE0.cell s α β) := rfl
obtain ⟨t, γ, δ, hh⟩ := exists_fresh_cell_of_endpoint e n j hU (hj.symm ▸ hi)
exact ⟨j, t, γ, δ, hh⟩
· obtain ⟨s, α, β, hh⟩ := exists_cell_mem
(hU.preimage (continuous_copy (attachment e (layer e n)) i)) ⟨y, hx⟩
exact ⟨i, s, α, β, hh⟩
theorem exists_new_mem
TopologyByExample.MisraSparse.exists_new_mem
Every nonempty open subset meeting the old stage contains a genuinely new point.
theorem exists_new_mem (n : ℕ) (x : Stage e n) {U : Set (Stage e (n + 1))}
(hU : IsOpen U) (hx : step e n x ∈ U) :
∃ z ∈ U, z ∉ range (step e n)
Proof
:= by
obtain ⟨i, s, α, β, hi⟩ := exists_designated_cell e n
(hU.preimage (isClosedEmbedding_step e n).continuous) ⟨x, hx⟩
let j : (layer e (n + 1)).Copies := (i, some (s, α), true, β)
have hj : attachment e (layer e n) j false =
(layer e n).copyMap i (MisraE0.cell s α β) := rfl
obtain ⟨t, γ, δ, hh⟩ := exists_fresh_cell_of_endpoint e n j hU (hj.symm ▸ hi)
refine ⟨(layer e (n + 1)).copyMap j (MisraE0.cell t γ δ), hh, ?_⟩
rintro ⟨a, ha⟩
have he := congrArg (oldLabel (attachment e (layer e n))) ha
change (some a : Option (Stage e n)) = none at he
contradiction
theorem interior_range_toLimit
TopologyByExample.MisraSparse.interior_range_toLimit
Every finite stage has empty interior in the limit.
theorem interior_range_toLimit (n : ℕ) : interior (range (toLimit e n)) = ∅
Proof
:= by
apply eq_empty_iff_forall_notMem.2
intro z hz
obtain ⟨x, rfl⟩ := interior_subset hz
let U : Set (Stage e (n + 1)) := toLimit e (n + 1) ⁻¹' interior (range (toLimit e n))
have hU : IsOpen U := isOpen_interior.preimage (continuous_toLimit e (n + 1))
have hx : step e n x ∈ U := by
change toLimit e (n + 1) (step e n x) ∈ interior (range (toLimit e n))
rwa [← toLimit_step e]
obtain ⟨y, hy, hnew⟩ := exists_new_mem e n x hU hx
apply hnew
have hr : y ∈ toLimit e (n + 1) ⁻¹' range (toLimit e n) := by
change toLimit e (n + 1) y ∈ range (toLimit e n)
exact interior_subset (show toLimit e (n + 1) y ∈ interior (range (toLimit e n)) from hy)
rw [preimage_range_toLimit_of_le e (Nat.le_succ n)] at hr
obtain ⟨a, ha⟩ := hr
refine ⟨a, ?_⟩
have he : advance e (Nat.le_succ n) a = step e n a := by
rw [advance_succ e (le_refl n), advance_self e]
exact he.symm.trans ha
theorem isNowhereDense_range_toLimit
TopologyByExample.MisraSparse.isNowhereDense_range_toLimit
Each finite stage is nowhere dense in the limit.
theorem isNowhereDense_range_toLimit (n : ℕ) : IsNowhereDense (range (toLimit e n))
Proof
:= by
change interior (closure (range (toLimit e n))) = ∅
rw [(isClosed_range_toLimit e n).closure_eq]
exact interior_range_toLimit e n
theorem iUnion_range_toLimit
TopologyByExample.MisraSparse.iUnion_range_toLimit
The finite-stage images cover the limit.
theorem iUnion_range_toLimit : ⋃ n, range (toLimit e n) = (univ : Set (Limit e))
Proof
:= by
apply eq_univ_of_forall
intro z
induction z using Quot.inductionOn with
| h p => exact mem_iUnion.2 ⟨p.1, p.2, rfl⟩
theorem isMeagre_univ
TopologyByExample.MisraSparse.isMeagre_univ
The sparse limit is meagre, being a countable union of closed nowhere dense stages.
theorem isMeagre_univ : IsMeagre (univ : Set (Limit e))
Proof
:= by
rw [← iUnion_range_toLimit e]
exact isMeagre_iUnion (fun n ↦ (isNowhereDense_range_toLimit e n).isMeagre)