Lean library · module TopologyByExample.Theorems.PlaneBaire

Topologies on the plane between the Euclidean topology and the cross topology are Baire

Source file

Let X be a space in bijection e : ℝ × ℝ ≃ X with the plane, such that the topology of X is finer than the Euclidean one (e.symm is continuous) and every horizontal and every vertical line carries a topology at least as coarse as its Euclidean one (x ↦ e (x, b) and y ↦ e (a, y) are continuous). Then X is a Baire space.

Suppose a nonempty open set U of X lay in the union of closed sets F n with empty interiors. Pick e (a, b) ∈ U. The vertical line through it meets U in a set containing an interval I about b. For each y ∈ I the horizontal line at height y meets U in a nonempty open set covered by the closed sets F n, so by the Baire category theorem for ℝ some F n contains a segment (q₁, q₂) × {y} with rational ends. Countably many triples (n, q₁, q₂) arise, so, again by the Baire category theorem, the heights y with one of them are dense in some open interval J. For x ∈ (q₁, q₂) the vertical line at x meets the closed set F n in a closed set containing those heights, so it contains J. Thus F n contains e '' ((q₁, q₂) × J), which is open since the topology is finer than the Euclidean one: a contradiction.

The finest topology satisfying the hypotheses is the cross topology, in which a set is open when it meets every horizontal and every vertical line in an open set; the radial plane (TopologyByExample.RadialPlane) also satisfies them.

Main statements

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 exists_subset_of_isOpen_subset_iUnion

TopologyByExample.exists_subset_of_isOpen_subset_iUnion

The Baire category theorem, localized: in a Baire space, if a nonempty open set lies in the union of countably many closed sets, then one of them contains a nonempty open set.

theorem exists_subset_of_isOpen_subset_iUnion {Y : Type*} [TopologicalSpace Y] [BaireSpace Y]
    {ι : Type*} [Countable ι] {O : Set Y} (hO : IsOpen O) (hne : O.Nonempty) {C : ι → Set Y}
    (hC : ∀ i, IsClosed (C i)) (hcov : O ⊆ ⋃ i, C i) :
    ∃ i, ∃ W : Set Y, IsOpen W ∧ W.Nonempty ∧ W ⊆ C i
Proof
:= by
  obtain ⟨y₀, hy₀⟩ := hne
  obtain ⟨i₀, -⟩ := mem_iUnion.1 (hcov hy₀)
  have hD : ⋃ i, (C i ∪ Oᶜ) = univ := by
    refine eq_univ_of_forall fun y ↦ ?_
    by_cases hy : y ∈ O
    · obtain ⟨i, hi⟩ := mem_iUnion.1 (hcov hy)
      exact mem_iUnion.2 ⟨i, Or.inl hi⟩
    · exact mem_iUnion.2 ⟨i₀, Or.inr hy⟩
  have hd := dense_iUnion_interior_of_closed (fun i ↦ (hC i).union hO.isClosed_compl) hD
  obtain ⟨y, hyO, hy⟩ := hd.inter_open_nonempty O hO ⟨y₀, hy₀⟩
  obtain ⟨i, hi⟩ := mem_iUnion.1 hy
  refine ⟨i, O ∩ interior (C i ∪ Oᶜ), hO.inter isOpen_interior, ⟨y, hyO, hi⟩, ?_⟩
  rintro z ⟨hzO, hz⟩
  exact (interior_subset hz).resolve_right (not_not.2 hzO)

theorem exists_rat_Ioo_subset

TopologyByExample.exists_rat_Ioo_subset

A nonempty open set of real numbers contains an open interval with rational ends.

theorem exists_rat_Ioo_subset {W : Set ℝ} (hW : IsOpen W) (hne : W.Nonempty) :
    ∃ q₁ q₂ : ℚ, q₁ < q₂ ∧ Ioo (q₁ : ℝ) q₂ ⊆ W
Proof
:= by
  obtain ⟨x, hx⟩ := hne
  obtain ⟨ε, hε, hball⟩ := Metric.isOpen_iff.1 hW x hx
  obtain ⟨q₁, h1, h2⟩ := exists_rat_btwn (show x - ε < x by linarith)
  obtain ⟨q₂, h3, h4⟩ := exists_rat_btwn (show x < x + ε by linarith)
  refine ⟨q₁, q₂, by exact_mod_cast h2.trans h3, fun z hz ↦ hball ?_⟩
  rw [Metric.mem_ball, Real.dist_eq, abs_sub_lt_iff]
  constructor <;> linarith [hz.1, hz.2]

theorem baireSpace_of_continuous_horizontal_vertical

TopologyByExample.baireSpace_of_continuous_horizontal_vertical

A topology on the plane between the Euclidean topology and the cross topology is Baire. Let e : ℝ × ℝ ≃ X be a bijection onto a space X such that e.symm is continuous (the topology of X is finer than the Euclidean one) and the horizontal and vertical lines x ↦ e (x, b) and y ↦ e (a, y) are continuous. Then X is a Baire space.

theorem baireSpace_of_continuous_horizontal_vertical {X : Type*} [TopologicalSpace X]
    (e : ℝ × ℝ ≃ X) (he : Continuous e.symm) (hh : ∀ b : ℝ, Continuous fun a : ℝ ↦ e (a, b))
    (hv : ∀ a : ℝ, Continuous fun b : ℝ ↦ e (a, b)) : BaireSpace X
Proof
:= by
  rw [baireSpace_iff_interior_iUnion_eq_empty]
  intro F hFc hFnd
  have hFi : ∀ n, interior (F n) = ∅ := fun n ↦ (hFc n).isNowhereDense_iff.1 (hFnd n)
  by_contra hne
  obtain ⟨x₀, hx₀⟩ := Set.ne_empty_iff_nonempty.1 hne
  set U := interior (⋃ n, F n)
  have hU : IsOpen U := isOpen_interior
  set a := (e.symm x₀).1
  set b := (e.symm x₀).2
  have hab : e (a, b) = x₀ := by simp [a, b]
  -- an interval of the vertical line through `x₀` lies in `U`
  obtain ⟨δ, hδ, hδU⟩ : ∃ δ > 0, Ioo (b - δ) (b + δ) ⊆ (fun y ↦ e (a, y)) ⁻¹' U := by
    obtain ⟨δ, hδ, h⟩ := Metric.isOpen_iff.1 (hU.preimage (hv a)) b
      (show e (a, b) ∈ U by rw [hab]; exact hx₀)
    refine ⟨δ, hδ, fun y hy ↦ h ?_⟩
    rw [Metric.mem_ball, Real.dist_eq, abs_sub_lt_iff]
    constructor <;> linarith [hy.1, hy.2]
  -- on each horizontal line through that interval, some `F n` contains a rational segment
  have hrow : ∀ y ∈ Ioo (b - δ) (b + δ), ∃ n : ℕ, ∃ q : ℚ × ℚ, q.1 < q.2 ∧
      ∀ x ∈ Ioo (q.1 : ℝ) q.2, e (x, y) ∈ F n := by
    intro y hy
    obtain ⟨n, W, hW, hWne, hWF⟩ := exists_subset_of_isOpen_subset_iUnion
      (hU.preimage (hh y)) ⟨a, hδU hy⟩ (C := fun n ↦ (fun x ↦ e (x, y)) ⁻¹' F n)
      (fun n ↦ (hFc n).preimage (hh y)) fun x hx ↦ by
        simpa only [mem_preimage, mem_iUnion] using interior_subset (s := ⋃ n, F n) hx
    obtain ⟨q₁, q₂, hq, hsub⟩ := exists_rat_Ioo_subset hW hWne
    exact ⟨n, (q₁, q₂), hq, fun x hx ↦ hWF (hsub hx)⟩
  choose! N Q hQ hNQ using hrow
  -- the heights with the same segment are dense in some open interval `G`
  set Y : ℕ × ℚ × ℚ → Set ℝ := fun i ↦ {y ∈ Ioo (b - δ) (b + δ) | N y = i.1 ∧ Q y = i.2}
  obtain ⟨⟨n, q⟩, G, hG, hGne, hGY⟩ := exists_subset_of_isOpen_subset_iUnion
    (O := Ioo (b - δ) (b + δ)) isOpen_Ioo ⟨b, by constructor <;> linarith⟩
    (C := fun i ↦ closure (Y i)) (fun _ ↦ isClosed_closure)
    fun y hy ↦ mem_iUnion.2 ⟨(N y, Q y), subset_closure ⟨hy, rfl, rfl⟩⟩
  obtain ⟨g, hg⟩ := hGne
  obtain ⟨y₀, hy₀⟩ := closure_nonempty_iff.1 ⟨g, hGY hg⟩
  have hq : (q.1 : ℝ) < q.2 := by
    have := hQ y₀ hy₀.1
    rw [hy₀.2.2] at this
    exact_mod_cast this
  -- so `F n` contains the open box `(q.1, q.2) × G`
  have hbox : ∀ x ∈ Ioo (q.1 : ℝ) q.2, ∀ y ∈ G, e (x, y) ∈ F n := by
    intro x hx y hy
    have hcl : IsClosed ((fun y ↦ e (x, y)) ⁻¹' F n) := (hFc n).preimage (hv x)
    have hYF : Y (n, q) ⊆ (fun y ↦ e (x, y)) ⁻¹' F n := by
      intro y' hy'
      have h := hNQ y' hy'.1
      rw [hy'.2.1, hy'.2.2] at h
      exact h x hx
    exact hcl.closure_subset_iff.2 hYF (hGY hy)
  have hopen : IsOpen (e.symm ⁻¹' (Ioo (q.1 : ℝ) q.2 ×ˢ G)) := (isOpen_Ioo.prod hG).preimage he
  have hsub : e.symm ⁻¹' (Ioo (q.1 : ℝ) q.2 ×ˢ G) ⊆ interior (F n) := by
    refine interior_maximal (fun z hz ↦ ?_) hopen
    have := hbox _ hz.1 _ hz.2
    simpa using this
  rw [hFi n] at hsub
  obtain ⟨x, hx⟩ := nonempty_Ioo.2 hq
  exact hsub (show e.symm (e (x, g)) ∈ Ioo (q.1 : ℝ) q.2 ×ˢ G by simpa using ⟨hx, hg⟩)

On this site: Theorem: A topology on the plane finer than the Euclidean one, in which horizontal and vertical lines are continuous, is Baire