Lean library · module TopologyByExample.Spaces.MisraPointFinite

Point-finite families in Misra attachments

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

theorem finite_tailPatch_support

TopologyByExample.MisraAttachment.finite_tailPatch_support

Extending a point-finite indexed family by apex tails preserves point finiteness.

theorem finite_tailPatch_support {X ι κ : Type*} (t : ι → Bool → X)
    (U : κ → Set X) (hU : ∀ x, {j | x ∈ U j}.Finite) (δ : OmegaOne) (z : Space t) :
    {j | z ∈ (tailPatch t (U j) δ).set}.Finite
Proof
:= by
  induction z using Quot.inductionOn with
  | h z =>
    cases z with
    | inl x => exact hU x
    | inr p =>
      apply ((hU (t p.1 false)).union (hU (t p.1 true))).subset
      intro j hj
      obtain ⟨s, hs, _⟩ := mem_iUnion₂.1 hj
      cases s
      · exact Or.inl hs
      · exact Or.inr hs

definition freshPart

TopologyByExample.MisraAttachment.freshPart

A cover piece at a fresh point, with the two apex pieces omitted.

def freshPart (u : MisraE0 → Set MisraE0) : MisraE0 → Set MisraE0
  | .apex _ => ∅
  | .row α => u (.row α) ∩ MisraE0.rowNhd α
  | .cell s α β => {MisraE0.cell s α β}

theorem apex_notMem_freshPart

TopologyByExample.MisraAttachment.apex_notMem_freshPart

No fresh cover piece contains either apex.

theorem apex_notMem_freshPart (u : MisraE0 → Set MisraE0) (x : MisraE0) (s : Bool) :
    MisraE0.apex s ∉ freshPart u x
Proof
:= by
  cases x <;> simp [freshPart, MisraE0.rowNhd]

theorem isOpen_freshPart

TopologyByExample.MisraAttachment.isOpen_freshPart

Open selected neighbourhoods give open fresh cover pieces.

theorem isOpen_freshPart (u : MisraE0 → Set MisraE0) (hu : ∀ x, IsOpen (u x))
    (x : MisraE0) : IsOpen (freshPart u x)
Proof
:= by
  cases x with
  | apex s => exact isOpen_empty
  | row α => exact (hu _).inter (MisraE0.isOpen_rowNhd α)
  | cell s α β => exact MisraE0.isOpen_singleton_cell s α β

theorem mem_freshPart

TopologyByExample.MisraAttachment.mem_freshPart

Each non-apex point belongs to the fresh piece assigned to it.

theorem mem_freshPart (u : MisraE0 → Set MisraE0) (hu : ∀ x, x ∈ u x)
    (x : MisraE0) (hx : ∀ s, x ≠ MisraE0.apex s) : x ∈ freshPart u x
Proof
:= by
  cases x with
  | apex s => exact False.elim (hx s rfl)
  | row α => exact ⟨hu _, by simp [MisraE0.rowNhd]⟩
  | cell s α β => exact mem_singleton _

theorem freshPart_subset

TopologyByExample.MisraAttachment.freshPart_subset

Fresh pieces refine the selected neighbourhoods.

theorem freshPart_subset (u : MisraE0 → Set MisraE0) (hu : ∀ x, x ∈ u x)
    (x : MisraE0) : freshPart u x ⊆ u x
Proof
:= by
  cases x with
  | apex s => exact empty_subset _
  | row α => exact inter_subset_left
  | cell s α β => exact singleton_subset_iff.2 (hu _)

theorem finite_freshPart_support

TopologyByExample.MisraAttachment.finite_freshPart_support

Fresh cover pieces form a point-finite indexed family.

theorem finite_freshPart_support (u : MisraE0 → Set MisraE0) (x : MisraE0) :
    {y | x ∈ freshPart u y}.Finite
Proof
:= by
  apply (MisraE0.finite_coverPart_support u x).subset
  intro y hy
  cases y with
  | apex s => exact False.elim hy
  | row α => exact hy
  | cell s α β => exact hy

definition freshPatch

TopologyByExample.MisraAttachment.freshPatch

Descend a chosen fresh cover piece in one attached copy.

noncomputable def freshPatch {X ι : Type*} (t : ι → Bool → X)
    (u : ι → MisraE0 → Set MisraE0) (i : ι) (x : MisraE0) : Patch t
:=
  singlePatch t i (freshPart (u i) x) (apex_notMem_freshPart (u i) x)

theorem isOpen_freshPatch

TopologyByExample.MisraAttachment.isOpen_freshPatch

Every descended fresh cover piece is open when the selected neighbourhoods are open.

theorem isOpen_freshPatch {X ι : Type*} [TopologicalSpace X] (t : ι → Bool → X)
    (u : ι → MisraE0 → Set MisraE0) (hu : ∀ i x, IsOpen (u i x)) (i : ι) (x : MisraE0) :
    IsOpen (freshPatch t u i x).set
Proof
:= by
  classical
  apply Patch.isOpen _ isOpen_empty
  intro j
  by_cases hj : j = i
  · subst j
    simpa [freshPatch, singlePatch] using isOpen_freshPart (u i) (hu i) x
  · simp [freshPatch, singlePatch, hj]

theorem finite_freshPatch_support

TopologyByExample.MisraAttachment.finite_freshPatch_support

Fresh cover pieces in all copies together are point finite in the adjunction.

theorem finite_freshPatch_support {X ι : Type*} (t : ι → Bool → X)
    (u : ι → MisraE0 → Set MisraE0) (z : Space t) :
    {p : ι × MisraE0 | z ∈ (freshPatch t u p.1 p.2).set}.Finite
Proof
:= by
  classical
  induction z using Quot.inductionOn with
  | h z =>
    cases z with
    | inl x =>
      have he : {p : ι × MisraE0 | base t x ∈ (freshPatch t u p.1 p.2).set} = ∅ := by
        ext p
        rfl
      change {p : ι × MisraE0 | base t x ∈ (freshPatch t u p.1 p.2).set}.Finite
      rw [he]
      exact finite_empty
    | inr q =>
      apply ((finite_freshPart_support (u q.1) q.2).image (Prod.mk q.1)).subset
      rintro ⟨i, x⟩ hx
      change q.2 ∈ (freshPatch t u i x).fresh q.1 at hx
      by_cases hi : q.1 = i
      · subst i
        exact ⟨x, by simpa [freshPatch, singlePatch] using hx, rfl⟩
      · simp [freshPatch, singlePatch, hi] at hx

theorem finite_forward_support

TopologyByExample.MisraAllPairs.finite_forward_support

Iterated tail extension preserves point finiteness.

theorem finite_forward_support {κ : Type*} {n m : ℕ} (h : n ≤ m)
    (U : κ → Set (Stage n)) (hU : ∀ x, {i | x ∈ U i}.Finite) (x : Stage m) :
    {i | x ∈ forward h (U i)}.Finite
Proof
:= by
  induction m, h using Nat.le_induction with
  | base => simpa only [forward_self] using hU x
  | succ m h ih =>
    simp only [forward_succ h]
    exact finite_tailPatch_support allPairs (fun i ↦ forward h (U i)) ih ⊥ x

theorem finite_limitSet_support

TopologyByExample.MisraAllPairs.finite_limitSet_support

Extending a point-finite family from a finite stage preserves point finiteness in the limit.

theorem finite_limitSet_support {κ : Type*} (n : ℕ) (U : κ → Set (Stage n))
    (hU : ∀ x, {i | x ∈ U i}.Finite) (z : Limit) : {i | z ∈ limitSet n (U i)}.Finite
Proof
:= by
  induction z using Quot.inductionOn with
  | h p =>
    change {i | p.2 ∈ thread n (U i) p.1}.Finite
    by_cases h : n ≤ p.1
    · simpa only [thread, dite_eq_left h] using finite_forward_support h U hU p.2
    · simpa only [thread, dite_eq_right h, mem_preimage] using
        hU (advance (Nat.le_of_lt (Nat.lt_of_not_ge h)) p.2)

On this site: The all-pairs Misra limit: Point-finite families extend to the limit