Lean library · module TopologyByExample.Spaces.MisraSparseMaps

Continuous maps on the sparse Misra limit

Source file

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

structure MapSection

TopologyByExample.MisraSparse.MapSection

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

structure MapSection (Y : Type*) [TopologicalSpace Y]
    (e : OmegaOne → OmegaOne) (L : Layer) where
  /-- The function on this layer. -/
  value : L.Carrier → Y
  /-- 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)
variable {Y : Type*} [TopologicalSpace Y]

definition next

TopologyByExample.MisraSparse.MapSection.next

Extend a section constantly over every fresh copy.

noncomputable def MapSection.next {e : OmegaOne → OmegaOne} {L : Layer} (f : MapSection Y e L) :
    MapSection Y 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 mapSections

TopologyByExample.MisraSparse.mapSections

Iterate compatible continuous sections.

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

theorem mapSections_step

TopologyByExample.MisraSparse.mapSections_step

Values are retained on the old part at each extension.

theorem mapSections_step {e : OmegaOne → OmegaOne} (f : MapSection Y e initial)
    (n : ℕ) (x : (layer e n).Carrier) :
    (mapSections f (n + 1)).value (step e n x) = (mapSections f n).value x
Proof
:= rfl

definition limitMap

TopologyByExample.MisraSparse.limitMap

Compatible sections descend to the sparse limit.

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

theorem continuous_limitMap

TopologyByExample.MisraSparse.continuous_limitMap

The descended function is continuous in the quotient topology.

theorem continuous_limitMap {e : OmegaOne → OmegaOne} (f : MapSection Y e initial) :
    Continuous (limitMap f)
Proof
:= by
  apply continuous_quot_lift
  exact continuous_sigma (fun n ↦ (mapSections f n).continuous_value)

theorem limitMap_zero

TopologyByExample.MisraSparse.limitMap_zero

The descended function retains its initial values.

theorem limitMap_zero {e : OmegaOne → OmegaOne} (f : MapSection Y e initial) (x : MisraE0) :
    limitMap f (toLimit e 0 x) = f.value x
Proof
:= rfl