Lean library · module TopologyByExample.Spaces.ScottArensSquare
Scott's modification of the Arens square
In this file we define TopologyByExample.ScottArensSquare, Brian Scott's modification of the
Arens square, as a subspace of the Arens plane TopologyByExample.ArensPlane. The rationals of
(0, 1) are partitioned into dense sets column q, one for each rational q ∈ (0, 1): fixing a
bijection q ↦ prime q from these rationals onto the primes, column q is the set of rationals
in (0, 1) whose denominator in lowest terms has least prime factor prime q. The points of the
space are the corners (0, 0) and (1, 0) and the points (q, r) with r ∈ column q; so no two
points off the axis have the same height. The topology is that of the Arens plane: the points with
q = 1/2 have horizontal strips as basic neighbourhoods, the corners the lower left and lower
right quarters of the square, and the other points their Euclidean neighbourhoods.
Since distinct points off the axis have different heights, the space is Urysohn. But continuous real functions take the same value at the two corners, so it is not functionally Hausdorff. It is countable, second countable, semiregular and totally disconnected, has no isolated point, and is not pseudocompact.
Main definitions
TopologyByExample.ScottArensSquare.column: the partition of the rationals of(0, 1).TopologyByExample.scottSet: the points of the space in the Arens plane.TopologyByExample.ScottArensSquare: the space.
Main statements
TopologyByExample.ScottArensSquare.isArensSet: the set satisfies the hypotheses ofTopologyByExample.ArensPlane.IsArensSet.- Instances:
Countable,SecondCountableTopology,T25Space,SemiregularSpace,TotallyDisconnectedSpace. TopologyByExample.ScottArensSquare.eq_of_continuous: continuous real functions agree at the corners.TopologyByExample.ScottArensSquare.not_functionallyHausdorffSpace,TopologyByExample.ScottArensSquare.not_hasIsolatedPoint,TopologyByExample.ScottArensSquare.not_pseudocompactSpace.
Tags
Arens square, Urysohn space, functionally Hausdorff, completely Hausdorff, 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
The partition of the rationals of (0, 1)
definition Index
TopologyByExample.ScottArensSquare.Index
The rationals strictly between 0 and 1, indexing the columns.
def Index : Type
:= {q : ℚ // 0 < q ∧ q < 1}
instance
The index set is encodable.
instance : Encodable Index
Proof
:= inferInstanceAs (Encodable {q : ℚ // 0 < q ∧ q < 1})
instance
The index set is infinite: it contains 1 / (n + 2) for every n.
instance : Infinite Index
Proof
:= by
refine Infinite.of_injective (fun n : ℕ ↦ (⟨1 / (n + 2), by positivity, ?_⟩ : Index)) ?_
· rw [div_lt_one (by positivity)]; linarith
· intro m n h
have := congrArg Subtype.val h
simp only [one_div, inv_inj] at this
exact_mod_cast add_right_cancel this
instance
An enumeration of the index set.
noncomputable instance : Denumerable Index
Proof
:= Denumerable.ofEncodableOfInfinite Index
definition prime
TopologyByExample.ScottArensSquare.prime
The prime attached to a rational of (0, 1): a bijection onto the primes.
noncomputable def prime (q : Index) : ℕ
:= Nat.nth Nat.Prime (Denumerable.eqv Index q)
theorem prime_prime
TopologyByExample.ScottArensSquare.prime_prime
The number prime q is prime.
theorem prime_prime (q : Index) : (prime q).Prime
Proof
:= Nat.prime_nth_prime _
theorem prime_injective
TopologyByExample.ScottArensSquare.prime_injective
Distinct rationals have distinct primes.
theorem prime_injective : Injective prime
Proof
:=
(Nat.nth_injective Nat.infinite_setOfPred_prime).comp (Denumerable.eqv Index).injective
definition column
TopologyByExample.ScottArensSquare.column
The column of heights over the rational q: the rationals of (0, 1) whose denominator has
least prime factor prime q (empty unless 0 < q < 1).
def column (q : ℚ) : Set ℚ
:=
{r | 0 < r ∧ r < 1 ∧ ∃ h : 0 < q ∧ q < 1, r.den.minFac = prime ⟨q, h⟩}
theorem eq_of_mem_column
TopologyByExample.ScottArensSquare.eq_of_mem_column
Columns over distinct rationals are disjoint.
theorem eq_of_mem_column {q q' r : ℚ} (h : r ∈ column q) (h' : r ∈ column q') : q = q'
Proof
:= by
obtain ⟨-, -, hq, hr⟩ := h
obtain ⟨-, -, hq', hr'⟩ := h'
exact congrArg Subtype.val (prime_injective (hr.symm.trans hr'))
theorem exists_minFac_den_eq
TopologyByExample.ScottArensSquare.exists_minFac_den_eq
For a prime P, the rationals whose denominator has least prime factor P are dense in
ℝ: an interval of length d - c contains two consecutive fractions n / P ^ K, and one of
them has n prime to P, so its denominator is P ^ K.
theorem exists_minFac_den_eq {P : ℕ} (hP : P.Prime) {c d : ℝ} (hcd : c < d) :
∃ r : ℚ, c < r ∧ (r : ℝ) < d ∧ r.den.minFac = P
Proof
:= by
have hP2 : (2 : ℝ) ≤ P := by exact_mod_cast hP.two_le
obtain ⟨k, hk⟩ := exists_pow_lt_of_lt_one (show 0 < (d - c) / 2 by linarith)
(show (1 / P : ℝ) < 1 by rw [div_lt_one (by linarith)]; linarith)
set D : ℕ := P ^ (k + 1)
have hD : (0 : ℝ) < D := Nat.cast_pos.2 (pow_pos hP.pos _)
have hD' : 2 / (D : ℝ) < d - c := by
have : (1 / P : ℝ) ^ (k + 1) ≤ (1 / P) ^ k :=
pow_le_pow_of_le_one (by positivity) (by rw [div_le_one (by linarith)]; linarith)
(Nat.le_succ k)
have hDeq : (1 / P : ℝ) ^ (k + 1) = 1 / D := by simp [D, one_div, inv_pow]
rw [hDeq] at this
have : 2 / (D : ℝ) = 2 * (1 / D) := by ring
linarith
set n₀ : ℤ := ⌊c * D⌋ + 1
have h₀ : c < n₀ / D := by
rw [lt_div_iff₀ hD]
have := Int.lt_floor_add_one (c * D)
push_cast [n₀]; linarith
have h₁ : ((n₀ + 1 : ℤ) : ℝ) / D < d := by
have h2 : ((n₀ + 1 : ℤ) : ℝ) / D ≤ c + 2 / D := by
rw [div_le_iff₀ hD, add_mul, div_mul_cancel₀ _ hD.ne']
have := Int.floor_le (c * D)
push_cast [n₀]; linarith
linarith
-- One of `n₀` and `n₀ + 1` is prime to `P`.
obtain ⟨n, hn₀, hn₁, hn⟩ : ∃ n : ℤ, n₀ ≤ n ∧ n ≤ n₀ + 1 ∧ ¬(P : ℤ) ∣ n := by
by_cases h : (P : ℤ) ∣ n₀
· refine ⟨n₀ + 1, by omega, le_rfl, fun h' ↦ ?_⟩
have : (P : ℤ) ∣ 1 := by simpa using (Int.dvd_sub h' h)
have := Int.eq_one_of_dvd_one (by positivity) this
exact hP.one_lt.ne' (by exact_mod_cast this)
· exact ⟨n₀, le_rfl, by omega, h⟩
have hcop : Nat.Coprime n.natAbs (D : ℤ).natAbs := by
rw [Int.natAbs_natCast]
refine Nat.Coprime.pow_right _ (Nat.Coprime.symm ((Nat.Prime.coprime_iff_not_dvd hP).2 ?_))
rwa [← Int.natCast_dvd]
refine ⟨n / D, ?_, ?_, ?_⟩
· push_cast
refine h₀.trans_le ?_
gcongr
· push_cast
refine lt_of_le_of_lt ?_ h₁
gcongr
· have := Rat.den_div_eq_of_coprime (a := n) (b := D)
(by exact_mod_cast pow_pos hP.pos _) hcop
have hden : ((n : ℚ) / (D : ℚ)).den = D := by exact_mod_cast this
rw [hden]
exact hP.pow_minFac (Nat.succ_ne_zero k)
theorem exists_mem_column
TopologyByExample.ScottArensSquare.exists_mem_column
Each column over a rational of (0, 1) is dense in (0, 1).
theorem exists_mem_column {q : ℚ} (hq0 : 0 < q) (hq1 : q < 1) {c d : ℝ} (hc : 0 ≤ c)
(hcd : c < d) (hd : d ≤ 1) : ∃ r ∈ column q, c < r ∧ (r : ℝ) < d
Proof
:= by
obtain ⟨r, h1, h2, h3⟩ := exists_minFac_den_eq (prime_prime ⟨q, hq0, hq1⟩) hcd
exact ⟨r, ⟨by exact_mod_cast hc.trans_lt h1, by exact_mod_cast h2.trans_le hd, ⟨hq0, hq1⟩, h3⟩,
h1, h2⟩
definition scottSet
TopologyByExample.scottSet
The points of Scott's modification of the Arens square in the Arens plane: the two corners and
the points (q, r) with r in the column over q.
def scottSet : Set ArensPlane
:=
{z | z = ArensPlane.mk 0 0 ∨ z = ArensPlane.mk 1 0 ∨
∃ q r : ℚ, z = ArensPlane.mk q r ∧ r ∈ column q}
definition ScottArensSquare
TopologyByExample.ScottArensSquare
Scott's modification of the Arens square.
def ScottArensSquare : Type
:= ↥scottSet
On this site: Space: Scott's modified Arens square
instance
The space carries the subspace topology of the Arens plane.
instance : TopologicalSpace ScottArensSquare
Proof
:= inferInstanceAs (TopologicalSpace scottSet)
theorem countable_scottSet
TopologyByExample.ScottArensSquare.countable_scottSet
The set of points of the space is countable.
theorem countable_scottSet : scottSet.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)).mono ?_
rintro z (h | h | ⟨q, r, h, -⟩)
· exact .inl (.inl h)
· exact .inl (.inr h)
· exact .inr ⟨(q, r), h.symm⟩
theorem bounds_of_mem_column
TopologyByExample.ScottArensSquare.bounds_of_mem_column
A point (q, r) with r in the column over q lies in the open unit square.
theorem bounds_of_mem_column {q r : ℚ} (h : r ∈ column q) :
(0 : ℝ) < q ∧ (q : ℝ) < 1 ∧ (0 : ℝ) < r ∧ (r : ℝ) < 1
Proof
:= by
obtain ⟨h1, h2, ⟨hq0, hq1⟩, -⟩ := h
exact ⟨by exact_mod_cast hq0, by exact_mod_cast hq1, by exact_mod_cast h1, by exact_mod_cast h2⟩
theorem isArensSet
TopologyByExample.ScottArensSquare.isArensSet
The space satisfies the hypotheses on subspaces of the Arens plane: the columns are dense,
and the column over 1/2 is disjoint from the others.
theorem isArensSet : ArensPlane.IsArensSet scottSet
Proof
where
left_mem := .inl rfl
right_mem := .inr (.inl rfl)
mem := by
rintro z (h | h | ⟨q, r, rfl, hr⟩)
· exact .inl h
· exact .inr (.inl h)
· exact .inr (.inr (bounds_of_mem_column hr))
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 ⟨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⟩
obtain ⟨r, hr, hrc, hrd⟩ := exists_mem_column (q := q) (by exact_mod_cast ha.trans_lt hqa)
(by exact_mod_cast hqb.trans_le hb) hc hcd hd
exact ⟨ArensPlane.mk q r, .inr (.inr ⟨q, r, rfl, hr⟩), hqa, hqb, hrc, hrd, hq⟩
y_ne := by
rintro z hz w (h | h | ⟨q', r', rfl, hr'⟩) hzx hwx
· norm_num [h] at hwx
· norm_num [h] at hwx
rcases hz with h | h | ⟨q, r, rfl, hr⟩
· simp only [h, y_mk]; exact (bounds_of_mem_column hr').2.2.1.ne
· simp only [h, y_mk]; exact (bounds_of_mem_column hr').2.2.1.ne
· intro hrr
simp only [y_mk] at hrr
have hrr' : r = r' := by exact_mod_cast hrr
subst hrr'
exact hzx (by rw [x_mk, eq_of_mem_column hr hr']; exact hwx)
instance
The space is countable.
instance : Countable ScottArensSquare
Proof
:= countable_scottSet.to_subtype
instance
The space is first countable, as a subspace of the first countable Arens plane.
instance : FirstCountableTopology ScottArensSquare
Proof
:=
inferInstanceAs (FirstCountableTopology scottSet)
instance
The space is second countable: it is countable and first countable.
instance : SecondCountableTopology ScottArensSquare
Proof
:= inferInstance
instance instT25Space
TopologyByExample.ScottArensSquare.instT25Space
The space is Urysohn: distinct points off the axis have different heights.
instance instT25Space : T25Space ScottArensSquare
Proof
:= by
refine isArensSet.t25Space ?_
intro z hz w hw hzw h0
rcases hz with h | h | ⟨q, r, rfl, hr⟩
· rw [h] at h0; simp at h0
· rw [h] at h0; simp at h0
rcases hw with h | h | ⟨q', r', rfl, hr'⟩
· rw [h] at hzw; simp only [y_mk] at hzw
exact absurd hzw (bounds_of_mem_column hr).2.2.1.ne'
· rw [h] at hzw; simp only [y_mk] at hzw
exact absurd hzw (bounds_of_mem_column hr).2.2.1.ne'
· simp only [y_mk] at hzw
have hrr' : r = r' := by exact_mod_cast hzw
subst hrr'
rw [eq_of_mem_column hr hr']
On this site: Scott's modified Arens square is Urysohn
instance instSemiregularSpace
TopologyByExample.ScottArensSquare.instSemiregularSpace
The space is semiregular.
instance instSemiregularSpace : SemiregularSpace ScottArensSquare
Proof
:= isArensSet.semiregularSpace
On this site: Scott's modified Arens square is semiregular
instance instTotallyDisconnectedSpace
TopologyByExample.ScottArensSquare.instTotallyDisconnectedSpace
The space is totally disconnected.
instance instTotallyDisconnectedSpace : TotallyDisconnectedSpace ScottArensSquare
Proof
:=
isArensSet.totallyDisconnectedSpace countable_scottSet
theorem not_hasIsolatedPoint
TopologyByExample.ScottArensSquare.not_hasIsolatedPoint
The space has no isolated point.
theorem not_hasIsolatedPoint : ¬HasIsolatedPoint ScottArensSquare
Proof
:=
isArensSet.not_hasIsolatedPoint
On this site: Scott's modified Arens square has no isolated point
theorem not_pseudocompactSpace
TopologyByExample.ScottArensSquare.not_pseudocompactSpace
The space is not pseudocompact.
theorem not_pseudocompactSpace : ¬PseudocompactSpace ScottArensSquare
Proof
:=
isArensSet.not_pseudocompactSpace countable_scottSet
On this site: Scott's modified Arens square is not pseudocompact
theorem exists_mem_vertical
TopologyByExample.ScottArensSquare.exists_mem_vertical
The points of a column over a rational of (0, 1) other than 1/2 give points of the space
at any range of heights.
theorem exists_mem_vertical {q : ℚ} (hq0 : 0 < q) (hq1 : q < 1) {c d : ℝ} (hc : 0 ≤ c)
(hcd : c < d) (hd : d ≤ 1) :
∃ u ∈ scottSet, u.x = q ∧ c < u.y ∧ u.y < d
Proof
:= by
obtain ⟨r, hr, hrc, hrd⟩ := exists_mem_column hq0 hq1 hc hcd hd
exact ⟨ArensPlane.mk q r, .inr (.inr ⟨q, r, rfl, hr⟩), rfl, hrc, hrd⟩
theorem eq_of_continuous
TopologyByExample.ScottArensSquare.eq_of_continuous
Continuous real functions on the space take the same value at the two corners.
theorem eq_of_continuous {f : ScottArensSquare → ℝ} (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 ⟨u, hu, hux, h⟩ := exists_mem_vertical (q := 1 / 4) (by norm_num) (by norm_num) hc hcd hd
exact ⟨u, hu, by rw [hux]; push_cast; rfl, h⟩
· intro c d hc hcd hd
obtain ⟨u, hu, hux, h⟩ := exists_mem_vertical (q := 3 / 4) (by norm_num) (by norm_num) hc hcd hd
exact ⟨u, hu, by rw [hux]; push_cast; rfl, h⟩
· intro η hη
obtain ⟨u, hu, hux, h1, h2⟩ := exists_mem_vertical (q := 1 / 2) (by norm_num) (by norm_num)
le_rfl (lt_min hη one_pos) (min_le_right _ _)
exact ⟨u, hu, by rw [hux]; push_cast; rfl, h1, h2.trans_le (min_le_left _ _)⟩
On this site: Scott's modified Arens square: Continuous real functions take the same value at the two corners
theorem not_functionallyHausdorffSpace
TopologyByExample.ScottArensSquare.not_functionallyHausdorffSpace
The space is not functionally Hausdorff: no continuous function to the unit interval takes
the values 0 and 1 at the two corners.
theorem not_functionallyHausdorffSpace : ¬FunctionallyHausdorffSpace ScottArensSquare
Proof
:= by
intro h
have hne : (⟨ArensPlane.mk 0 0, isArensSet.left_mem⟩ : ScottArensSquare) ≠
⟨ArensPlane.mk 1 0, isArensSet.right_mem⟩ := fun h ↦ by
have := congrArg (fun p : ScottArensSquare ↦ p.val.x) h
simp at this
obtain ⟨f, hf0, hf1⟩ := h.exists_continuousMap _ _ hne
have := eq_of_continuous (f := fun p ↦ (f p : ℝ)) (continuous_subtypeVal.comp f.continuous)
simp only [hf0, hf1] at this
norm_num at this
On this site: Scott's modified Arens square is not functionally Hausdorff