Lean library Β· module TopologyByExample.Spaces.PsiPseudocompact

Pseudocompactness of the maximal almost-disjoint family space

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
variable {π’œ : Set (Set β„•)}

theorem bddAbove_range_nat

TopologyByExample.PsiSpace.bddAbove_range_nat

Maximality bounds every continuous real function on the natural-number points.

theorem bddAbove_range_nat (hπ’œ : IsMaximalAlmostDisjointFamily π’œ)
    (f : C(PsiSpace π’œ, ℝ)) : BddAbove (range fun n => f (nat n))
Proof
:= by
  classical
  by_contra hn
  have hex (n : β„•) : βˆƒ m : β„•, (n : ℝ) < f (nat m) := by
    obtain ⟨r, ⟨m, rfl⟩, hr⟩ := not_bddAbove_iff.mp hn (n : ℝ)
    exact ⟨m, hr⟩
  choose u hu using hex
  have hinf : (range u).Infinite := by
    intro hfin
    obtain ⟨M, hM⟩ := (hfin.image (fun n => f (nat n))).bddAbove
    obtain ⟨n, hn⟩ := exists_nat_gt M
    have hle := hM (mem_image_of_mem (fun n => f (nat n)) (mem_range_self n))
    exact (not_lt_of_ge hle) (hn.trans (hu n))
  obtain ⟨A, hA, hAi⟩ := hπ’œ.meets_infinite (range u) hinf
  let a : π’œ := ⟨A, hA⟩
  let U : Set (PsiSpace π’œ) := {x | f x < f (point a) + 1}
  have hU : IsOpen U := isOpen_lt f.continuous continuous_const
  have hpa : point a ∈ U := by dsimp [U]; linarith
  have hF : (A \ nat ⁻¹' U).Finite := hU a hpa
  obtain ⟨N, hN⟩ := exists_nat_gt (f (point a) + 1)
  obtain ⟨v, hv, hvnot⟩ := hAi.exists_notMem_finite
    (hF.union ((finite_Iic N).image u))
  have hfv : f (nat v) < f (point a) + 1 := by
    by_contra h
    exact hvnot (Or.inl ⟨hv.1, h⟩)
  obtain ⟨n, rfl⟩ := hv.2
  have hNn : N < n := by
    by_contra h
    exact hvnot (Or.inr ⟨n, Nat.le_of_not_gt h, rfl⟩)
  have hNn' : (N : ℝ) < n := by exact_mod_cast hNn
  have hnu := hu n
  linarith

theorem bddAbove_range

TopologyByExample.PsiSpace.bddAbove_range

Every continuous real function on a maximal almost-disjoint family space is bounded above.

theorem bddAbove_range (hπ’œ : IsMaximalAlmostDisjointFamily π’œ)
    (f : C(PsiSpace π’œ, ℝ)) : BddAbove (range f)
Proof
:= by
  obtain ⟨M, hM⟩ := bddAbove_range_nat hπ’œ f
  refine ⟨M, ?_⟩
  rintro _ ⟨x, rfl⟩
  have hsub : range (nat : β„• β†’ PsiSpace π’œ) βŠ† {x | f x ≀ M} := by
    rintro _ ⟨n, rfl⟩
    exact hM (mem_range_self n)
  exact closure_minimal hsub (isClosed_le f.continuous continuous_const)
    (denseRange_nat hπ’œ.infinite_members x)

theorem pseudocompactSpace

TopologyByExample.PsiSpace.pseudocompactSpace

The space associated to a maximal almost-disjoint family is pseudocompact.

theorem pseudocompactSpace (hπ’œ : IsMaximalAlmostDisjointFamily π’œ) :
    PseudocompactSpace (PsiSpace π’œ)
Proof
:= by
  constructor
  intro f
  refine ⟨bddAbove_range hπ’œ f, ?_⟩
  obtain ⟨M, hM⟩ := bddAbove_range hπ’œ (-f)
  refine ⟨-M, ?_⟩
  rintro _ ⟨x, rfl⟩
  have h := hM (mem_range_self x)
  change -f x ≀ M at h
  linarith

On this site: Theorem: Maximal almost-disjoint family spaces are pseudocompact