Lean library · module TopologyByExample.Spaces.MichaelLineTimesIrrationals

The Michael line times the irrationals

Source file

The product TopologyByExample.MichaelLine × (ℕ → ℕ) of the Michael line and the Baire space ℕ → ℕ (which is homeomorphic to the space of irrational numbers) is the classical example of a product of a paracompact space and a metrizable space that is not normal (E. Michael, 1963). We show more: it is not even countably paracompact.

Instead of a homeomorphism between ℕ → ℕ and the irrationals, the proofs use one continuous map TopologyByExample.MichaelLineTimesIrrationals.engel : (ℕ → ℕ) → ℝ, the value of an Engel-type series, with three properties: it is continuous (continuous_engel), it takes only irrational values (irrational_engel), and on every cylinder it comes arbitrarily close to a rational number (exists_mem_cylinder_abs_sub_lt); engel_spec collects them.

Main statements

References

  • E. Michael, The product of a normal space and a metric space need not be normal, Bull. Amer. Math. Soc. 69 (1963), 375–376.
  • L. A. Steen and J. A. Seebach, Counterexamples in Topology, Example 85.

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

An Engel series

definition digit

TopologyByExample.MichaelLineTimesIrrationals.digit

The k-th digit (k + 1) (f k + 3) of the Engel series attached to f.

def digit (f : ℕ → ℕ) (k : ℕ) : ℕ
:= (k + 1) * (f k + 3)

theorem three_le_digit

TopologyByExample.MichaelLineTimesIrrationals.three_le_digit

Every digit is at least 3.

theorem three_le_digit (f : ℕ → ℕ) (k : ℕ) : 3 ≤ digit f k
Proof
:= by
  unfold digit; nlinarith

definition term

TopologyByExample.MichaelLineTimesIrrationals.term

The k-th term of the tail of the series from the m-th digit on: 1 / (digit m * digit (m + 1) * ⋯ * digit (m + k)).

def term (m : ℕ) (f : ℕ → ℕ) (k : ℕ) : ℝ
:=
  ∏ i ∈ Finset.range (k + 1), ((digit f (m + i) : ℝ))⁻¹

theorem term_pos

TopologyByExample.MichaelLineTimesIrrationals.term_pos

The terms are positive.

theorem term_pos (m : ℕ) (f : ℕ → ℕ) (k : ℕ) : 0 < term m f k
Proof
:=
  Finset.prod_pos fun i _ ↦ inv_pos.2 (by have := three_le_digit f (m + i); positivity)

theorem term_le

TopologyByExample.MichaelLineTimesIrrationals.term_le

The k-th term is at most 3^{-(k+1)}.

theorem term_le (m : ℕ) (f : ℕ → ℕ) (k : ℕ) : term m f k ≤ (1 / 3) ^ (k + 1)
Proof
:= by
  rw [← Finset.card_range (k + 1), ← Finset.prod_const]
  refine Finset.prod_le_prod₀ (fun i _ ↦ ?_) fun i _ ↦ ?_
  · have := three_le_digit f (m + i); positivity
  · rw [one_div]
    exact inv_anti₀ (by norm_num) (by exact_mod_cast three_le_digit f (m + i))

theorem summable_geometric_third

TopologyByExample.MichaelLineTimesIrrationals.summable_geometric_third

The geometric series ∑ (1/3)^(k+1) is summable.

theorem summable_geometric_third : Summable fun k : ℕ ↦ ((1 : ℝ) / 3) ^ (k + 1)
Proof
:=
  (summable_geometric_of_lt_one (by norm_num) (by norm_num)).comp_injective (add_left_injective 1)

theorem summable_term

TopologyByExample.MichaelLineTimesIrrationals.summable_term

The terms are summable.

theorem summable_term (m : ℕ) (f : ℕ → ℕ) : Summable (term m f)
Proof
:=
  .of_nonneg_of_le (fun k ↦ (term_pos m f k).le) (term_le m f) summable_geometric_third

theorem term_zero

TopologyByExample.MichaelLineTimesIrrationals.term_zero

The first term of the tail from the m-th digit is 1 / digit m.

theorem term_zero (m : ℕ) (f : ℕ → ℕ) : term m f 0 = ((digit f m : ℝ))⁻¹
Proof
:= by
  simp [term]

theorem term_succ

TopologyByExample.MichaelLineTimesIrrationals.term_succ

Each later term is 1 / digit m times a term of the tail from the next digit.

theorem term_succ (m : ℕ) (f : ℕ → ℕ) (k : ℕ) :
    term m f (k + 1) = ((digit f m : ℝ))⁻¹ * term (m + 1) f k
Proof
:= by
  rw [term, Finset.prod_range_succ', mul_comm, term, add_zero]
  congr 1
  exact Finset.prod_congr rfl fun i _ ↦ by rw [show m + (i + 1) = m + 1 + i by omega]

definition tail

TopologyByExample.MichaelLineTimesIrrationals.tail

The tail of the series from the m-th digit on.

def tail (m : ℕ) (f : ℕ → ℕ) : ℝ
:= ∑' k, term m f k

theorem tail_pos

TopologyByExample.MichaelLineTimesIrrationals.tail_pos

The tails are positive.

theorem tail_pos (m : ℕ) (f : ℕ → ℕ) : 0 < tail m f
Proof
:=
  (summable_term m f).tsum_pos (fun k ↦ (term_pos m f k).le) 0 (term_pos m f 0)

theorem tail_le

TopologyByExample.MichaelLineTimesIrrationals.tail_le

The tails are at most 1 / 2.

theorem tail_le (m : ℕ) (f : ℕ → ℕ) : tail m f ≤ 1 / 2
Proof
:= by
  calc tail m f ≤ ∑' k : ℕ, ((1 : ℝ) / 3) ^ (k + 1) :=
        (summable_term m f).tsum_le_tsum (term_le m f) summable_geometric_third
    _ = 1 / 2 := by
        simp_rw [pow_succ, tsum_mul_right, tsum_geometric_of_lt_one (by norm_num : (0 : ℝ) ≤ 1 / 3)
          (by norm_num)]
        norm_num

theorem tail_eq

TopologyByExample.MichaelLineTimesIrrationals.tail_eq

The recursion tail m = (1 + tail (m + 1)) / digit m.

theorem tail_eq (m : ℕ) (f : ℕ → ℕ) :
    tail m f = ((digit f m : ℝ))⁻¹ * (1 + tail (m + 1) f)
Proof
:= by
  rw [tail, (summable_term m f).tsum_eq_zero_add, term_zero]
  simp_rw [term_succ]
  rw [tsum_mul_left, mul_add, mul_one, tail]

definition engel

TopologyByExample.MichaelLineTimesIrrationals.engel

The value ∑ₖ 1 / (digit 0 * ⋯ * digit k) of the Engel series attached to f.

def engel (f : ℕ → ℕ) : ℝ
:= tail 0 f

definition den

TopologyByExample.MichaelLineTimesIrrationals.den

The product of the first n digits.

def den (n : ℕ) (f : ℕ → ℕ) : ℕ
:= ∏ i ∈ Finset.range n, digit f i

definition num

TopologyByExample.MichaelLineTimesIrrationals.num

The numerator of the n-th partial sum, over den n f.

def num : ℕ → (ℕ → ℕ) → ℕ
  | 0, _ => 0
  | n + 1, f => digit f n * num n f + 1

theorem den_pos

TopologyByExample.MichaelLineTimesIrrationals.den_pos

The product of the first n digits is positive.

theorem den_pos (n : ℕ) (f : ℕ → ℕ) : 0 < den n f
Proof
:=
  Finset.prod_pos fun i _ ↦ by have := three_le_digit f i; omega

theorem den_mul_engel

TopologyByExample.MichaelLineTimesIrrationals.den_mul_engel

den n f * engel f = num n f + tail n f: the n-th partial sum is num n f / den n f and the rest is tail n f / den n f.

theorem den_mul_engel (n : ℕ) (f : ℕ → ℕ) :
    (den n f : ℝ) * engel f = num n f + tail n f
Proof
:= by
  induction n with
  | zero => simp [den, num, engel]
  | succ n ih =>
    have hd : (digit f n : ℝ) ≠ 0 := by have := three_le_digit f n; positivity
    rw [den, Finset.prod_range_succ, ← den, Nat.cast_mul, mul_right_comm, ih, num, tail_eq n f]
    push_cast
    field_simp
    ring

theorem irrational_engel

TopologyByExample.MichaelLineTimesIrrationals.irrational_engel

The Engel series takes only irrational values.

theorem irrational_engel (f : ℕ → ℕ) : Irrational (engel f)
Proof
:= by
  rintro ⟨r, hr⟩
  set q := r.den with hq_def
  have hq : 0 < q := r.den_pos
  have hdvd : q ∣ den q f := by
    have : q ∣ digit f (q - 1) := by
      unfold digit; rw [Nat.sub_add_cancel hq]; exact dvd_mul_right _ _
    exact this.trans (Finset.dvd_prod_of_mem _ (Finset.mem_range.2 (Nat.sub_lt hq one_pos)))
  obtain ⟨c, hc⟩ := hdvd
  have key := den_mul_engel q f
  rw [hc, ← hr, Rat.cast_def] at key
  have hq' : (q : ℝ) ≠ 0 := by positivity
  have ht : tail q f = ((c * r.num - num q f : ℤ) : ℝ) := by
    rw [← hq_def] at key
    field_simp at key
    push_cast at key ⊢
    rw [mul_assoc] at key
    linarith [mul_left_cancel₀ hq' key]
  have h1 := tail_pos q f
  have h2 := tail_le q f
  rw [ht] at h1 h2
  have : (0 : ℤ) < c * r.num - num q f := by exact_mod_cast h1
  have : (1 : ℝ) ≤ ((c * r.num - num q f : ℤ) : ℝ) := by exact_mod_cast this
  linarith

theorem continuous_engel

TopologyByExample.MichaelLineTimesIrrationals.continuous_engel

The Engel series is continuous.

@[fun_prop]
theorem continuous_engel : Continuous engel
Proof
:= by
  refine continuous_tsum (fun k ↦ ?_) summable_geometric_third fun k f ↦ ?_
  · refine continuous_finsetProd _ fun i _ ↦ ?_
    exact (continuous_of_discreteTopology
      (f := fun n : ℕ ↦ (((0 + i + 1) * (n + 3) : ℕ) : ℝ)⁻¹)).comp (continuous_apply (0 + i))
  · rw [Real.norm_of_nonneg (term_pos 0 f k).le]
    exact term_le 0 f k

theorem den_congr

TopologyByExample.MichaelLineTimesIrrationals.den_congr

The product of the first n digits depends only on the first n terms.

theorem den_congr {n : ℕ} {f g : ℕ → ℕ} (h : g ∈ cylinder f n) : den n g = den n f
Proof
:=
  Finset.prod_congr rfl fun i hi ↦ by rw [digit, digit, h i (Finset.mem_range.1 hi)]

theorem num_congr

TopologyByExample.MichaelLineTimesIrrationals.num_congr

The numerator of the n-th partial sum depends only on the first n terms.

theorem num_congr {n : ℕ} {f g : ℕ → ℕ} (h : g ∈ cylinder f n) : num n g = num n f
Proof
:= by
  induction n with
  | zero => rfl
  | succ n ih =>
    rw [num, num, ih (cylinder_anti f n.le_succ h), digit, digit, h n n.lt_succ_self]

theorem exists_mem_cylinder_abs_sub_lt

TopologyByExample.MichaelLineTimesIrrationals.exists_mem_cylinder_abs_sub_lt

On every cylinder the Engel series comes arbitrarily close to the rational number num n f / den n f.

theorem exists_mem_cylinder_abs_sub_lt (f : ℕ → ℕ) (n : ℕ) {ε : ℝ} (hε : 0 < ε) :
    ∃ g ∈ cylinder f n, |engel g - num n f / den n f| < ε
Proof
:= by
  have hden : (0 : ℝ) < den n f := by exact_mod_cast den_pos n f
  -- the tail from the `n`-th digit is at most `(3 / 2) / (g n + 3)`
  obtain ⟨j, hj⟩ := exists_nat_gt (3 / (2 * ε * den n f))
  set g := Function.update f n j
  have hg : g ∈ cylinder f n := update_mem_cylinder f n j
  refine ⟨g, hg, ?_⟩
  have key := den_mul_engel n g
  rw [den_congr hg, num_congr hg] at key
  have hval : engel g - num n f / den n f = tail n g / den n f := by
    field_simp
    linarith
  rw [hval, abs_of_pos (div_pos (tail_pos n g) hden), div_lt_iff₀ hden]
  have hdig : (j + 3 : ℝ) ≤ digit g n := by
    unfold digit
    simp only [g, Function.update_self]
    push_cast
    nlinarith
  have htail : tail n g ≤ (3 / 2) / (j + 3) := by
    rw [tail_eq, inv_mul_eq_div]
    have := tail_le (n + 1) g
    have := tail_pos (n + 1) g
    calc (1 + tail (n + 1) g) / digit g n ≤ (3 / 2) / digit g n := by gcongr; linarith
      _ ≤ (3 / 2) / (j + 3) := by gcongr
  calc tail n g ≤ (3 / 2) / (j + 3) := htail
    _ < ε * den n f := by
      rw [div_lt_iff₀ (by positivity)]
      rw [div_lt_iff₀ (by positivity)] at hj
      nlinarith

theorem engel_spec

TopologyByExample.MichaelLineTimesIrrationals.engel_spec

The Engel series is continuous, takes only irrational values, and the closure of its image of every cylinder contains a rational number.

theorem engel_spec : Continuous engel ∧ (∀ f, Irrational (engel f)) ∧
    ∀ f n, ∃ q : ℚ, (q : ℝ) ∈ closure (engel '' cylinder f n)
Proof
:= by
  refine ⟨continuous_engel, irrational_engel, fun f n ↦ ⟨num n f / den n f, ?_⟩⟩
  refine Metric.mem_closure_iff.2 fun ε hε ↦ ?_
  obtain ⟨g, hg, hgq⟩ := exists_mem_cylinder_abs_sub_lt f n hε
  refine ⟨engel g, mem_image_of_mem _ hg, ?_⟩
  rw [Real.dist_eq, abs_sub_comm]
  push_cast
  exact hgq

On this site: Michael line times the irrationals: An Engel series on the Baire space

The key lemma

theorem exists_cylinder_subset

TopologyByExample.MichaelLineTimesIrrationals.exists_cylinder_subset

A neighbourhood of a point of the Baire space contains a cylinder around it.

theorem exists_cylinder_subset {t : Set (ℕ → ℕ)} {f : ℕ → ℕ} (ht : t ∈ 𝓝 f) :
    ∃ j, cylinder f j ⊆ t
Proof
:= by
  obtain ⟨s, ⟨x, n, rfl⟩, hfs, hst⟩ :=
    (isTopologicalBasis_cylinders (E := fun _ : ℕ ↦ ℕ)).mem_nhds_iff.1 ht
  exact ⟨n, by rw [mem_cylinder_iff_eq.1 hfs]; exact hst⟩

definition nearGraph

TopologyByExample.MichaelLineTimesIrrationals.nearGraph

The points (q, f) with q rational and |q - engel f| ≤ 1 / (n + 1).

def nearGraph (n : ℕ) : Set (MichaelLine × (ℕ → ℕ))
:=
  {z | ¬Irrational (toReal z.1) ∧ |toReal z.1 - engel z.2| ≤ 1 / (n + 1)}

definition graphPoint

TopologyByExample.MichaelLineTimesIrrationals.graphPoint

The point (engel f, f) of the graph of the Engel series.

def graphPoint (f : ℕ → ℕ) : MichaelLine × (ℕ → ℕ)
:= (toReal.symm (engel f), f)

theorem isMeagre_not_mem_closure

TopologyByExample.MichaelLineTimesIrrationals.isMeagre_not_mem_closure

The key lemma. If an open set G contains every point (q, f) with q rational and |q - engel f| ≤ 1 / (n + 1), then the set of f for which (engel f, f) is not in the closure of G is meagre. This is Michael's Baire category argument.

theorem isMeagre_not_mem_closure {n : ℕ} {G : Set (MichaelLine × (ℕ → ℕ))} (hG : IsOpen G)
    (hFG : nearGraph n ⊆ G) : IsMeagre {f | graphPoint f ∉ closure G}
Proof
:= by
  set E : ℕ → Set (ℕ → ℕ) := fun j ↦ {f | ∀ g ∈ cylinder f j, (toReal.symm (engel f), g) ∉ G}
  have hsub : {f | graphPoint f ∉ closure G} ⊆ ⋃ j, E j := by
    intro f hf
    have : (closure G)ᶜ ∈ 𝓝 (graphPoint f) := isClosed_closure.isOpen_compl.mem_nhds hf
    have hirr : Irrational (toReal (toReal.symm (engel f))) := by simpa using irrational_engel f
    rw [show graphPoint f = (toReal.symm (engel f), f) from rfl, nhds_prod_eq,
      MichaelLine.nhds_of_irrational hirr] at this
    obtain ⟨t₁, ht₁, t₂, ht₂, hts⟩ := mem_prod_iff.1 this
    obtain ⟨j, hj⟩ := exists_cylinder_subset ht₂
    exact mem_iUnion.2 ⟨j, fun g hg hgG ↦ hts ⟨mem_pure.1 ht₁, hj hg⟩ (subset_closure hgG)⟩
  refine (isMeagre_iUnion fun j ↦ IsNowhereDense.isMeagre ?_).mono hsub
  rw [IsNowhereDense, ← not_nonempty_iff_eq_empty]
  rintro ⟨f₀, hf₀⟩
  obtain ⟨m, hm⟩ := exists_cylinder_subset (isOpen_interior.mem_nhds hf₀)
  set k := max m j
  have hcyl : cylinder f₀ k ⊆ closure (E j) :=
    (cylinder_anti f₀ (le_max_left m j)).trans (hm.trans interior_subset)
  set q : ℝ := num k f₀ / den k f₀
  have hq : ¬Irrational q := by
    have : q = ((num k f₀ / den k f₀ : ℚ) : ℝ) := by push_cast; rfl
    rw [this]
    exact Rat.not_irrational _
  -- a point `(q, g₁)` of `nearGraph n`, with `g₁` in the cylinder
  obtain ⟨g₁, hg₁, hg₁q⟩ := exists_mem_cylinder_abs_sub_lt f₀ k
    (ε := 1 / (n + 1)) (by positivity)
  have hmem : (toReal.symm q, g₁) ∈ G :=
    hFG ⟨by simpa using hq, by simpa [abs_sub_comm] using hg₁q.le⟩
  have hGn : G ∈ 𝓝 (toReal.symm q, g₁) := hG.mem_nhds hmem
  rw [nhds_prod_eq, MichaelLine.nhds_of_not_irrational (by simpa using hq)] at hGn
  obtain ⟨t₁, ht₁, t₂, ht₂, hts⟩ := mem_prod_iff.1 hGn
  obtain ⟨u, hu, hut⟩ := mem_comap.1 ht₁
  obtain ⟨r, hr, hru⟩ := Metric.mem_nhds_iff.1 (by simpa using hu : u ∈ 𝓝 q)
  -- a point `f` of `E j` in the cylinder, with `engel f` close to `q`
  obtain ⟨g₂, hg₂, hg₂q⟩ := exists_mem_cylinder_abs_sub_lt f₀ k hr
  have hopen : IsOpen (cylinder f₀ k ∩ engel ⁻¹' Metric.ball q r) :=
    (isOpen_cylinder (E := fun _ : ℕ ↦ ℕ) f₀ k).inter (Metric.isOpen_ball.preimage continuous_engel)
  obtain ⟨f, ⟨hfc, hfb⟩, hfE⟩ := mem_closure_iff.1 (hcyl hg₂) _ hopen
    ⟨hg₂, by simpa [Metric.mem_ball, Real.dist_eq] using hg₂q⟩
  have hg₁f : g₁ ∈ cylinder f j := fun i hi ↦ by
    rw [hg₁ i (hi.trans_le (le_max_right m j)), hfc i (hi.trans_le (le_max_right m j))]
  exact hfE g₁ hg₁f (hts ⟨hut (by simpa using hru hfb), mem_of_mem_nhds ht₂⟩)

On this site: Michael line times the irrationals: A Baire category lemma

theorem exists_graphPoint_mem_closure

TopologyByExample.MichaelLineTimesIrrationals.exists_graphPoint_mem_closure

Some point of the graph of the Engel series lies in the closure of an open set containing nearGraph n.

theorem exists_graphPoint_mem_closure {n : ℕ} {G : Set (MichaelLine × (ℕ → ℕ))} (hG : IsOpen G)
    (hFG : nearGraph n ⊆ G) : ∃ f, graphPoint f ∈ closure G
Proof
:= by
  by_contra! h
  exact not_isMeagre_of_isOpen isOpen_univ univ_nonempty
    ((isMeagre_not_mem_closure hG hFG).mono fun f _ ↦ h f)

Normality and countable paracompactness

theorem isClosed_rationals

TopologyByExample.MichaelLineTimesIrrationals.isClosed_rationals

The rational points ℚ × ℕ^ℕ form a closed set.

theorem isClosed_rationals :
    IsClosed {z : MichaelLine × (ℕ → ℕ) | ¬Irrational (toReal z.1)}
Proof
:=
  MichaelLine.isClosed_rationals.preimage continuous_fst

theorem isClosed_graph

TopologyByExample.MichaelLineTimesIrrationals.isClosed_graph

The graph of the Engel series is closed.

theorem isClosed_graph : IsClosed {z : MichaelLine × (ℕ → ℕ) | toReal z.1 = engel z.2}
Proof
:=
  isClosed_eq (MichaelLine.continuous_toReal.comp continuous_fst)
    (continuous_engel.comp continuous_snd)

theorem not_normalSpace

TopologyByExample.MichaelLineTimesIrrationals.not_normalSpace

The product of the Michael line and the Baire space is not normal: the closed sets ℚ × ℕ^ℕ and the graph of the Engel series are disjoint and cannot be separated.

theorem not_normalSpace : ¬NormalSpace (MichaelLine × (ℕ → ℕ))
Proof
:= fun _ ↦ by
  have hAB : Disjoint {z : MichaelLine × (ℕ → ℕ) | ¬Irrational (toReal z.1)}
      {z | toReal z.1 = engel z.2} :=
    Set.disjoint_left.2 fun z hzA hzB ↦ hzA (hzB ▸ irrational_engel z.2)
  obtain ⟨U, V, hU, hV, hAU, hBV, hUV⟩ := normal_separation isClosed_rationals isClosed_graph hAB
  obtain ⟨f, hf⟩ := exists_graphPoint_mem_closure (n := 0) hU fun z hz ↦ hAU hz.1
  exact Set.disjoint_left.1 (hUV.closure_left hV) hf (hBV (by simp [graphPoint]))

On this site: Michael line times the irrationals is not normal

theorem isClosed_nearGraph

TopologyByExample.MichaelLineTimesIrrationals.isClosed_nearGraph

Each set nearGraph n is closed.

theorem isClosed_nearGraph (n : ℕ) : IsClosed (nearGraph n)
Proof
:=
  isClosed_rationals.inter (isClosed_le (continuous_abs.comp
    ((MichaelLine.continuous_toReal.comp continuous_fst).sub
      (continuous_engel.comp continuous_snd))) continuous_const)

theorem antitone_nearGraph

TopologyByExample.MichaelLineTimesIrrationals.antitone_nearGraph

The sets nearGraph n decrease.

theorem antitone_nearGraph : Antitone nearGraph
Proof
:= fun m n hmn _ hz ↦
  ⟨hz.1, hz.2.trans (by gcongr)⟩

theorem iInter_nearGraph

TopologyByExample.MichaelLineTimesIrrationals.iInter_nearGraph

The sets nearGraph n have empty intersection, since the Engel series takes irrational values.

theorem iInter_nearGraph : ⋂ n, nearGraph n = ∅
Proof
:= by
  refine eq_empty_of_forall_notMem fun z hz ↦ ?_
  have hz' := mem_iInter.1 hz
  have heq : toReal z.1 = engel z.2 := by
    by_contra hne
    obtain ⟨n, hn⟩ := exists_nat_one_div_lt (abs_sub_pos.2 hne)
    exact (hz' n).2.not_gt hn
  exact (hz' 0).1 (heq ▸ irrational_engel z.2)

theorem not_countablyParacompactSpace

TopologyByExample.MichaelLineTimesIrrationals.not_countablyParacompactSpace

The product of the Michael line and the Baire space is not countably paracompact: the closed sets nearGraph n decrease to the empty set, but the closures of any open sets containing them have a common point on the graph of the Engel series.

theorem not_countablyParacompactSpace :
    ¬CountablyParacompactSpace (MichaelLine × (ℕ → ℕ))
Proof
:= fun _ ↦ by
  obtain ⟨G, hGo, hFG, -, hGe⟩ := CountablyParacompactSpace.exists_open_iInter_closure_eq_empty
    isClosed_nearGraph antitone_nearGraph iInter_nearGraph
  have hm : IsMeagre (⋃ n, {f | graphPoint f ∉ closure (G n)}) :=
    isMeagre_iUnion fun n ↦ isMeagre_not_mem_closure (hGo n) (hFG n)
  obtain ⟨f, hf⟩ : ∃ f, f ∉ ⋃ n, {f | graphPoint f ∉ closure (G n)} := by
    by_contra! h
    exact not_isMeagre_of_isOpen isOpen_univ univ_nonempty (hm.mono fun f _ ↦ h f)
  have : graphPoint f ∈ ⋂ n, closure (G n) := by
    simpa using hf
  rw [hGe] at this
  exact this

On this site: Michael line times the irrationals is not countably paracompact

The Baire property

instance baireSpace

TopologyByExample.MichaelLineTimesIrrationals.baireSpace

The product of the Michael line and the Baire space is a Baire space: every nonempty open set contains an open set {x} × O with x irrational, which is a copy of an open subset of the Baire space.

instance baireSpace : BaireSpace (MichaelLine × (ℕ → ℕ))
Proof
:= ⟨fun D hDo hDd ↦ by
  refine dense_iff_inter_open.2 fun W hW ⟨z, hz⟩ ↦ ?_
  obtain ⟨t₁, ht₁, t₂, ht₂, hts⟩ := mem_prod_iff.1 (nhds_prod_eq (x := z.1) (y := z.2) ▸
    hW.mem_nhds hz)
  obtain ⟨x, hx1, hx⟩ := MichaelLine.dense_irrationals.inter_open_nonempty (interior t₁)
    isOpen_interior ⟨z.1, mem_interior_iff_mem_nhds.2 ht₁⟩
  have hD' : ∀ n, Dense ((fun g : ℕ → ℕ ↦ (x, g)) ⁻¹' D n) := fun n ↦ by
    refine dense_iff_inter_open.2 fun O hO ⟨g, hg⟩ ↦ ?_
    obtain ⟨p, ⟨hpx, hpO⟩, hpD⟩ := (hDd n).inter_open_nonempty ({x} ×ˢ O)
      ((MichaelLine.isOpen_singleton hx).prod hO) ⟨(x, g), rfl, hg⟩
    refine ⟨p.2, hpO, ?_⟩
    rw [mem_preimage, show (x, p.2) = p from Prod.ext (mem_singleton_iff.1 hpx).symm rfl]
    exact hpD
  have hBaire := dense_iInter_of_isOpen_nat
    (fun n ↦ (hDo n).preimage (Continuous.prodMk_right x)) hD'
  obtain ⟨g, hg1, hg2⟩ := hBaire.inter_open_nonempty (interior t₂) isOpen_interior
    ⟨z.2, mem_interior_iff_mem_nhds.2 ht₂⟩
  exact ⟨(x, g), hts ⟨interior_subset hx1, interior_subset hg1⟩,
    mem_iInter.2 fun n ↦ mem_iInter.1 hg2 n⟩⟩

On this site: Michael line times the irrationals is a Baire space

On this site: Space: Michael line times the irrationals