Lean library · module TopologyByExample.Spaces.ArensSquare

The Arens square

Source file

In this file we define TopologyByExample.ArensSquare, the Arens square, as a subspace of the Arens plane TopologyByExample.ArensPlane. Its points are

  • the corners (0, 0) and (1, 0);
  • the points (a, b) of the open unit square with rational coordinates and a ≠ 1/2;
  • the points (1/2, r √2) with r rational and 0 < r √2 < 1.

The rational points have their Euclidean neighbourhoods; a basic neighbourhood of (0, 0) is the corner together with the rational points with x < 1/4 and y < ε, and similarly for (1, 0) with 3/4 < x; a basic neighbourhood of (1/2, r √2) is the set of points with 1/4 < x < 3/4 and height within ε of r √2.

The space is Hausdorff, but it is not Urysohn: the closures of any neighbourhoods of the rational points (1/3, 1/2) and (2/3, 1/2) both contain the points (1/2, r √2) with r √2 near 1/2. Continuous real functions take the same value at the two corners. The space is countable, second countable, semiregular and totally disconnected, has no isolated point, and is not pseudocompact.

Main definitions

Main statements

Tags

Arens square, Urysohn space, T₂½, semiregular, counterexample

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

definition arensSet

TopologyByExample.arensSet

The points of the Arens square in the Arens plane: the two corners, the rational points of the open unit square off the line x = 1/2, and the points (1/2, r √2) with r rational and 0 < r √2 < 1.

def arensSet : Set ArensPlane
Definition
:=
  {z | z = ArensPlane.mk 0 0 ∨ z = ArensPlane.mk 1 0 ∨
    (∃ a b : ℚ, z = ArensPlane.mk a b ∧ 0 < (a : ℝ) ∧ (a : ℝ) < 1 ∧ 0 < (b : ℝ) ∧ (b : ℝ) < 1 ∧
      (a : ℝ) ≠ 1 / 2) ∨
    ∃ r : ℚ, z = ArensPlane.mk (1 / 2) (r * √2) ∧ 0 < r * √2 ∧ r * √2 < 1}

definition ArensSquare

TopologyByExample.ArensSquare

The Arens square.

def ArensSquare : Type
:= ↥arensSet

On this site: Space: Arens square

instance

The Arens square carries the subspace topology of the Arens plane.

instance : TopologicalSpace ArensSquare
Proof
:= inferInstanceAs (TopologicalSpace arensSet)

theorem countable_arensSet

TopologyByExample.ArensSquare.countable_arensSet

The set of points of the Arens square is countable.

theorem countable_arensSet : arensSet.Countable
Proof
:= by
  refine (((countable_singleton (ArensPlane.mk 0 0)).union
    (countable_singleton (ArensPlane.mk 1 0))).union
    ((countable_range fun p : ℚ × ℚ ↦ ArensPlane.mk p.1 p.2).union
      (countable_range fun r : ℚ ↦ ArensPlane.mk (1 / 2) (r * √2)))).mono ?_
  rintro z (h | h | ⟨a, b, h, -⟩ | ⟨r, h, -⟩)
  · exact .inl (.inl h)
  · exact .inl (.inr h)
  · exact .inr (.inl ⟨(a, b), h.symm⟩)
  · exact .inr (.inr ⟨r, h.symm⟩)

theorem ratCast_ne_mul_sqrt_two

TopologyByExample.ArensSquare.ratCast_ne_mul_sqrt_two

A rational multiple r √2 is never a rational number other than 0.

theorem ratCast_ne_mul_sqrt_two {b r : ℚ} (h : 0 < r * √2) : (b : ℝ) ≠ r * √2
Proof
:= by
  have hr : r ≠ 0 := by rintro rfl; simp at h
  exact fun hb ↦ (irrational_sqrt_two.ratCast_mul hr).ne_rat b hb.symm

theorem isArensSet

TopologyByExample.ArensSquare.isArensSet

The Arens square satisfies the hypotheses on subspaces of the Arens plane: its rational points are dense, and no rational height is a rational multiple of √2.

theorem isArensSet : ArensPlane.IsArensSet arensSet
Proof
where
  left_mem := .inl rfl
  right_mem := .inr (.inl rfl)
  mem := by
    rintro z (h | h | ⟨a, b, rfl, h1, h2, h3, h4, -⟩ | ⟨r, rfl, h1, h2⟩)
    · exact .inl h
    · exact .inr (.inl h)
    · exact .inr (.inr ⟨h1, h2, h3, h4⟩)
    · exact .inr (.inr ⟨by norm_num, by norm_num, h1, h2⟩)
  dense := by
    intro a b c d ha hab hb hc hcd hd
    obtain ⟨q₁, hq₁a, hq₁b⟩ := exists_rat_btwn hab
    obtain ⟨q₂, hq₂a, hq₂b⟩ := exists_rat_btwn hq₁b
    obtain ⟨r, hrc, hrd⟩ := exists_rat_btwn hcd
    obtain ⟨q, hqa, hqb, hq⟩ : ∃ q : ℚ, a < q ∧ (q : ℝ) < b ∧ (q : ℝ) ≠ 1 / 2 := by
      by_cases h : (q₁ : ℝ) = 1 / 2
      · exact ⟨q₂, hq₁a.trans hq₂a, hq₂b, by linarith⟩
      · exact ⟨q₁, hq₁a, hq₁b, h⟩
    exact ⟨ArensPlane.mk q r, .inr (.inr (.inl ⟨q, r, rfl, by linarith, by linarith, by linarith,
      by linarith, hq⟩)), hqa, hqb, hrc, hrd, hq⟩
  y_ne := by
    rintro z hz w (h | h | ⟨a, b, rfl, -, -, -, -, hab⟩ | ⟨r, rfl, hr, -⟩) hzx hwx
    · simp [h] at hwx
    · norm_num [h] at hwx
    · exact absurd hwx hab
    rcases hz with h | h | ⟨a, b, rfl, -, -, -, -, -⟩ | ⟨r', rfl, -, -⟩
    · simp only [h, y_mk]; exact hr.ne
    · simp only [h, y_mk]; exact hr.ne
    · exact ratCast_ne_mul_sqrt_two hr
    · exact absurd rfl hzx

instance

The Arens square is countable.

instance : Countable ArensSquare
Proof
:= countable_arensSet.to_subtype

instance

The Arens square is first countable, as a subspace of the first countable Arens plane.

instance : FirstCountableTopology ArensSquare
Proof
:=
  inferInstanceAs (FirstCountableTopology arensSet)

instance

The Arens square is second countable: it is countable and first countable.

instance : SecondCountableTopology ArensSquare
Proof
:= inferInstance

instance

The Arens square is Hausdorff.

instance : T2Space ArensSquare
Proof
:= isArensSet.t2Space

instance instSemiregularSpace

TopologyByExample.ArensSquare.instSemiregularSpace

The Arens square is semiregular.

instance instSemiregularSpace : SemiregularSpace ArensSquare
Proof
:= isArensSet.semiregularSpace

On this site: Arens square is semiregular

instance instTotallyDisconnectedSpace

TopologyByExample.ArensSquare.instTotallyDisconnectedSpace

The Arens square is totally disconnected.

instance instTotallyDisconnectedSpace : TotallyDisconnectedSpace ArensSquare
Proof
:=
  isArensSet.totallyDisconnectedSpace countable_arensSet

theorem not_hasIsolatedPoint

TopologyByExample.ArensSquare.not_hasIsolatedPoint

The Arens square has no isolated point.

theorem not_hasIsolatedPoint : ¬HasIsolatedPoint ArensSquare
Proof
:= isArensSet.not_hasIsolatedPoint

On this site: Arens square has no isolated point

theorem not_pseudocompactSpace

TopologyByExample.ArensSquare.not_pseudocompactSpace

The Arens square is not pseudocompact.

theorem not_pseudocompactSpace : ¬PseudocompactSpace ArensSquare
Proof
:=
  isArensSet.not_pseudocompactSpace countable_arensSet

On this site: Arens square is not pseudocompact

definition p₁

TopologyByExample.ArensSquare.p₁

The rational point (1/3, 1/2).

noncomputable def p₁ : ArensSquare
:=
  ⟨ArensPlane.mk (1 / 3) (1 / 2), .inr (.inr (.inl ⟨1 / 3, 1 / 2, by push_cast; rfl,
    by norm_num, by norm_num, by norm_num, by norm_num, by norm_num⟩))⟩

definition p₂

TopologyByExample.ArensSquare.p₂

The rational point (2/3, 1/2).

noncomputable def p₂ : ArensSquare
:=
  ⟨ArensPlane.mk (2 / 3) (1 / 2), .inr (.inr (.inl ⟨2 / 3, 1 / 2, by push_cast; rfl,
    by norm_num, by norm_num, by norm_num, by norm_num, by norm_num⟩))⟩

theorem exists_basic_subset_of_mem_nhds

TopologyByExample.ArensSquare.exists_basic_subset_of_mem_nhds

Every neighbourhood of (1/3, 1/2) or of (2/3, 1/2) contains a basic neighbourhood of radius at most 1/8.

theorem exists_basic_subset_of_mem_nhds {p : ArensSquare} {s : Set ArensSquare} (hs : s ∈ 𝓝 p) :
    ∃ ε > 0, ε ≤ 1 / 8 ∧ ((↑) : arensSet → ArensPlane) ⁻¹' basic p.val ε ⊆ s
Proof
:= by
  obtain ⟨ε, hε, h⟩ := (IsArensSet.hasBasis_nhds_sub (A := arensSet) p).mem_iff.1 hs
  exact ⟨min ε (1 / 8), lt_min hε (by norm_num), min_le_right _ _,
    (preimage_mono (basic_mono _ (min_le_left _ _))).trans h⟩

theorem closure_inter_closure_nonempty

TopologyByExample.ArensSquare.closure_inter_closure_nonempty

The closures of any neighbourhoods of (1/3, 1/2) and (2/3, 1/2) meet: for small ε, the points (1/2, r √2) with |r √2 - 1/2| < ε lie in the closures of the basic neighbourhoods of radius ε of both.

theorem closure_inter_closure_nonempty {s t : Set ArensSquare} (hs : s ∈ 𝓝 p₁) (ht : t ∈ 𝓝 p₂) :
    (closure s ∩ closure t).Nonempty
Proof
:= by
  obtain ⟨ε, hε, hε8, hεs⟩ := exists_basic_subset_of_mem_nhds hs
  obtain ⟨δ, hδ, hδ8, hδt⟩ := exists_basic_subset_of_mem_nhds ht
  set η := min ε δ
  have hη : 0 < η := lt_min hε hδ
  have hη8 : η ≤ 1 / 8 := (min_le_left _ _).trans hε8
  have hs2 : (0 : ℝ) < √2 := by positivity
  obtain ⟨r, hr1, hr2⟩ := exists_rat_btwn (div_lt_div_of_pos_right
    (show (1 / 2 : ℝ) - η < 1 / 2 + η by linarith) hs2)
  rw [div_lt_iff₀ hs2] at hr1
  rw [lt_div_iff₀ hs2] at hr2
  have hm : ArensPlane.mk (1 / 2) (r * √2) ∈ arensSet :=
    .inr (.inr (.inr ⟨r, rfl, by linarith, by linarith⟩))
  set m : ArensSquare := ⟨_, hm⟩
  have hmy : |m.val.y - 1 / 2| < η := abs_lt.2 ⟨by simp [m]; linarith, by simp [m]; linarith⟩
  refine ⟨m, closure_mono hεs ?_, closure_mono hδt ?_⟩
  · exact isArensSet.mid_mem_closure_basic_ord m rfl
      (show (0 : ℝ) < r * √2 by linarith) (show (r : ℝ) * √2 < 1 by linarith)
      (p := ArensPlane.mk (1 / 3) (1 / 2)) (by norm_num) (by norm_num)
      (by norm_num) (by norm_num) (by simpa using hmy.trans_le (min_le_left _ _))
  · exact isArensSet.mid_mem_closure_basic_ord m rfl
      (show (0 : ℝ) < r * √2 by linarith) (show (r : ℝ) * √2 < 1 by linarith)
      (p := ArensPlane.mk (2 / 3) (1 / 2)) (by norm_num) (by norm_num)
      (by norm_num) (by norm_num) (by simpa using hmy.trans_le (min_le_right _ _))

On this site: Arens square: Two rational points whose neighbourhoods have meeting closures

theorem not_t25Space

TopologyByExample.ArensSquare.not_t25Space

The Arens square is not Urysohn: the points (1/3, 1/2) and (2/3, 1/2) have no neighbourhoods with disjoint closures.

theorem not_t25Space : ¬T25Space ArensSquare
Proof
:= fun _ ↦ by
  have hne : p₁ ≠ p₂ := fun h ↦ by
    have := congrArg (fun p : ArensSquare ↦ p.val.x) h
    simp [p₁, p₂] at this
    norm_num at this
  obtain ⟨s, hs, t, ht, hst⟩ := exists_nhds_disjoint_closure hne
  exact (closure_inter_closure_nonempty hs ht).ne_empty hst.inter_eq

On this site: Arens square is not Urysohn

theorem eq_of_continuous

TopologyByExample.ArensSquare.eq_of_continuous

Continuous real functions on the Arens square take the same value at the two corners.

theorem eq_of_continuous {f : ArensSquare → ℝ} (hf : Continuous f) :
    f ⟨ArensPlane.mk 0 0, isArensSet.left_mem⟩ = f ⟨ArensPlane.mk 1 0, isArensSet.right_mem⟩
Proof
:= by
  refine isArensSet.eq_of_continuous_corners ?_ ?_ ?_ hf
  · intro c d hc hcd hd
    obtain ⟨r, hrc, hrd⟩ := exists_rat_btwn hcd
    exact ⟨ArensPlane.mk (1 / 4) r, .inr (.inr (.inl ⟨1 / 4, r, by push_cast; rfl, by norm_num,
      by norm_num, by linarith, by linarith, by norm_num⟩)), rfl, hrc, hrd⟩
  · intro c d hc hcd hd
    obtain ⟨r, hrc, hrd⟩ := exists_rat_btwn hcd
    exact ⟨ArensPlane.mk (3 / 4) r, .inr (.inr (.inl ⟨3 / 4, r, by push_cast; rfl, by norm_num,
      by norm_num, by linarith, by linarith, by norm_num⟩)), rfl, hrc, hrd⟩
  · intro η hη
    have hs2 : (0 : ℝ) < √2 := by positivity
    obtain ⟨r, hr1, hr2⟩ := exists_rat_btwn (div_pos (lt_min hη one_pos) hs2)
    rw [lt_div_iff₀ hs2] at hr2
    have hr0 : 0 < (r : ℝ) * √2 := mul_pos hr1 hs2
    exact ⟨_, .inr (.inr (.inr ⟨r, rfl, hr0, by linarith [min_le_right η 1]⟩)), rfl, hr0,
      show (r : ℝ) * √2 < η by linarith [min_le_left η 1]⟩

On this site: Arens square: Continuous real functions take the same value at the two corners