Lean library · module TopologyByExample.Spaces.AlexandroffSquare

The Alexandroff square

Source file

The Alexandroff square is the unit square [0, 1] × [0, 1] with the following topology. A point (x, y) off the diagonal has as basic neighbourhoods the open vertical segments {x} × (y - ε, y + ε) with the diagonal removed; a point (s, s) of the diagonal has as basic neighbourhoods the horizontal strips [0, 1] × (s - ε, s + ε) with finitely many vertical lines {x} × [0, 1], x ≠ s, removed.

We define it, on the type synonym TopologyByExample.AlexandroffSquare of unitInterval × unitInterval, as the topology generated by the horizontal strips [0, 1] × U (U open), the complements of the vertical lines, and the vertical lines with their diagonal point removed; the finite intersections of these containing a point are exactly the basic neighbourhoods above (or contain one).

Main statements

References

  • L. A. Steen and J. A. Seebach, Counterexamples in Topology, Example 101.

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 AlexandroffSquare

TopologyByExample.AlexandroffSquare

The Alexandroff square: [0, 1] × [0, 1] with the topology TopologyByExample.AlexandroffSquare.instTopologicalSpace.

def AlexandroffSquare : Type
:= unitInterval × unitInterval

On this site: Space: Alexandroff square

definition mk

TopologyByExample.AlexandroffSquare.mk

The point (x, y).

def mk (x y : unitInterval) : AlexandroffSquare
:= (x, y)

instance

The Alexandroff square is nonempty.

instance : Nonempty AlexandroffSquare
Proof
:= ⟨mk 0 0⟩

definition fst

TopologyByExample.AlexandroffSquare.fst

The first coordinate.

def fst (p : AlexandroffSquare) : unitInterval
:= Prod.fst (α := unitInterval) p

definition snd

TopologyByExample.AlexandroffSquare.snd

The second coordinate.

def snd (p : AlexandroffSquare) : unitInterval
:= Prod.snd (β := unitInterval) p

theorem fst_mk

TopologyByExample.AlexandroffSquare.fst_mk

@[simp] theorem fst_mk (x y : unitInterval) : fst (mk x y) = x
Proof
:= rfl

theorem snd_mk

TopologyByExample.AlexandroffSquare.snd_mk

@[simp] theorem snd_mk (x y : unitInterval) : snd (mk x y) = y
Proof
:= rfl

theorem mk_fst_snd

TopologyByExample.AlexandroffSquare.mk_fst_snd

@[simp] theorem mk_fst_snd (p : AlexandroffSquare) : mk (fst p) (snd p) = p
Proof
:= rfl

theorem ext_iff'

TopologyByExample.AlexandroffSquare.ext_iff'

theorem ext_iff' {p q : AlexandroffSquare} : p = q ↔ fst p = fst q ∧ snd p = snd q
Proof
:=
  Prod.ext_iff

theorem mk_inj

TopologyByExample.AlexandroffSquare.mk_inj

@[simp] theorem mk_inj {x y x' y' : unitInterval} : mk x y = mk x' y' ↔ x = x' ∧ y = y'
Proof
:=
  Prod.ext_iff

definition generators

TopologyByExample.AlexandroffSquare.generators

The generating open sets: horizontal strips [0, 1] × U, complements of vertical lines, and vertical lines with their diagonal point removed.

def generators : Set (Set AlexandroffSquare)
:=
  {s | ∃ U : Set unitInterval, IsOpen U ∧ s = snd ⁻¹' U} ∪ {s | ∃ x, s = {p | fst p ≠ x}} ∪
    {s | ∃ x, s = {p | fst p = x ∧ snd p ≠ x}}

instance instTopologicalSpace

TopologyByExample.AlexandroffSquare.instTopologicalSpace

The topology of the Alexandroff square.

instance instTopologicalSpace : TopologicalSpace AlexandroffSquare
Proof
:= generateFrom generators

theorem isOpen_snd_preimage

TopologyByExample.AlexandroffSquare.isOpen_snd_preimage

theorem isOpen_snd_preimage {U : Set unitInterval} (hU : IsOpen U) : IsOpen (snd ⁻¹' U)
Proof
:=
  isOpen_generateFrom_of_mem (.inl (.inl ⟨U, hU, rfl⟩))

theorem isOpen_fst_ne

TopologyByExample.AlexandroffSquare.isOpen_fst_ne

theorem isOpen_fst_ne (x : unitInterval) : IsOpen {p : AlexandroffSquare | fst p ≠ x}
Proof
:=
  isOpen_generateFrom_of_mem (.inl (.inr ⟨x, rfl⟩))

theorem isOpen_vertical

TopologyByExample.AlexandroffSquare.isOpen_vertical

theorem isOpen_vertical (x : unitInterval) :
    IsOpen {p : AlexandroffSquare | fst p = x ∧ snd p ≠ x}
Proof
:=
  isOpen_generateFrom_of_mem (.inr ⟨x, rfl⟩)

theorem tendsto_nhds_iff

TopologyByExample.AlexandroffSquare.tendsto_nhds_iff

Convergence in the Alexandroff square: it suffices to check the generating open sets.

theorem tendsto_nhds_iff {α : Type*} {m : α → AlexandroffSquare} {f : Filter α}
    {b : AlexandroffSquare} :
    Tendsto m f (𝓝 b) ↔ ∀ s ∈ generators, b ∈ s → m ⁻¹' s ∈ f
Proof
:=
  tendsto_nhds_generateFrom_iff

theorem continuous_snd

TopologyByExample.AlexandroffSquare.continuous_snd

The second coordinate is continuous.

theorem continuous_snd : Continuous snd
Proof
:=
  continuous_def.2 fun _ hU ↦ isOpen_snd_preimage hU

theorem continuous_vertical

TopologyByExample.AlexandroffSquare.continuous_vertical

Each vertical slice t ↦ (x, t) is continuous.

theorem continuous_vertical (x : unitInterval) : Continuous (mk x)
Proof
:= by
  refine continuous_generateFrom_iff.2 ?_
  rintro s ((⟨U, hU, rfl⟩ | ⟨x', rfl⟩) | ⟨x', rfl⟩)
  · exact hU
  · by_cases h : x = x'
    · convert isOpen_empty
      exact eq_empty_of_forall_notMem fun t ht ↦ ht h
    · convert isOpen_univ
      exact eq_univ_of_forall fun t ↦ h
  · by_cases h : x = x'
    · subst h
      convert isOpen_compl_singleton (x := x)
      ext t
      simp
    · convert isOpen_empty
      exact eq_empty_of_forall_notMem fun t ht ↦ h ht.1

theorem continuous_diagonal

TopologyByExample.AlexandroffSquare.continuous_diagonal

The diagonal t ↦ (t, t) is continuous.

theorem continuous_diagonal : Continuous fun t ↦ mk t t
Proof
:= by
  refine continuous_generateFrom_iff.2 ?_
  rintro s ((⟨U, hU, rfl⟩ | ⟨x', rfl⟩) | ⟨x', rfl⟩)
  · exact hU
  · exact isOpen_compl_singleton (x := x')
  · convert isOpen_empty
    exact eq_empty_of_forall_notMem fun t ht ↦ ht.2 ht.1

theorem tendsto_horizontal

TopologyByExample.AlexandroffSquare.tendsto_horizontal

Along the horizontal line at height s, points converge cofinitely to the diagonal point (s, s): every neighbourhood of (s, s) contains (x, s) for all but finitely many x.

theorem tendsto_horizontal (s : unitInterval) :
    Tendsto (fun x ↦ mk x s) cofinite (𝓝 (mk s s))
Proof
:= by
  refine tendsto_nhds_iff.2 ?_
  rintro g ((⟨U, hU, rfl⟩ | ⟨x', rfl⟩) | ⟨x', rfl⟩) hg
  · exact univ_mem' fun _ ↦ hg
  · exact (finite_singleton x').compl_mem_cofinite
  · exact absurd hg.1 hg.2

On this site: Alexandroff square: Horizontal lines converge to the diagonal

theorem isClosed_diagonal

TopologyByExample.AlexandroffSquare.isClosed_diagonal

The diagonal is closed: its complement is the union of the punctured vertical lines.

theorem isClosed_diagonal : IsClosed {p : AlexandroffSquare | fst p = snd p}
Proof
:= by
  refine isOpen_compl_iff.1 ?_
  convert isOpen_iUnion fun x ↦ isOpen_vertical x
  ext p
  simp only [mem_compl_iff, mem_ofPred_eq, mem_iUnion]
  exact ⟨fun h ↦ ⟨fst p, rfl, Ne.symm h⟩, fun ⟨x, hx, hne⟩ h ↦ hne (hx ▸ h.symm)⟩

Values

instance t2Space

TopologyByExample.AlexandroffSquare.t2Space

The Alexandroff square is Hausdorff.

instance t2Space : T2Space AlexandroffSquare
Proof
:= by
  refine ⟨fun p q hpq ↦ ?_⟩
  by_cases hsnd : snd p = snd q
  · have hfst : fst p ≠ fst q := fun h ↦ hpq (ext_iff'.2 ⟨h, hsnd⟩)
    by_cases hp : fst p = snd p
    · refine ⟨{r | fst r ≠ fst q}, {r | fst r = fst q ∧ snd r ≠ fst q}, isOpen_fst_ne _,
        isOpen_vertical _, hfst, ⟨rfl, fun h ↦ hfst (hp.trans (hsnd.trans h))⟩,
        disjoint_left.2 fun r hr hr' ↦ hr hr'.1⟩
    · refine ⟨{r | fst r = fst p ∧ snd r ≠ fst p}, {r | fst r ≠ fst p}, isOpen_vertical _,
        isOpen_fst_ne _, ⟨rfl, Ne.symm hp⟩, Ne.symm hfst,
        disjoint_left.2 fun r hr hr' ↦ hr' hr.1⟩
  · obtain ⟨U, V, hU, hV, hpU, hqV, hUV⟩ := t2_separation hsnd
    exact ⟨snd ⁻¹' U, snd ⁻¹' V, isOpen_snd_preimage hU, isOpen_snd_preimage hV, hpU, hqV,
      hUV.preimage snd⟩

On this site: Alexandroff square is Hausdorff

instance compactSpace

TopologyByExample.AlexandroffSquare.compactSpace

The Alexandroff square is compact.

An ultrafilter containing a vertical line converges, since the line is a continuous image of the compact interval. An ultrafilter containing no vertical line contains the complement of each, and converges to (y, y), where y is the limit of its second coordinates.

instance compactSpace : CompactSpace AlexandroffSquare
Proof
:= by
  refine ⟨isCompact_iff_ultrafilter_le_nhds.2 fun 𝒰 _ ↦ ?_⟩
  obtain ⟨y, -, hy⟩ := isCompact_univ.ultrafilter_le_nhds (𝒰.map snd) (by simp)
  by_cases h : ∃ x, {p : AlexandroffSquare | fst p = x} ∈ 𝒰
  · obtain ⟨x, hx⟩ := h
    have hx' : {p : AlexandroffSquare | fst p = x} ∈ (𝒰 : Filter AlexandroffSquare) := hx
    refine ⟨mk x y, mem_univ _, tendsto_nhds_iff.2 ?_⟩
    rintro g ((⟨U, hU, rfl⟩ | ⟨x', rfl⟩) | ⟨x', rfl⟩) hg
    · exact hy (hU.mem_nhds hg)
    · exact mem_of_superset hx' fun p hp h ↦ hg (hp.symm.trans h)
    · obtain ⟨rfl, hyx⟩ := hg
      exact mem_of_superset (inter_mem hx' (hy (isOpen_compl_singleton.mem_nhds hyx)))
        fun p hp ↦ ⟨hp.1, hp.2⟩
  · push Not at h
    refine ⟨mk y y, mem_univ _, tendsto_nhds_iff.2 ?_⟩
    rintro g ((⟨U, hU, rfl⟩ | ⟨x', rfl⟩) | ⟨x', rfl⟩) hg
    · exact hy (hU.mem_nhds hg)
    · exact Ultrafilter.compl_mem_iff_notMem.2 (h x')
    · exact absurd hg.1 hg.2

On this site: Alexandroff square is compact

instance seqCompactSpace

TopologyByExample.AlexandroffSquare.seqCompactSpace

The Alexandroff square is sequentially compact.

If infinitely many terms of a sequence lie on one vertical line, a subsequence converges along that line. Otherwise each vertical line contains only finitely many terms, and a subsequence whose second coordinates converge to y converges to (y, y).

instance seqCompactSpace : SeqCompactSpace AlexandroffSquare
Proof
:= by
  refine ⟨fun p _ ↦ ?_⟩
  by_cases h : ∃ x, ∃ᶠ n in atTop, fst (p n) = x
  · obtain ⟨x, hx⟩ := h
    obtain ⟨φ, hφ, hφx⟩ := extraction_of_frequently_atTop hx
    obtain ⟨y, ψ, hψ, hy⟩ := CompactSpace.tendsto_subseq (snd ∘ p ∘ φ)
    refine ⟨mk x y, mem_univ _, φ ∘ ψ, hφ.comp hψ, ?_⟩
    have : p ∘ φ ∘ ψ = mk x ∘ (snd ∘ p ∘ φ) ∘ ψ := by
      funext n
      simp only [Function.comp_apply]
      rw [← hφx (ψ n)]
      rfl
    rw [this]
    exact ((continuous_vertical x).tendsto y).comp hy
  · push Not at h
    obtain ⟨y, ψ, hψ, hy⟩ := CompactSpace.tendsto_subseq (snd ∘ p)
    refine ⟨mk y y, mem_univ _, ψ, hψ, tendsto_nhds_iff.2 ?_⟩
    rintro g ((⟨U, hU, rfl⟩ | ⟨x', rfl⟩) | ⟨x', rfl⟩) hg
    · exact hy (hU.mem_nhds hg)
    · exact hψ.tendsto_atTop (h x')
    · exact absurd hg.1 hg.2

On this site: Alexandroff square is sequentially compact

instance pathPreconnectedSpace

TopologyByExample.AlexandroffSquare.pathPreconnectedSpace

The Alexandroff square is path connected: a point (x, y) is joined to (x, x) along its vertical line, and diagonal points are joined along the diagonal.

instance pathPreconnectedSpace : PathPreconnectedSpace AlexandroffSquare
Proof
:= by
  have : PathConnectedSpace unitInterval := isPathConnected_iff_pathConnectedSpace.1
    ((convex_Icc (0 : ℝ) 1).isPathConnected (nonempty_Icc.2 zero_le_one))
  have hv (p : AlexandroffSquare) : Joined p (mk (fst p) (fst p)) :=
    (PathConnectedSpace.joined (snd p) (fst p)).map (continuous_vertical (fst p))
  refine ⟨fun p q ↦ ((hv p).trans ?_).trans (hv q).symm⟩
  exact (PathConnectedSpace.joined (fst p) (fst q)).map continuous_diagonal

theorem isClosedEmbedding_vertical

TopologyByExample.AlexandroffSquare.isClosedEmbedding_vertical

Each vertical slice is an arc: t ↦ (x, t) is a closed embedding of [0, 1].

theorem isClosedEmbedding_vertical (x : unitInterval) : IsClosedEmbedding (mk x)
Proof
:=
  (continuous_vertical x).isClosedEmbedding fun _ _ h ↦ (mk_inj.1 h).2

On this site: Alexandroff square: The vertical lines are arcs

theorem isClosedEmbedding_diagonal

TopologyByExample.AlexandroffSquare.isClosedEmbedding_diagonal

The diagonal is an arc: t ↦ (t, t) is a closed embedding of [0, 1].

theorem isClosedEmbedding_diagonal : IsClosedEmbedding fun t ↦ mk t t
Proof
:=
  continuous_diagonal.isClosedEmbedding fun _ _ h ↦ (mk_inj.1 h).1

On this site: Alexandroff square: The diagonal is an arc

theorem not_countable_univ_unitInterval

TopologyByExample.AlexandroffSquare.not_countable_univ_unitInterval

The unit interval is uncountable.

theorem not_countable_univ_unitInterval : ¬(univ : Set unitInterval).Countable
Proof
:= fun h ↦ by
  have := Cardinal.mk_le_aleph0_iff.2 (countable_univ_iff.1 h)
  rw [Cardinal.mk_Icc_real zero_lt_one] at this
  exact Cardinal.aleph0_lt_continuum.not_ge this

theorem not_firstCountableTopology

TopologyByExample.AlexandroffSquare.not_firstCountableTopology

The Alexandroff square is not first countable at (0, 0): a countable base of neighbourhoods would contain (x, 0) for all but countably many x, so its intersection, which is {(0, 0)}, would contain uncountably many points.

theorem not_firstCountableTopology : ¬FirstCountableTopology AlexandroffSquare
Proof
:= by
  intro _
  have h := (tendsto_horizontal 0).countable_compl_preimage_ker
  rw [ker_nhds] at h
  refine not_countable_univ_unitInterval ((h.insert 0).mono fun x _ ↦ ?_)
  by_cases hx : x = 0
  · exact .inl hx
  · exact .inr fun hx' ↦ hx (mk_inj.1 hx').1

On this site: Alexandroff square is not first countable

theorem not_countableChainCondition

TopologyByExample.AlexandroffSquare.not_countableChainCondition

The Alexandroff square does not satisfy the countable chain condition: the punctured vertical lines are uncountably many pairwise disjoint nonempty open sets.

theorem not_countableChainCondition :
    ¬∀ S : Set (Set AlexandroffSquare), (∀ s ∈ S, IsOpen s ∧ s.Nonempty) →
      S.PairwiseDisjoint id → S.Countable
Proof
:= by
  intro h
  set f : unitInterval → Set AlexandroffSquare := fun x ↦ {p | fst p = x ∧ snd p ≠ x}
  have hne (x : unitInterval) : (f x).Nonempty := by
    by_cases hx : x = 0
    · exact ⟨mk x 1, rfl, by simp [hx]⟩
    · exact ⟨mk x 0, rfl, Ne.symm hx⟩
  have hinj : Function.Injective f := fun x x' hxx' ↦ by
    obtain ⟨p, hp, hp2⟩ := hne x
    have : p ∈ f x' := hxx' ▸ ⟨hp, hp2⟩
    exact hp.symm.trans this.1
  have hS := h (range f) (by rintro _ ⟨x, rfl⟩; exact ⟨isOpen_vertical x, hne x⟩)
    (by
      rintro _ ⟨x, rfl⟩ _ ⟨x', rfl⟩ hxx'
      exact disjoint_left.2 fun p hp hp' ↦ hxx' (congrArg f (hp.1.symm.trans hp'.1)))
  exact not_countable_univ_unitInterval
    ((hS.preimage hinj).mono fun x _ ↦ (mem_range_self x : f x ∈ range f))

On this site: Alexandroff square does not satisfy the countable chain condition

theorem not_locallyConnectedSpace

TopologyByExample.AlexandroffSquare.not_locallyConnectedSpace

The Alexandroff square is not locally connected at (0, 0).

A connected open set V with (0, 0) ∈ V ⊆ [0, 1] × [0, 1/4) contains a point (x, 0) with x > 1/2; then the punctured vertical line through x and the complement of that line are disjoint open sets covering V and both meeting it.

theorem not_locallyConnectedSpace : ¬LocallyConnectedSpace AlexandroffSquare
Proof
:= by
  intro _
  have hU : snd ⁻¹' Iio ⟨1 / 4, by norm_num, by norm_num⟩ ∈ 𝓝 (mk 0 0) :=
    (isOpen_snd_preimage isOpen_Iio).mem_nhds (by
      change (0 : ℝ) < 1 / 4
      norm_num)
  obtain ⟨V, ⟨hVo, h0V, hVc⟩, hVU⟩ := (LocallyConnectedSpace.open_connected_basis _).mem_iff.1 hU
  have hev := tendsto_horizontal 0 (hVo.mem_nhds h0V)
  have hfr : ∃ᶠ x in cofinite, x ∈ Ioo (⟨1 / 2, by norm_num, by norm_num⟩ : unitInterval) 1 :=
    frequently_cofinite_iff_infinite.2 (Set.Ioo_infinite (by
      change (1 / 2 : ℝ) < 1
      norm_num))
  obtain ⟨x, hx, hxV⟩ := (hfr.and_eventually hev).exists
  have hx0 : (0 : unitInterval) ≠ x := fun h ↦ by
    have := hx.1
    rw [← h] at this
    change (1 / 2 : ℝ) < 0 at this
    norm_num at this
  have hcov : V ⊆ {p | fst p = x ∧ snd p ≠ x} ∪ {p | fst p ≠ x} := fun q hq ↦ by
    by_cases hqx : fst q = x
    · refine .inl ⟨hqx, fun h ↦ ?_⟩
      have h1 : (snd q : ℝ) < 1 / 4 := hVU hq
      have h2 : (1 / 2 : ℝ) < x := hx.1
      rw [h] at h1
      linarith
    · exact .inr hqx
  obtain ⟨p, hpV, hp1, hp2⟩ := hVc.isPreconnected {p | fst p = x ∧ snd p ≠ x} {p | fst p ≠ x}
    (isOpen_vertical x) (isOpen_fst_ne x) hcov ⟨mk x 0, hxV, rfl, hx0⟩ ⟨mk 0 0, h0V, hx0⟩
  exact hp2 hp1.1

On this site: Alexandroff square is not locally connected

theorem not_completelyNormalSpace

TopologyByExample.AlexandroffSquare.not_completelyNormalSpace

The Alexandroff square is not completely normal.

The sets S = {(t, t) : t > 0} and T = {(x, 0) : x > 0} are separated: the diagonal and the bottom edge are closed. If A ⊇ S and B ⊇ T were disjoint neighbourhoods, then for each x > 0 the neighbourhood B of (x, 0) would contain (x, t) for t < 1/(n_x + 1); for some n infinitely many x have n_x = n, and the neighbourhood A of (t, t), with 0 < t < 1/(n + 1), contains (x, t) for all but finitely many x, a point also in B.

theorem not_completelyNormalSpace : ¬CompletelyNormalSpace AlexandroffSquare
Proof
:= by
  intro hcn
  set S : Set AlexandroffSquare := {p | fst p = snd p ∧ snd p ≠ 0}
  set T : Set AlexandroffSquare := {p | snd p = 0 ∧ fst p ≠ 0}
  have hbot : IsClosed {p : AlexandroffSquare | snd p = 0} :=
    isOpen_compl_iff.1 (isOpen_snd_preimage (isOpen_compl_singleton (x := (0 : unitInterval))))
  have h₁ : Disjoint (closure S) T := by
    refine disjoint_left.2 fun p hp hpT ↦ hpT.2 ?_
    have := closure_minimal (fun q (hq : q ∈ S) ↦ hq.1) isClosed_diagonal hp
    exact this.trans hpT.1
  have h₂ : Disjoint S (closure T) := by
    refine disjoint_left.2 fun p hpS hp ↦ hpS.2 ?_
    exact closure_minimal (fun q (hq : q ∈ T) ↦ hq.1) hbot hp
  obtain ⟨A, hA, B, hB, hAB⟩ := Filter.disjoint_iff.1 (hcn.completely_normal h₁ h₂)
  -- for each `x > 0`, a height below which the vertical segment over `x` lies in `B`
  have hseg : ∀ x : unitInterval, x ≠ 0 → ∃ n : ℕ, ∀ t : unitInterval,
      (t : ℝ) < 1 / (n + 1) → mk x t ∈ B := fun x hx ↦ by
    have hB' := (continuous_vertical x).tendsto 0 (mem_nhdsSet_iff_forall.1 hB _ ⟨rfl, hx⟩)
    obtain ⟨ε, hε, hεB⟩ := Metric.mem_nhds_iff.1 hB'
    obtain ⟨n, hn⟩ := exists_nat_one_div_lt hε
    refine ⟨n, fun t ht ↦ hεB ?_⟩
    rw [Metric.mem_ball, Subtype.dist_eq, Real.dist_eq]
    change |(t : ℝ) - 0| < ε
    rw [sub_zero, abs_of_nonneg t.property.1]
    exact ht.trans hn
  choose! n hn using hseg
  -- some fibre of `n` is infinite
  obtain ⟨m, hm⟩ : ∃ m, {x : unitInterval | x ≠ 0 ∧ n x = m}.Infinite := by
    by_contra! hfin
    refine not_countable_univ_unitInterval ?_
    refine ((countable_iUnion fun m ↦ (hfin m).countable).insert 0).mono fun x _ ↦ ?_
    by_cases hx : x = 0
    · exact .inl hx
    · exact .inr (mem_iUnion.2 ⟨n x, hx, rfl⟩)
  set t : unitInterval := ⟨1 / (2 * (m + 1)), by positivity, by
    rw [div_le_one (by positivity)]
    have : (0 : ℝ) ≤ m := m.cast_nonneg
    linarith⟩
  have ht0 : t ≠ 0 := fun h ↦ by
    have : (1 / (2 * (m + 1)) : ℝ) = 0 := congrArg Subtype.val h
    have : (0 : ℝ) < 1 / (2 * (m + 1)) := by positivity
    linarith
  have htm : (t : ℝ) < 1 / (m + 1) := by
    change 1 / (2 * ((m : ℝ) + 1)) < 1 / (m + 1)
    have : (0 : ℝ) < m + 1 := by positivity
    rw [div_lt_div_iff₀ (by positivity) this]
    linarith
  have hev := tendsto_horizontal t (mem_nhdsSet_iff_forall.1 hA _ ⟨rfl, ht0⟩)
  obtain ⟨x, ⟨hx0, hxm⟩, hxA⟩ :=
    (frequently_cofinite_iff_infinite.2 hm |>.and_eventually hev).exists
  have hxB := hn x hx0 t (by rw [hxm]; exact htm)
  exact disjoint_left.1 hAB hxA hxB

On this site: Alexandroff square is not completely normal