Lean library · module TopologyByExample.Spaces.BoxRealObstructions

Countability obstructions in the countable box product

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 not_firstCountable

TopologyByExample.BoxRealPower.not_firstCountable

No countable family is a neighbourhood basis at the zero sequence.

theorem not_firstCountable : ¬FirstCountableTopology Space
Proof
:= by
  intro h
  let z : Space := ⟨fun _ ↦ 0⟩
  obtain ⟨U, hU, hB⟩ := (nhds_basis_opens z).exists_antitone_subbasis
  have hline (n : ℕ) : coordinateLine z n 0 = z := by
    apply Space.ext
    funext k
    simp [coordinateLine, z]
  have hpick : ∀ n, ∃ t : ℝ, t ≠ 0 ∧ coordinateLine z n t ∈ U n := by
    intro n
    have ho := (hU n).2.preimage (continuous_coordinateLine z n)
    have hz : 0 ∈ coordinateLine z n ⁻¹' U n := by
      simpa only [mem_preimage, hline] using (hU n).1
    obtain ⟨ε, hε, hsub⟩ := Metric.mem_nhds_iff.mp (ho.mem_nhds hz)
    refine ⟨ε / 2, ne_of_gt (half_pos hε), hsub ?_⟩
    simp only [Metric.mem_ball, Real.dist_eq, sub_zero, abs_of_pos (half_pos hε)]
    linarith
  choose t ht hmem using hpick
  have ho : IsOpen (box (fun n ↦ ({t n} : Set ℝ)ᶜ)) :=
    isOpen_box (fun _ ↦ isClosed_singleton.isOpen_compl)
  have hz : z ∈ box (fun n ↦ ({t n} : Set ℝ)ᶜ) := by
    intro n
    simpa [z, eq_comm] using ht n
  obtain ⟨n, _, hn⟩ := hB.toHasBasis.mem_iff.mp (ho.mem_nhds hz)
  have hbad := hn (hmem n) n
  simp [coordinateLine] at hbad

On this site: The countable box product of the reals is not first countable

definition rescale

TopologyByExample.BoxRealPower.rescale

Multiply each coordinate by an independently chosen scalar.

def rescale (w : ℕ → ℝ) (x : Space) : Space
:= ⟨fun n ↦ w n * x.coord n⟩

theorem continuous_rescale

TopologyByExample.BoxRealPower.continuous_rescale

Coordinatewise rescaling is continuous in the box topology.

theorem continuous_rescale (w : ℕ → ℝ) : Continuous (rescale w)
Proof
:= by
  apply basis.continuous_iff.mpr
  rintro _ ⟨U, hU, rfl⟩
  change IsOpen (box (fun n ↦ (fun t : ℝ ↦ w n * t) ⁻¹' U n))
  exact isOpen_box (fun n ↦ (hU n).preimage (continuous_const.mul continuous_id))

theorem not_locallyConnected

TopologyByExample.BoxRealPower.not_locallyConnected

Every open box about zero contains a point separated from zero by a clopen set.

theorem not_locallyConnected : ¬LocallyConnectedSpace Space
Proof
:= by
  intro h
  let z : Space := ⟨fun _ ↦ 0⟩
  obtain ⟨B, hB, hz, hsub⟩ := basis.exists_subset_of_mem_open
    (show z ∈ connectedComponent z from mem_connectedComponent) isOpen_connectedComponent
  obtain ⟨U, hU, rfl⟩ := hB
  have hpick : ∀ n, ∃ t : ℝ, t ≠ 0 ∧ t ∈ U n := by
    intro n
    obtain ⟨ε, hε, hεU⟩ := Metric.mem_nhds_iff.mp ((hU n).mem_nhds (hz n))
    refine ⟨ε / 2, ne_of_gt (half_pos hε), hεU ?_⟩
    change dist (ε / 2) 0 < ε
    rw [Real.dist_eq, sub_zero, abs_of_pos (half_pos hε)]
    linarith
  choose t ht htU using hpick
  let y : Space := ⟨t⟩
  let w : ℕ → ℝ := fun n ↦ (n : ℝ) / t n
  have hy : y ∈ connectedComponent z := hsub htU
  have hc : IsClopen (rescale w ⁻¹' boundedSequences) :=
    isClopen_boundedSequences.preimage (continuous_rescale w)
  have hzc : z ∈ rescale w ⁻¹' boundedSequences := by
    refine ⟨1, ?_⟩
    intro n
    simp [rescale, z]
  obtain ⟨r, hr⟩ := hc.connectedComponent_subset hzc hy
  obtain ⟨n, hn⟩ := exists_nat_gt r
  have hnr := hr n
  change |((n : ℝ) / t n) * t n| < r at hnr
  rw [div_mul_cancel₀ _ (ht n), abs_of_nonneg (Nat.cast_nonneg n)] at hnr
  linarith

On this site: The countable box product of the reals is not locally connected

theorem not_weaklyLocallyCompact

TopologyByExample.BoxRealPower.not_weaklyLocallyCompact

A compact neighbourhood would force first countability through the ordinary product.

theorem not_weaklyLocallyCompact : ¬WeaklyLocallyCompactSpace Space
Proof
:= by
  intro h
  exact not_firstCountable
    (firstCountable_of_weaklyLocallyCompact_compression continuous_toProduct
      (fun _ _ he ↦ Space.ext he))

On this site: The countable box product of the reals is not weakly locally compact