Lean library · module TopologyByExample.Spaces.OpcSequentialFan

One-point compactification of the sequential fan

Source file

In this file we study OnePoint SequentialFan, the one-point compactification of the sequential fan. A compact subset of the sequential fan meets only finitely many spines, so the neighbourhoods of the point at infinity are the sets containing all but finitely many whole spines (minus a compact set), while the vertex keeps its neighbourhoods: all but finitely many points of every spine. The space is semiregular.

The one-point compactification of the metric fan is the same space: the map exchanging the point at infinity with the vertex, and matching the spines, is a homeomorphism (TopologyByExample.OpcSequentialFan.homeomorphOnePointMetricFan). In the one-point compactification of the metric fan the point at infinity has the neighbourhoods of the vertex of the sequential fan, and conversely.

Main results

This file was written by Claude (Anthropic's AI model) working under the direction of David R. MacIver, who reviews it and is responsible for it.

Imports

theorem interior_closure_eq_of_subset

TopologyByExample.OpcSequentialFan.interior_closure_eq_of_subset

An open set R lying in a closed set C whose interior lies in R is regular open.

theorem interior_closure_eq_of_subset {α : Type*} [TopologicalSpace α] {R C : Set α}
    (hR : IsOpen R) (hC : IsClosed C) (hRC : R ⊆ C) (hint : interior C ⊆ R) :
    interior (closure R) = R
Proof
:=
  ((interior_mono (closure_minimal hRC hC)).trans hint).antisymm
    (hR.subset_interior_iff.2 subset_closure)

theorem isClosed_compl_image_coe

TopologyByExample.OpcSequentialFan.isClosed_compl_image_coe

The complement of the image of an open set of the sequential fan is closed in the one-point compactification.

theorem isClosed_compl_image_coe {T : Set SequentialFan} (hT : IsOpen T) :
    IsClosed ((↑) '' T : Set (OnePoint SequentialFan))ᶜ
Proof
:=
  (isOpen_image_coe.2 hT).isClosed_compl

theorem isOpen_of_vertex_notMem

TopologyByExample.OpcSequentialFan.isOpen_of_vertex_notMem

A set of points of the sequential fan not containing the vertex is open.

theorem isOpen_of_vertex_notMem {T : Set SequentialFan} (hT : vertex ∉ T) : IsOpen T
Proof
:=
  isOpen_iff.2 fun h ↦ absurd h hT

theorem exists_spines_subset

TopologyByExample.OpcSequentialFan.exists_spines_subset

If an open set of the one-point compactification contains the point at infinity, it contains every point of the spines from some index on.

theorem exists_spines_subset {O : Set (OnePoint SequentialFan)} (hO : IsOpen O)
    (hinf : ∞ ∈ O) :
    ∃ N, ∀ m n, N ≤ m → ((pt m n : SequentialFan) : OnePoint SequentialFan) ∈ O
Proof
:= by
  obtain ⟨N, hN⟩ := exists_spine_bound_of_isCompact ((isOpen_def.1 hO).1 hinf)
  refine ⟨N, fun m n hm ↦ ?_⟩
  by_contra h
  exact (pt_mem_initialSpines.1 (hN h)).not_ge hm

theorem semiregularSpace

TopologyByExample.OpcSequentialFan.semiregularSpace

The one-point compactification of the sequential fan is semiregular.

theorem semiregularSpace : SemiregularSpace (OnePoint SequentialFan)
Proof
:= by
  refine ⟨isTopologicalBasis_of_isOpen_of_nhds (fun s hs ↦ hs ▸ isOpen_interior) ?_⟩
  intro a u ha hu
  induction a using OnePoint.rec with
  | infty =>
    -- The points outside the vertex and the first `N + 1` spines.
    obtain ⟨N, hN⟩ := exists_spine_bound_of_isCompact ((isOpen_def.1 hu).1 ha)
    set I := initialSpines (N + 1)
    have hKI : ((↑) ⁻¹' u : Set SequentialFan)ᶜ ⊆ I := fun x hx m n h ↦
      Nat.lt_succ_of_lt (hN hx m n h)
    refine ⟨((↑) '' I)ᶜ, ?_, infty_notMem_image_coe, fun z hz ↦ ?_⟩
    · refine interior_closure_eq_of_subset (C := ((↑) '' (I \ {vertex}))ᶜ) ?_
        (isClosed_compl_image_coe (isOpen_of_vertex_notMem (T := I \ {vertex}) fun h ↦ h.2 rfl))
        (compl_subset_compl.2 (image_mono sdiff_subset)) fun z hz ↦ ?_
      · refine isOpen_def.2 ⟨fun _ ↦ ?_, isOpen_of_vertex_notMem ?_⟩
        · rw [← preimage_compl, compl_compl, preimage_image_eq _ coe_injective]
          exact isCompact_initialSpines _
        · exact fun h ↦ h ⟨vertex, vertex_mem_initialSpines _, rfl⟩
      · obtain ⟨O, hOC, hO, hzO⟩ := mem_interior.1 hz
        rintro ⟨x, hxI, rfl⟩
        by_cases hx : x = vertex
        · subst hx
          have := isOpen_iff.1 (isOpen_def.1 hO).2 hzO 0
          obtain ⟨n, hn⟩ := this.infinite_compl.nonempty
          exact hOC (not_not.1 hn) ⟨pt 0 n, ⟨by simp [I], pt_ne_vertex 0 n⟩, rfl⟩
        · exact hOC hzO ⟨x, ⟨hxI, hx⟩, rfl⟩
    · induction z using OnePoint.rec with
      | infty => exact ha
      | coe x =>
        by_contra h
        exact hz ⟨x, hKI h, rfl⟩
  | coe x =>
    rcases eq_vertex_or_exists_pt x with rfl | ⟨m, n, rfl⟩
    · -- Remove the first point of every spine from the trace of `u`.
      set S : Set SequentialFan := {y | (y : OnePoint SequentialFan) ∈ u ∧ ∀ m, y ≠ pt m 0}
      have hS : IsOpen S := by
        refine isOpen_of_vertex_mem fun m ↦ ?_
        refine (((isOpen_iff.1 (isOpen_def.1 hu).2 ha) m).union
          (finite_singleton 0)).subset fun k hk ↦ ?_
        by_cases h0 : k = 0
        · exact Or.inr h0
        · refine Or.inl fun hku ↦ hk ⟨hku, fun m' h ↦ ?_⟩
          exact h0 (pt_inj.1 h).2
      refine ⟨(↑) '' S, ?_, ⟨vertex, ⟨ha, fun m h ↦ pt_ne_vertex m 0 h.symm⟩, rfl⟩, ?_⟩
      · refine interior_closure_eq_of_subset (C := ((↑) '' Sᶜ)ᶜ) (isOpen_image_coe.2 hS)
          (isClosed_compl_image_coe (isOpen_of_vertex_notMem (T := Sᶜ) fun h ↦ h ⟨ha, ?_⟩)) ?_ ?_
        · exact fun m h ↦ pt_ne_vertex m 0 h.symm
        · rintro _ ⟨y, hy, rfl⟩ ⟨y', hy', hyy'⟩
          exact hy' (coe_injective hyy' ▸ hy)
        · intro z hz
          obtain ⟨O, hOC, hO, hzO⟩ := mem_interior.1 hz
          induction z using OnePoint.rec with
          | infty =>
            obtain ⟨N, hN⟩ := exists_spines_subset hO hzO
            exact absurd (hOC (hN N 0 le_rfl)) fun h ↦ h ⟨pt N 0, fun h' ↦ h'.2 N rfl, rfl⟩
          | coe y =>
            by_contra hy
            exact hOC hzO ⟨y, fun h ↦ hy ⟨y, h, rfl⟩, rfl⟩
      · rintro _ ⟨y, hy, rfl⟩
        exact hy.1
    · refine ⟨{((pt m n : SequentialFan) : OnePoint SequentialFan)}, ?_, rfl,
        singleton_subset_iff.2 ha⟩
      have : IsClopen {((pt m n : SequentialFan) : OnePoint SequentialFan)} := by
        refine ⟨isClosed_singleton, ?_⟩
        rw [← image_singleton]
        exact isOpen_image_coe.2 (isOpen_singleton_pt m n)
      exact isRegularOpen_iff.1 (IsClopen.isRegularOpen this)

On this site: The one-point compactification of the sequential fan is semiregular

The one-point compactification of the metric fan

theorem isOpen_iff

TopologyByExample.OpcSequentialFan.isOpen_iff

The open sets of the one-point compactification of the sequential fan: a set is open if and only if it contains every point of the spines from some index on when it contains the point at infinity, and all but finitely many points of every spine when it contains the vertex.

theorem isOpen_iff {W : Set (OnePoint SequentialFan)} :
    IsOpen W ↔
      (∞ ∈ W → ∃ N, ∀ m n, N ≤ m → ((pt m n : SequentialFan) : OnePoint SequentialFan) ∈ W) ∧
        (((vertex : SequentialFan) : OnePoint SequentialFan) ∈ W →
          ∀ m, {n | ((pt m n : SequentialFan) : OnePoint SequentialFan) ∉ W}.Finite)
Proof
:= by
  refine ⟨fun hW ↦ ⟨exists_spines_subset hW, fun hv ↦
    SequentialFan.isOpen_iff.1 (isOpen_def.1 hW).2 hv⟩, fun ⟨h1, h2⟩ ↦ ?_⟩
  refine isOpen_def.2 ⟨fun hinf ↦ ?_, SequentialFan.isOpen_iff.2 h2⟩
  obtain ⟨N, hN⟩ := h1 hinf
  have hCI : ((↑) ⁻¹' W : Set SequentialFan)ᶜ ⊆ initialSpines N := by
    intro x hx m n hxm
    subst hxm
    by_contra h
    exact hx (hN m n (not_lt.1 h))
  by_cases hv : vertex ∈ ((↑) ⁻¹' W : Set SequentialFan)ᶜ
  · exact (isCompact_initialSpines N).of_isClosed_subset (isClosed_of_vertex_mem hv) hCI
  · refine Finite.isCompact (((Finset.range N).finite_toSet.biUnion fun m _ ↦
      (h2 (not_not.1 hv) m).image (pt m)).subset fun x hx ↦ ?_)
    obtain ⟨m, n, rfl⟩ := exists_pt_of_ne fun h ↦ hv (h ▸ hx)
    exact mem_iUnion₂.2 ⟨m, Finset.mem_range.2 (pt_mem_initialSpines.1 (hCI hx)), n, hx, rfl⟩

theorem isOpen_onePoint_metricFan_iff

TopologyByExample.OpcSequentialFan.isOpen_onePoint_metricFan_iff

The open sets of the one-point compactification of the metric fan: a set is open if and only if it contains all but finitely many points of every spine when it contains the point at infinity, and every point of the spines from some index on when it contains the vertex.

theorem isOpen_onePoint_metricFan_iff {W : Set (OnePoint MetricFan)} :
    IsOpen W ↔
      (∞ ∈ W → ∀ m, {n | ((MetricFan.pt m n : MetricFan) : OnePoint MetricFan) ∉ W}.Finite) ∧
        (((MetricFan.vertex : MetricFan) : OnePoint MetricFan) ∈ W →
          ∃ N, ∀ m n, N ≤ m → ((MetricFan.pt m n : MetricFan) : OnePoint MetricFan) ∈ W)
Proof
:= by
  refine ⟨fun hW ↦ ⟨fun hinf m ↦ MetricFan.finite_spine_of_isCompact ((isOpen_def.1 hW).1 hinf) m,
    fun hv ↦ MetricFan.isOpen_iff.1 (isOpen_def.1 hW).2 hv⟩, fun ⟨h1, h2⟩ ↦ ?_⟩
  have ho : IsOpen ((↑) ⁻¹' W : Set MetricFan) := MetricFan.isOpen_iff.2 h2
  exact isOpen_def.2 ⟨fun hinf ↦ MetricFan.isCompact_of_isClosed ho.isClosed_compl (h1 hinf), ho⟩

definition metricFanEquiv

TopologyByExample.OpcSequentialFan.metricFanEquiv

The points of the metric fan, indexed by Option (ℕ × ℕ): none is the vertex and some (m, n) the n-th point of the m-th spine.

noncomputable def metricFanEquiv : Option (ℕ × ℕ) ≃ MetricFan
Definition
:=
  Equiv.ofBijective
    (fun o : Option (ℕ × ℕ) ↦ Option.elim o MetricFan.vertex fun p ↦ MetricFan.pt p.1 p.2) <| by
    refine ⟨?_, fun x ↦ ?_⟩
    · rintro (_ | ⟨a, b⟩) (_ | ⟨c, d⟩) h
      · rfl
      · exact absurd h.symm (MetricFan.pt_ne_vertex c d)
      · exact absurd h (MetricFan.pt_ne_vertex a b)
      · obtain ⟨rfl, rfl⟩ := MetricFan.pt_inj.1 h
        rfl
    · rcases MetricFan.eq_vertex_or_exists_pt x with rfl | ⟨m, n, rfl⟩
      · exact ⟨none, rfl⟩
      · exact ⟨Option.some (m, n), rfl⟩

instance

Equality of points of the one-point compactification of the sequential fan is decidable.

instance : DecidableEq (OnePoint SequentialFan)
Proof
:=
  inferInstanceAs (DecidableEq (Option SequentialFan))

definition onePointEquiv

TopologyByExample.OpcSequentialFan.onePointEquiv

The bijection between the one-point compactifications of the metric fan and of the sequential fan that exchanges the point at infinity with the vertex and matches the points of the spines.

noncomputable def onePointEquiv : OnePoint MetricFan ≃ OnePoint SequentialFan
:=
  (Equiv.optionCongr (metricFanEquiv.symm.trans (Equiv.refl SequentialFan))).trans
    (Equiv.swap ∞ ((vertex : SequentialFan) : OnePoint SequentialFan))

theorem onePointEquiv_infty

TopologyByExample.OpcSequentialFan.onePointEquiv_infty

The point at infinity of the metric fan's compactification goes to the vertex.

theorem onePointEquiv_infty :
    onePointEquiv ∞ = ((vertex : SequentialFan) : OnePoint SequentialFan)
Proof
:= by
  change Equiv.swap (∞ : OnePoint SequentialFan) _ ∞ = _
  exact Equiv.swap_apply_left _ _

theorem onePointEquiv_vertex

TopologyByExample.OpcSequentialFan.onePointEquiv_vertex

The vertex of the metric fan goes to the point at infinity.

theorem onePointEquiv_vertex :
    onePointEquiv ((MetricFan.vertex : MetricFan) : OnePoint MetricFan) = ∞
Proof
:= by
  have h : onePointEquiv ((MetricFan.vertex : MetricFan) : OnePoint MetricFan) =
      Equiv.swap (∞ : OnePoint SequentialFan) ((vertex : SequentialFan) : OnePoint SequentialFan)
        (OnePoint.some (metricFanEquiv.symm MetricFan.vertex : SequentialFan)) := rfl
  rw [h, show (metricFanEquiv.symm MetricFan.vertex : SequentialFan) = vertex from
    metricFanEquiv.symm_apply_eq.2 rfl]
  exact Equiv.swap_apply_right _ _

theorem onePointEquiv_pt

TopologyByExample.OpcSequentialFan.onePointEquiv_pt

The points of the spines correspond.

theorem onePointEquiv_pt (m n : ℕ) :
    onePointEquiv ((MetricFan.pt m n : MetricFan) : OnePoint MetricFan) =
      ((pt m n : SequentialFan) : OnePoint SequentialFan)
Proof
:= by
  have h : onePointEquiv ((MetricFan.pt m n : MetricFan) : OnePoint MetricFan) =
      Equiv.swap (∞ : OnePoint SequentialFan) ((vertex : SequentialFan) : OnePoint SequentialFan)
        (OnePoint.some (metricFanEquiv.symm (MetricFan.pt m n) : SequentialFan)) := rfl
  rw [h, show (metricFanEquiv.symm (MetricFan.pt m n) : SequentialFan) = pt m n from
    metricFanEquiv.symm_apply_eq.2 rfl]
  exact Equiv.swap_apply_of_ne_of_ne (coe_ne_infty _) (coe_injective.ne (pt_ne_vertex m n))

definition homeomorphOnePointMetricFan

TopologyByExample.OpcSequentialFan.homeomorphOnePointMetricFan

The one-point compactifications of the metric fan and of the sequential fan are homeomorphic, by the map exchanging the point at infinity with the vertex.

noncomputable def homeomorphOnePointMetricFan : OnePoint MetricFan ≃ₜ OnePoint SequentialFan
Definition
:=
  onePointEquiv.toHomeomorph fun W ↦ by
    have hpre (x : OnePoint MetricFan) : x ∈ onePointEquiv ⁻¹' W ↔ onePointEquiv x ∈ W := Iff.rfl
    rw [isOpen_onePoint_metricFan_iff, isOpen_iff]
    simp only [hpre, onePointEquiv_infty, onePointEquiv_vertex, onePointEquiv_pt]
    exact and_comm

theorem nonempty_homeomorph_onePoint_metricFan

TopologyByExample.OpcSequentialFan.nonempty_homeomorph_onePoint_metricFan

The one-point compactification of the metric fan is homeomorphic to that of the sequential fan.

theorem nonempty_homeomorph_onePoint_metricFan :
    Nonempty (OnePoint MetricFan ≃ₜ OnePoint SequentialFan)
Proof
:=
  ⟨homeomorphOnePointMetricFan⟩

On this site: One-point compactification of the sequential fan: It is also the one-point compactification of the metric fan

On this site: Space: One-point compactification of the sequential fan