Lean library · module TopologyByExample.Theorems.EverywhereDoubledMetacompact

Countable metacompactness fails for the everywhere doubled line

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

definition upperRationalTail

TopologyByExample.EverywhereDoubledLine.upperRationalTail

Rational tails in the upper line.

def upperRationalTail (n : ℕ) : Set EverywhereDoubledLine
:=
  (fun q : ℚ ↦ pt (q : ℝ) true) '' {q | n ≤ Encodable.encode q}

theorem isClosed_upperRationalTail

TopologyByExample.EverywhereDoubledLine.isClosed_upperRationalTail

The upper rational tails are closed.

theorem isClosed_upperRationalTail (n : ℕ) : IsClosed (upperRationalTail n)
Proof
:=
  isClosed_of_subset_discrete_closed
    (by rintro _ ⟨q, _, rfl⟩; exact ⟨q, rfl⟩) isDiscrete_upper isClosed_upper

theorem antitone_upperRationalTail

TopologyByExample.EverywhereDoubledLine.antitone_upperRationalTail

The upper rational tails decrease.

theorem antitone_upperRationalTail : Antitone upperRationalTail
Proof
:= by
  intro m n hmn
  exact image_mono fun q hq ↦ hmn.trans hq

theorem iInter_upperRationalTail

TopologyByExample.EverywhereDoubledLine.iInter_upperRationalTail

The upper rational tails have empty intersection.

theorem iInter_upperRationalTail : ⋂ n, upperRationalTail n = ∅
Proof
:= by
  apply eq_empty_iff_forall_notMem.mpr
  intro x hx
  obtain ⟨q, _, hqx⟩ := mem_iInter.mp hx 0
  obtain ⟨r, hr, hrx⟩ := mem_iInter.mp hx (Encodable.encode q + 1)
  have he : r = q := Rat.cast_injective (pt_injective.mp (hrx.trans hqx.symm)).1
  subst r
  change Encodable.encode q + 1 ≤ Encodable.encode q at hr
  omega

theorem dense_coord_upperRationalTail

TopologyByExample.EverywhereDoubledLine.dense_coord_upperRationalTail

The coordinates of an upper rational tail are dense in the real line.

theorem dense_coord_upperRationalTail (n : ℕ) : Dense (coord '' upperRationalTail n)
Proof
:= by
  have hfinite : ({q : ℚ | Encodable.encode q < n} : Set ℚ).Finite :=
    (finite_Iio n).preimage Encodable.encode_injective.injOn
  apply (Rat.denseRange_cast.sdiff_finite (hfinite.image ((↑) : ℚ → ℝ))).mono
  rintro y ⟨⟨q, rfl⟩, hq⟩
  refine ⟨pt (q : ℝ) true, ⟨q, ?_, rfl⟩, rfl⟩
  change n ≤ Encodable.encode q
  by_contra hn
  exact hq ⟨q, lt_of_not_ge hn, rfl⟩

theorem not_countablyMetacompactSpace

TopologyByExample.EverywhereDoubledLine.not_countablyMetacompactSpace

The everywhere doubled line is not countably metacompact.

theorem not_countablyMetacompactSpace : ¬ CountablyMetacompactSpace EverywhereDoubledLine
Proof
:= by
  apply not_countablyMetacompactSpace_of_dense_traces lower continuous_lower upperRationalTail
    isClosed_upperRationalTail antitone_upperRationalTail iInter_upperRationalTail
  intro n U hU hFU
  apply dense_iff_closure_eq.mpr
  have hsub : coord '' upperRationalTail n ⊆ closure (lower ⁻¹' U) := by
    rintro _ ⟨p, hp, rfl⟩
    obtain ⟨u, hpu, hu⟩ := exists_Ioo_subset_of_mem_nhds (hU.mem_nhds (hFU hp))
    apply closure_mono (show Ioo (coord p) u ⊆ lower ⁻¹' U from fun t ht ↦ hu t ht)
    rw [closure_Ioo hpu.ne]
    exact ⟨le_rfl, hpu.le⟩
  simpa only [closure_closure] using ((dense_coord_upperRationalTail n).mono hsub).closure_eq

On this site: The everywhere doubled line is not countably metacompact