Lean library · module TopologyByExample.Spaces.MisraSparseLimit

A nonconstant function on the iterated sparse attachment limit

Source file

The enumeration of limit ordinals is parameterized by an injection. Attachments at each positive stage use strands in the copies just added, as in Misra's printed iteration.

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 Edge

TopologyByExample.MisraSparse.Edge

A strand, an edge type, and its ordinal index.

abbrev Edge
:= Option (Bool × OmegaOne) × Bool × OmegaOne

definition printedTargets

TopologyByExample.MisraSparse.printedTargets

Restore the printed orientation of enumeration edges; successor edges keep their order.

noncomputable def printedTargets (e : OmegaOne → OmegaOne) (i : Edge) (s : Bool) : MisraE0
:=
  targets e i (if i.2.1 then s else !s)

theorem printedTargets_successor_false

TopologyByExample.MisraSparse.printedTargets_successor_false

The first successor endpoint is the indexed strand point.

@[simp] theorem printedTargets_successor_false (e : OmegaOne → OmegaOne)
    (d : Option (Bool × OmegaOne)) (β : OmegaOne) :
    printedTargets e (d, true, β) false = strand d β
Proof
:= rfl

theorem printedTargets_successor_true

TopologyByExample.MisraSparse.printedTargets_successor_true

The second successor endpoint is the next strand point.

@[simp] theorem printedTargets_successor_true (e : OmegaOne → OmegaOne)
    (d : Option (Bool × OmegaOne)) (β : OmegaOne) :
    printedTargets e (d, true, β) true = strand d (Order.succ β)
Proof
:= rfl

theorem printedTargets_enumeration_false

TopologyByExample.MisraSparse.printedTargets_enumeration_false

The first enumeration endpoint is indexed by the enumeration value.

@[simp] theorem printedTargets_enumeration_false (e : OmegaOne → OmegaOne)
    (d : Option (Bool × OmegaOne)) (β : OmegaOne) :
    printedTargets e (d, false, β) false = strand d (e β)
Proof
:= rfl

theorem printedTargets_enumeration_true

TopologyByExample.MisraSparse.printedTargets_enumeration_true

The second enumeration endpoint is indexed by the enumeration argument.

@[simp] theorem printedTargets_enumeration_true (e : OmegaOne → OmegaOne)
    (d : Option (Bool × OmegaOne)) (β : OmegaOne) :
    printedTargets e (d, false, β) true = strand d β
Proof
:= rfl

structure Layer

TopologyByExample.MisraSparse.Layer

A finite attachment layer together with the copies whose strands are used next.

structure Layer where
  /-- The old space at this step. -/
  Carrier : Type
  /-- Its topology. -/
  topology : TopologicalSpace Carrier
  /-- Indices of the copies added at this step, or the initial copy. -/
  Copies : Type
  /-- The canonical maps of those copies into the layer. -/
  copyMap : Copies → MisraE0 → Carrier

instance

instance (L : Layer) : TopologicalSpace L.Carrier
Proof
:= L.topology

definition initial

TopologyByExample.MisraSparse.initial

The initial layer consists of one E₀.

def initial : Layer
Definition
where
  Carrier := MisraE0
  topology := inferInstance
  Copies := Unit
  copyMap _ := id

definition attachment

TopologyByExample.MisraSparse.attachment

Attach only along strands in the designated copies of the preceding layer.

noncomputable def attachment (e : OmegaOne → OmegaOne) (L : Layer)
    (i : L.Copies × Edge) (s : Bool) : L.Carrier
:= L.copyMap i.1 (printedTargets e i.2 s)

definition next

TopologyByExample.MisraSparse.next

A successor layer remembers exactly its newly attached copies.

noncomputable def next (e : OmegaOne → OmegaOne) (L : Layer) : Layer
Definition
where
  Carrier := Space (attachment e L)
  topology := inferInstance
  Copies := L.Copies × Edge
  copyMap := copy (attachment e L)

definition layer

TopologyByExample.MisraSparse.layer

The finite sparse attachment stages.

noncomputable def layer (e : OmegaOne → OmegaOne) : ℕ → Layer
  | 0 => initial
  | n + 1 => next e (layer e n)

definition step

TopologyByExample.MisraSparse.step

The canonical bonding map.

noncomputable def step (e : OmegaOne → OmegaOne) (n : ℕ) :
    (layer e n).Carrier → (layer e (n + 1)).Carrier
:= base (attachment e (layer e n))

structure Section

TopologyByExample.MisraSparse.Section

Continuous functions agreeing on every pair selected for the next attachment.

structure Section (e : OmegaOne → OmegaOne) (L : Layer) where
  /-- The function on this layer. -/
  value : L.Carrier → Bool
  /-- Continuity in the layer topology. -/
  continuous_value : Continuous value
  /-- Agreement at the prescribed attachment endpoints. -/
  agrees : ∀ i, value (attachment e L i false) = value (attachment e L i true)

definition next

TopologyByExample.MisraSparse.Section.next

Extend a section constantly over every fresh copy.

noncomputable def Section.next {e : OmegaOne → OmegaOne} {L : Layer} (f : Section e L) :
    Section e (next e L)
Definition
where
  value := extend f.value f.agrees
  continuous_value := continuous_extend f.continuous_value f.agrees
  agrees i := by
    change extend f.value f.agrees (copy (attachment e L) i.1 _) =
      extend f.value f.agrees (copy (attachment e L) i.1 _)
    rfl

definition sections

TopologyByExample.MisraSparse.sections

Iterate compatible continuous sections.

noncomputable def sections {e : OmegaOne → OmegaOne} (f : Section e initial) :
    (n : ℕ) → Section e (layer e n)
  | 0 => f
  | n + 1 => (sections f n).next

theorem sections_step

TopologyByExample.MisraSparse.sections_step

Values are retained on the old part at each extension.

theorem sections_step {e : OmegaOne → OmegaOne} (f : Section e initial)
    (n : ℕ) (x : (layer e n).Carrier) :
    (sections f (n + 1)).value (step e n x) = (sections f n).value x
Proof
:= rfl

inductive type Rel

TopologyByExample.MisraSparse.Rel

Successive-stage identifications defining the sparse limit.

inductive Rel (e : OmegaOne → OmegaOne) :
    (Σ n, (layer e n).Carrier) → (Σ n, (layer e n).Carrier) → Prop
  | step (n : ℕ) (x : (layer e n).Carrier) : Rel e ⟨n, x⟩ ⟨n + 1, MisraSparse.step e n x⟩

definition Limit

TopologyByExample.MisraSparse.Limit

The final-topology quotient limit of the sparse stages.

def Limit (e : OmegaOne → OmegaOne)
:= Quot (Rel e)

instance

instance (e : OmegaOne → OmegaOne) : TopologicalSpace (Limit e)
Proof
:=
  inferInstanceAs (TopologicalSpace (Quot (Rel e)))

definition toLimit

TopologyByExample.MisraSparse.toLimit

A canonical finite-stage map into the sparse limit.

def toLimit (e : OmegaOne → OmegaOne) (n : ℕ) (x : (layer e n).Carrier) : Limit e
:=
  Quot.mk _ ⟨n, x⟩

definition limitFunction

TopologyByExample.MisraSparse.limitFunction

Compatible sections descend to the sparse limit.

noncomputable def limitFunction {e : OmegaOne → OmegaOne} (f : Section e initial) :
    Limit e → Bool
Definition
:=
  Quot.lift (fun p : Σ n, (layer e n).Carrier ↦ (sections f p.1).value p.2) (by
    intro a b h
    cases h
    rfl)

theorem continuous_limitFunction

TopologyByExample.MisraSparse.continuous_limitFunction

The descended function is continuous in the quotient topology.

theorem continuous_limitFunction {e : OmegaOne → OmegaOne} (f : Section e initial) :
    Continuous (limitFunction f)
Proof
:= by
  apply continuous_quot_lift
  exact continuous_sigma (fun n ↦ (sections f n).continuous_value)

theorem limitFunction_zero

TopologyByExample.MisraSparse.limitFunction_zero

The descended function retains its initial values.

theorem limitFunction_zero {e : OmegaOne → OmegaOne} (f : Section e initial) (x : MisraE0) :
    limitFunction f (toLimit e 0 x) = f.value x
Proof
:= rfl

theorem exists_initial_section

TopologyByExample.MisraSparse.exists_initial_section

The sparse pattern admits an initial section separating a cell from an apex.

theorem exists_initial_section (e : OmegaOne → OmegaOne) (he : Function.Injective e) :
    ∃ f : Section e initial,
      f.value (MisraE0.cell false ⊥ ⊥) = true ∧ f.value (MisraE0.apex false) = false
Proof
:= by
  classical
  obtain ⟨U, hU, hx, ha, hpair⟩ := exists_invariant_clopen e he
  have hp (i : Edge) : U.boolIndicator (targets e i false) =
      U.boolIndicator (targets e i true) := by
    simp only [Set.boolIndicator, ← hpair i]
  let f : Section e initial := {
    value := U.boolIndicator
    continuous_value := (continuous_boolIndicator_iff_isClopen U).2 hU
    agrees := by
      intro i
      change U.boolIndicator (printedTargets e i.2 false) =
        U.boolIndicator (printedTargets e i.2 true)
      cases h : i.2.2.1
      · simpa [printedTargets, h] using (hp i.2).symm
      · simpa [printedTargets, h] using hp i.2 }
  exact ⟨f, (U.mem_iff_boolIndicator _).1 hx, (U.notMem_iff_boolIndicator _).1 ha⟩

theorem exists_nonconstant_map

TopologyByExample.MisraSparse.exists_nonconstant_map

The nonconstant Boolean function survives all sparse attachment stages and the limit.

theorem exists_nonconstant_map (e : OmegaOne → OmegaOne) (he : Function.Injective e) :
    ∃ g : Limit e → Bool, Continuous g ∧
      g (toLimit e 0 (MisraE0.cell false ⊥ ⊥)) = true ∧
      g (toLimit e 0 (MisraE0.apex false)) = false
Proof
:= by
  obtain ⟨f, hx, ha⟩ := exists_initial_section e he
  exact ⟨limitFunction f, continuous_limitFunction f, hx, ha⟩

theorem not_preconnectedSpace

TopologyByExample.MisraSparse.not_preconnectedSpace

The sparse limit is not preconnected for any injective enumeration parameter.

theorem not_preconnectedSpace (e : OmegaOne → OmegaOne) (he : Function.Injective e) :
    ¬PreconnectedSpace (Limit e)
Proof
:= by
  intro h
  let := h
  obtain ⟨g, hg, hx, ha⟩ := exists_nonconstant_map e he
  have hconst := hg.isConst_of_preconnectedSpace
    (toLimit e 0 (MisraE0.cell false ⊥ ⊥)) (toLimit e 0 (MisraE0.apex false))
  rw [hx, ha] at hconst
  cases hconst

theorem not_connectedSpace

TopologyByExample.MisraSparse.not_connectedSpace

In particular, the printed sparse attachment limit cannot be connected.

theorem not_connectedSpace (e : OmegaOne → OmegaOne) (he : Function.Injective e) :
    ¬ConnectedSpace (Limit e)
Proof
:= by
  intro h
  exact not_preconnectedSpace e he h.toPreconnectedSpace

On this site: Theorem: Disconnectedness of the sparse Misra attachment limit

instance

instance (e : OmegaOne → OmegaOne) (n : ℕ) : PSpace (layer e n).Carrier
Proof
:= by
  induction n with
  | zero => exact inferInstanceAs (PSpace MisraE0)
  | succ n ih =>
    let := ih
    exact inferInstanceAs (PSpace (Space (attachment e (layer e n))))

instance

instance (e : OmegaOne → OmegaOne) (n : ℕ) : T2Space (layer e n).Carrier
Proof
:= by
  induction n with
  | zero => exact inferInstanceAs (T2Space MisraE0)
  | succ n ih =>
    let := ih
    exact inferInstanceAs (T2Space (Space (attachment e (layer e n))))

instance

instance (e : OmegaOne → OmegaOne) : PSpace (Limit e)
Proof
:=
  PSpace.of_isQuotientMap (isQuotientMap_quot_mk (r := Rel e))