Lean library · module TopologyByExample.Theorems.StoneCechRemainderInterface

Identification of the two free-ultrafilter interfaces

Source file

The nonprincipal and cofinite-filter descriptions of the remainder are homeomorphic by the identity on their underlying ultrafilters. Existing clients can retain either interface without introducing another model of the space.

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 not_mem_range_pure_iff_le_cofinite

TopologyByExample.StoneCechRemainder.not_mem_range_pure_iff_le_cofinite

An ultrafilter is nonprincipal exactly when it contains the cofinite filter.

theorem not_mem_range_pure_iff_le_cofinite (p : Ultrafilter ℕ) :
    p ∉ range (pure : ℕ → Ultrafilter ℕ) ↔ (p : Filter ℕ) ≤ cofinite
Proof
:= by
  constructor
  · intro hp
    rcases p.le_cofinite_or_eq_pure with h | ⟨n, rfl⟩
    · exact h
    · exact False.elim (hp (mem_range_self n))
  · rintro hp ⟨n, rfl⟩
    have hn := hp (finite_singleton n).compl_mem_cofinite
    simp at hn

definition cofiniteHomeomorph

TopologyByExample.StoneCechRemainder.cofiniteHomeomorph

The two public remainder carriers agree by the identity on ultrafilters.

def cofiniteHomeomorph : StoneCechRemainder ≃ₜ Carrier
Definition
where
  toFun p := ⟨p.val, (not_mem_range_pure_iff_le_cofinite p.val).mp p.property⟩
  invFun p := ⟨p.val, (not_mem_range_pure_iff_le_cofinite p.val).mpr p.property⟩
  left_inv _ := rfl
  right_inv _ := rfl
  continuous_toFun := continuous_subtypeVal.subtype_mk _
  continuous_invFun := continuous_subtypeVal.subtype_mk _

theorem cofiniteHomeomorph_val

TopologyByExample.StoneCechRemainder.cofiniteHomeomorph_val

The comparison preserves the ambient ultrafilter.

@[simp] theorem cofiniteHomeomorph_val (p : StoneCechRemainder) :
    (cofiniteHomeomorph p).val = p.val
Proof
:= rfl

theorem preimage_cofiniteHomeomorph_basic

TopologyByExample.StoneCechRemainder.preimage_cofiniteHomeomorph_basic

The comparison preserves each basic clopen set.

@[simp] theorem preimage_cofiniteHomeomorph_basic (A : Set ℕ) :
    cofiniteHomeomorph ⁻¹' basic A = basicSet A
Proof
:= rfl