Lean library · module TopologyByExample.Spaces.InterlockingInterval

The interlocking interval topology

Source file

Let X = (0, ∞) \ ℤ, the positive reals that are not integers, and for n = 1, 2, 3, … let Sₙ = (0, 1 / n) ∪ (n, n + 1). The interlocking interval topology on X is generated by the sets Sₙ.

A point lies in only finitely many Sₙ, so every point has a smallest open neighbourhood, the intersection of the Sₙ containing it, and the space is Alexandrov (a general fact about topologies generated by point-finite families, TopologyByExample.alexandrovDiscrete_generateFrom). For a point x ∈ (n, n + 1) the only Sₙ containing it is Sₙ itself, so the points of (n, n + 1) are topologically indistinguishable and the space is not T₀. Every nonempty open set contains an interval (0, 1 / m), so any two nonempty open sets meet (the space is hyperconnected), and the closed sets X \ Sₙ, which cover X, have empty interior (the space is meagre in itself). The Sₙ cover X with no finite subcover (the space is not countably compact), yet every nonempty set has an accumulation point (the space is limit point compact).

Main definitions

Main statements

Tags

interlocking interval topology, Alexandrov topology, hyperconnected, not T₀, 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 InterlockingInterval

TopologyByExample.InterlockingInterval

The positive real numbers that are not integers, with the interlocking interval topology, generated by the sets (0, 1 / n) ∪ (n, n + 1) for n = 1, 2, 3, ….

def InterlockingInterval : Type
:= {x : ℝ // 0 < x ∧ ∀ n : ℤ, x ≠ n}

On this site: Space: Interlocking interval topology

definition toReal

TopologyByExample.InterlockingInterval.toReal

The real number underlying a point of the interlocking interval topology.

def toReal (x : InterlockingInterval) : ℝ
:= Subtype.val x

theorem toReal_pos

TopologyByExample.InterlockingInterval.toReal_pos

The real coordinate of a point is positive.

theorem toReal_pos (x : InterlockingInterval) : 0 < toReal x
Proof
:= x.property.1

theorem toReal_ne_intCast

TopologyByExample.InterlockingInterval.toReal_ne_intCast

The real coordinate of a point is not an integer.

theorem toReal_ne_intCast (x : InterlockingInterval) (n : ℤ) : toReal x ≠ n
Proof
:= x.property.2 n

theorem toReal_injective

TopologyByExample.InterlockingInterval.toReal_injective

A point is determined by its real coordinate.

theorem toReal_injective : Function.Injective toReal
Proof
:= Subtype.val_injective

definition mk

TopologyByExample.InterlockingInterval.mk

The point r, for n < r < n + 1 with n a natural number.

def mk (r : ℝ) (n : ℕ) (h₁ : (n : ℝ) < r) (h₂ : r < n + 1) : InterlockingInterval
Definition
:=
  ⟨r, (Nat.cast_nonneg n).trans_lt h₁, fun k hk ↦ by
    subst hk
    have h₁' : (n : ℤ) < k := by exact_mod_cast h₁
    have h₂' : k < (n : ℤ) + 1 := by exact_mod_cast h₂
    omega⟩

theorem toReal_mk

TopologyByExample.InterlockingInterval.toReal_mk

The real coordinate of mk r n h₁ h₂ is r.

@[simp] theorem toReal_mk (r : ℝ) (n : ℕ) (h₁ : (n : ℝ) < r) (h₂ : r < n + 1) :
    toReal (mk r n h₁ h₂) = r
Proof
:= rfl

definition S

TopologyByExample.InterlockingInterval.S

The generating set Sₙ = (0, 1 / n) ∪ (n, n + 1).

def S (n : ℕ) : Set InterlockingInterval
:=
  {x | toReal x < (n : ℝ)⁻¹ ∨ ((n : ℝ) < toReal x ∧ toReal x < n + 1)}

definition subbasis

TopologyByExample.InterlockingInterval.subbasis

The generating family {Sₙ | n ≥ 1}.

def subbasis : Set (Set InterlockingInterval)
:= {s | ∃ n : ℕ, 0 < n ∧ s = S n}

instance

The interlocking interval topology.

instance : TopologicalSpace InterlockingInterval
Proof
:= generateFrom subbasis

theorem isOpen_S

TopologyByExample.InterlockingInterval.isOpen_S

The generating sets Sₙ, n ≥ 1, are open.

theorem isOpen_S {n : ℕ} (hn : 0 < n) : IsOpen (S n)
Proof
:=
  isOpen_generateFrom_of_mem ⟨n, hn, rfl⟩

theorem mem_S_iff_eq

TopologyByExample.InterlockingInterval.mem_S_iff_eq

A point of (n, n + 1) lies in Sₘ exactly when m = n.

theorem mem_S_iff_eq {n m : ℕ} (hn : 0 < n) (hm : 0 < m) {x : InterlockingInterval}
    (h₁ : (n : ℝ) < toReal x) (h₂ : toReal x < n + 1) : x ∈ S m ↔ m = n
Proof
:= by
  constructor
  · rintro (h | ⟨h₃, h₄⟩)
    · have : (m : ℝ)⁻¹ ≤ 1 := inv_le_one_of_one_le₀ (by exact_mod_cast hm)
      have : (1 : ℝ) ≤ n := by exact_mod_cast hn
      linarith
    · have a₁ : (m : ℝ) < n + 1 := by linarith
      have a₂ : (n : ℝ) < m + 1 := by linarith
      have b₁ : m < n + 1 := by exact_mod_cast a₁
      have b₂ : n < m + 1 := by exact_mod_cast a₂
      omega
  · rintro rfl
    exact Or.inr ⟨h₁, h₂⟩

theorem exists_mem_S

TopologyByExample.InterlockingInterval.exists_mem_S

Every point lies in some Sₙ, n ≥ 1.

theorem exists_mem_S (x : InterlockingInterval) : ∃ n, 0 < n ∧ x ∈ S n
Proof
:= by
  by_cases h : toReal x < 1
  · exact ⟨1, one_pos, Or.inl (by simpa using h)⟩
  · have h0 := (toReal_pos x).le
    have h₁ : (⌊toReal x⌋₊ : ℝ) ≤ toReal x := Nat.floor_le h0
    have h₂ : toReal x < ⌊toReal x⌋₊ + 1 := Nat.lt_floor_add_one _
    have h₃ : (⌊toReal x⌋₊ : ℝ) ≠ toReal x := fun e ↦
      toReal_ne_intCast x (⌊toReal x⌋₊ : ℤ) (by rw [Int.cast_natCast]; exact e.symm)
    exact ⟨⌊toReal x⌋₊, Nat.floor_pos.2 (not_lt.1 h), Or.inr ⟨lt_of_le_of_ne h₁ h₃, h₂⟩⟩

theorem exists_mem_Ioo

TopologyByExample.InterlockingInterval.exists_mem_Ioo

A point x with x > 1 lies in an interval (n, n + 1) with n ≥ 1.

theorem exists_mem_Ioo (x : InterlockingInterval) (h : 1 < toReal x) :
    ∃ n : ℕ, 0 < n ∧ (n : ℝ) < toReal x ∧ toReal x < n + 1
Proof
:= by
  obtain ⟨n, hn, hx | hx⟩ := exists_mem_S x
  · have : (n : ℝ)⁻¹ ≤ 1 := inv_le_one_of_one_le₀ (by exact_mod_cast hn)
    linarith
  · exact ⟨n, hn, hx⟩

theorem specializes_of_forall_mem

TopologyByExample.InterlockingInterval.specializes_of_forall_mem

In the interlocking interval topology, x specializes to y (every open set containing y contains x) as soon as every generating set containing y contains x.

theorem specializes_of_forall_mem {x y : InterlockingInterval}
    (h : ∀ n, 0 < n → y ∈ S n → x ∈ S n) : x ⤳ y
Proof
:= by
  have hy : 𝓝 y = ⨅ s ∈ {s | y ∈ s ∧ s ∈ subbasis}, 𝓟 s := nhds_generateFrom
  change 𝓝 x ≤ 𝓝 y
  rw [hy]
  refine le_iInf₂ fun s ⟨hys, n, hn, hs⟩ ↦ ?_
  subst hs
  exact le_principal_iff.2 ((isOpen_S hn).mem_nhds (h n hn hys))

theorem specializes_of_mem_Ioo

TopologyByExample.InterlockingInterval.specializes_of_mem_Ioo

Two points of the same interval (n, n + 1) specialize to each other.

theorem specializes_of_mem_Ioo {n : ℕ} (hn : 0 < n) {x y : InterlockingInterval}
    (hx₁ : (n : ℝ) < toReal x) (hx₂ : toReal x < n + 1) (hy₁ : (n : ℝ) < toReal y)
    (hy₂ : toReal y < n + 1) : x ⤳ y
Proof
:=
  specializes_of_forall_mem fun _ hm hy ↦
    (mem_S_iff_eq hn hm hx₁ hx₂).2 ((mem_S_iff_eq hn hm hy₁ hy₂).1 hy)

theorem inseparable_of_mem_Ioo

TopologyByExample.InterlockingInterval.inseparable_of_mem_Ioo

The points of each interval (n, n + 1), n ≥ 1, are topologically indistinguishable: every open set containing one of them contains all of them.

theorem inseparable_of_mem_Ioo {n : ℕ} (hn : 0 < n) {x y : InterlockingInterval}
    (hx₁ : (n : ℝ) < toReal x) (hx₂ : toReal x < n + 1) (hy₁ : (n : ℝ) < toReal y)
    (hy₂ : toReal y < n + 1) : Inseparable x y
Proof
:=
  (specializes_of_mem_Ioo hn hx₁ hx₂ hy₁ hy₂).antisymm
    (specializes_of_mem_Ioo hn hy₁ hy₂ hx₁ hx₂)

On this site: Interlocking interval topology: The points of each interval \((n, n + 1)\) are indistinguishable

theorem nhds_eq_principal_S

TopologyByExample.InterlockingInterval.nhds_eq_principal_S

The smallest neighbourhood of a point of (n, n + 1), n ≥ 1, is Sₙ.

theorem nhds_eq_principal_S {n : ℕ} (hn : 0 < n) {x : InterlockingInterval}
    (hx₁ : (n : ℝ) < toReal x) (hx₂ : toReal x < n + 1) : 𝓝 x = 𝓟 (S n)
Proof
:= by
  have hx : 𝓝 x = ⨅ s ∈ {s | x ∈ s ∧ s ∈ subbasis}, 𝓟 s := nhds_generateFrom
  have heq : {s | x ∈ s ∧ s ∈ subbasis} = {S n} := by
    ext s
    simp only [mem_ofPred_eq, mem_singleton_iff]
    constructor
    · rintro ⟨hxs, m, hm, rfl⟩
      rw [(mem_S_iff_eq hn hm hx₁ hx₂).1 hxs]
    · rintro rfl
      exact ⟨Or.inr ⟨hx₁, hx₂⟩, n, hn, rfl⟩
  rw [hx, heq, iInf_singleton]

On this site: Interlocking interval topology: The smallest neighbourhood of a point of \((n, n + 1)\) is \(S_n\)

theorem not_t0Space

TopologyByExample.InterlockingInterval.not_t0Space

The interlocking interval topology is not T₀: 3 / 2 and 5 / 4 are indistinguishable.

theorem not_t0Space : ¬T0Space InterlockingInterval
Proof
:= by
  intro h
  let a := mk (3 / 2) 1 (by norm_num) (by norm_num)
  let b := mk (5 / 4) 1 (by norm_num) (by norm_num)
  have hab : Inseparable a b := inseparable_of_mem_Ioo one_pos (by norm_num [a])
    (by norm_num [a]) (by norm_num [b]) (by norm_num [b])
  have := congrArg toReal (hab.eq)
  norm_num [a, b] at this

On this site: The interlocking interval topology is not T₀

instance instAlexandrovDiscrete

TopologyByExample.InterlockingInterval.instAlexandrovDiscrete

The interlocking interval topology is Alexandrov: each point lies in only finitely many of the generating sets.

instance instAlexandrovDiscrete : AlexandrovDiscrete InterlockingInterval
Proof
:= by
  refine alexandrovDiscrete_generateFrom fun x ↦ ?_
  refine ((finite_Iio (⌈toReal x + (toReal x)⁻¹⌉₊ + 1)).image S).subset ?_
  rintro _ ⟨hx, n, hn, rfl⟩
  refine ⟨n, ?_, rfl⟩
  have hxpos := toReal_pos x
  have hxinv := inv_pos.2 hxpos
  have hnpos : (0 : ℝ) < n := by exact_mod_cast hn
  have hlt : (n : ℝ) < toReal x + (toReal x)⁻¹ := by
    rcases hx with h | ⟨h, _⟩
    · have := (lt_inv_comm₀ hxpos hnpos).1 h
      linarith
    · linarith
  have hB := Nat.le_ceil (toReal x + (toReal x)⁻¹)
  have : (n : ℝ) < ⌈toReal x + (toReal x)⁻¹⌉₊ + 1 := by linarith
  exact mem_Iio.2 (by exact_mod_cast this)

On this site: The interlocking interval topology is Alexandrov

instance instSecondCountableTopology

TopologyByExample.InterlockingInterval.instSecondCountableTopology

The interlocking interval topology is second countable: it is generated by countably many sets.

instance instSecondCountableTopology : SecondCountableTopology InterlockingInterval
Proof
:=
  ⟨⟨subbasis, (countable_range S).mono (by rintro _ ⟨n, -, rfl⟩; exact ⟨n, rfl⟩), rfl⟩⟩

On this site: The interlocking interval topology is second countable

definition small

TopologyByExample.InterlockingInterval.small

A point of (0, 1): 1 / (m + 2).

def small (m : ℕ) : InterlockingInterval
:=
  mk ((m : ℝ) + 2)⁻¹ 0 (by rw [Nat.cast_zero]; positivity)
    (by simpa using inv_lt_one_of_one_lt₀ (by linarith [(Nat.cast_nonneg m : (0 : ℝ) ≤ m)]))

theorem toReal_small

TopologyByExample.InterlockingInterval.toReal_small

The real coordinate of small m is 1 / (m + 2).

@[simp] theorem toReal_small (m : ℕ) : toReal (small m) = ((m : ℝ) + 2)⁻¹
Proof
:= rfl

instance

The interlocking interval topology is nonempty.

instance : Nonempty InterlockingInterval
Proof
:= ⟨small 0⟩

theorem toReal_small_lt

TopologyByExample.InterlockingInterval.toReal_small_lt

1 / (k + 2) < 1 / m for m ≤ k, m ≥ 1.

theorem toReal_small_lt {m k : ℕ} (hm : 0 < m) (hk : m ≤ k) : toReal (small k) < (m : ℝ)⁻¹
Proof
:= by
  rw [toReal_small]
  have hm' : (0 : ℝ) < m := by exact_mod_cast hm
  have hk' : (m : ℝ) ≤ k := by exact_mod_cast hk
  exact inv_strictAnti₀ hm' (by linarith)

theorem exists_Ioo_subset

TopologyByExample.InterlockingInterval.exists_Ioo_subset

Every open set containing a point contains an interval (0, 1 / m).

theorem exists_Ioo_subset {U : Set InterlockingInterval} (hU : IsOpen U)
    {x : InterlockingInterval} (hx : x ∈ U) :
    ∃ m : ℕ, 0 < m ∧ ∀ y, toReal y < (m : ℝ)⁻¹ → y ∈ U
Proof
:= by
  have hU' : GenerateOpen subbasis U := hU
  clear hU
  induction hU' generalizing x with
  | basic s hs =>
    obtain ⟨n, hn, rfl⟩ := hs
    exact ⟨n, hn, fun y hy ↦ Or.inl hy⟩
  | univ => exact ⟨1, one_pos, fun _ _ ↦ trivial⟩
  | inter s u _ _ ihs ihu =>
    obtain ⟨m₁, hm₁, h₁⟩ := ihs hx.1
    obtain ⟨m₂, hm₂, h₂⟩ := ihu hx.2
    have hle₁ : ((m₁ + m₂ : ℕ) : ℝ)⁻¹ ≤ (m₁ : ℝ)⁻¹ :=
      inv_anti₀ (by exact_mod_cast hm₁) (by exact_mod_cast Nat.le_add_right m₁ m₂)
    have hle₂ : ((m₁ + m₂ : ℕ) : ℝ)⁻¹ ≤ (m₂ : ℝ)⁻¹ :=
      inv_anti₀ (by exact_mod_cast hm₂) (by exact_mod_cast Nat.le_add_left m₂ m₁)
    exact ⟨m₁ + m₂, by omega, fun y hy ↦ ⟨h₁ y (hy.trans_le hle₁), h₂ y (hy.trans_le hle₂)⟩⟩
  | sUnion S _ ih =>
    obtain ⟨s, hs, hxs⟩ := hx
    obtain ⟨m, hm, h⟩ := ih s hs hxs
    exact ⟨m, hm, fun y hy ↦ ⟨s, hs, h y hy⟩⟩

On this site: Interlocking interval topology: Every nonempty open set contains an interval \((0, \tfrac1m)\)

theorem small_mem_of_isOpen

TopologyByExample.InterlockingInterval.small_mem_of_isOpen

A nonempty open set contains 1 / (k + 2) for all large k.

theorem small_mem_of_isOpen {U : Set InterlockingInterval} (hU : IsOpen U) (hne : U.Nonempty) :
    ∃ m, ∀ k, m ≤ k → small k ∈ U
Proof
:= by
  obtain ⟨x, hx⟩ := hne
  obtain ⟨m, hm, h⟩ := exists_Ioo_subset hU hx
  exact ⟨m, fun k hk ↦ h _ (toReal_small_lt hm hk)⟩

instance instPreirreducibleSpace

TopologyByExample.InterlockingInterval.instPreirreducibleSpace

The interlocking interval topology is hyperconnected: two nonempty open sets both contain 1 / (k + 2) for large k.

instance instPreirreducibleSpace : PreirreducibleSpace InterlockingInterval
Proof
:=
  ⟨fun _ _ hU hV ⟨x, _, hxU⟩ ⟨y, _, hyV⟩ ↦ by
    obtain ⟨m₁, h₁⟩ := small_mem_of_isOpen hU ⟨x, hxU⟩
    obtain ⟨m₂, h₂⟩ := small_mem_of_isOpen hV ⟨y, hyV⟩
    exact ⟨small (max m₁ m₂), trivial, h₁ _ (le_max_left _ _), h₂ _ (le_max_right _ _)⟩⟩

On this site: The interlocking interval topology is hyperconnected

theorem not_countablyCompactSpace

TopologyByExample.InterlockingInterval.not_countablyCompactSpace

The interlocking interval topology is not countably compact: the sets Sₙ cover the space, and finitely many of them miss the interval (M, M + 1) for large M.

theorem not_countablyCompactSpace : ¬CountablyCompactSpace InterlockingInterval
Proof
:= by
  intro h
  obtain ⟨t, ht⟩ := h.isCountablyCompact_univ.elim_finite_subcover (U := fun n : ℕ ↦ S (n + 1))
    (fun n ↦ isOpen_S n.succ_pos) fun x _ ↦ by
      obtain ⟨n, hn, hx⟩ := exists_mem_S x
      exact mem_iUnion.2 ⟨n - 1, by rwa [Nat.sub_add_cancel hn]⟩
  set M := t.sup id + 2 with hM
  obtain ⟨i, hi, hxi⟩ := mem_iUnion₂.1 (ht (mem_univ (mk ((M : ℝ) + 1 / 2) M
    (by linarith) (by linarith))))
  have hiM : i + 2 ≤ M := by
    have := Finset.le_sup (f := id) hi
    simp only [id] at this
    omega
  have hM2 : (2 : ℝ) ≤ M := by exact_mod_cast (show 2 ≤ M by omega)
  rcases hxi with h | ⟨h₁, h₂⟩
  · simp only [toReal_mk] at h
    have : ((i + 1 : ℕ) : ℝ)⁻¹ ≤ 1 := inv_le_one_of_one_le₀ (by exact_mod_cast i.succ_pos)
    linarith
  · simp only [toReal_mk] at h₂
    have hiM' : ((i : ℝ) + 2) ≤ M := by exact_mod_cast hiM
    push_cast at h₂
    linarith

On this site: The interlocking interval topology is not countably compact

theorem exists_accPt

TopologyByExample.InterlockingInterval.exists_accPt

Every nonempty set of the interlocking interval topology has an accumulation point: a point x ≠ a every neighbourhood of which contains a given point a of the set.

theorem exists_accPt {s : Set InterlockingInterval} (hs : s.Nonempty) :
    ∃ x, AccPt x (𝓟 s)
Proof
:= by
  obtain ⟨a, ha⟩ := hs
  suffices ∃ x, x ≠ a ∧ a ⤳ x by
    obtain ⟨x, hxa, hax⟩ := this
    refine ⟨x, accPt_iff_nhds.2 fun U hU ↦ ⟨a, ⟨?_, ha⟩, hxa.symm⟩⟩
    exact mem_of_mem_nhds ((show 𝓝 a ≤ 𝓝 x from hax) hU)
  by_cases h : toReal a < 1
  · refine ⟨mk (3 / 2) 1 (by norm_num) (by norm_num), fun e ↦ ?_, ?_⟩
    · have := congrArg toReal e
      simp only [toReal_mk] at this
      linarith
    · refine specializes_of_forall_mem fun n hn hx ↦ ?_
      rw [(mem_S_iff_eq one_pos hn (by norm_num) (by norm_num)).1 hx]
      exact Or.inl (by simpa using h)
  · have h1 : 1 < toReal a := lt_of_le_of_ne (not_lt.1 h) fun e ↦
      toReal_ne_intCast a 1 (by rw [← e]; norm_num)
    obtain ⟨n, hn, ha₁, ha₂⟩ := exists_mem_Ioo a h1
    by_cases he : toReal a = n + 1 / 2
    · refine ⟨mk (n + 1 / 4) n (by linarith) (by linarith), fun e ↦ ?_, ?_⟩
      · have := congrArg toReal e
        simp only [toReal_mk] at this
        linarith
      · exact specializes_of_mem_Ioo hn ha₁ ha₂ (by simp) (by simp; linarith)
    · refine ⟨mk (n + 1 / 2) n (by linarith) (by linarith), fun e ↦ he ?_, ?_⟩
      · have := congrArg toReal e
        simp only [toReal_mk] at this
        exact this.symm
      · exact specializes_of_mem_Ioo hn ha₁ ha₂ (by simp) (by simp; linarith)

theorem limitPointCompact

TopologyByExample.InterlockingInterval.limitPointCompact

The interlocking interval topology is limit point compact.

theorem limitPointCompact :
    ∀ s : Set InterlockingInterval, s.Infinite → ∃ x, AccPt x (𝓟 s)
Proof
:=
  fun _ hs ↦ exists_accPt hs.nonempty

On this site: The interlocking interval topology is limit point compact

theorem not_ultraconnectedSpace

TopologyByExample.InterlockingInterval.not_ultraconnectedSpace

The interlocking interval topology is not ultraconnected: a point in the closures of both {3 / 2} and {5 / 2} would lie in a generating set containing both, which does not exist.

theorem not_ultraconnectedSpace : ¬UltraconnectedSpace InterlockingInterval
Proof
:= by
  intro h
  let p := mk (3 / 2) 1 (by norm_num) (by norm_num)
  let q := mk (5 / 2) 2 (by norm_num) (by norm_num)
  obtain ⟨z, hzp, hzq⟩ := h.closure_inter_closure_nonempty p q
  obtain ⟨n, hn, hzn⟩ := exists_mem_S z
  have hp : p ∈ S n := (specializes_iff_mem_closure.2 hzp).mem_open (isOpen_S hn) hzn
  have hq : q ∈ S n := (specializes_iff_mem_closure.2 hzq).mem_open (isOpen_S hn) hzn
  have e₁ := (mem_S_iff_eq one_pos hn (by norm_num [p]) (by norm_num [p])).1 hp
  have e₂ := (mem_S_iff_eq two_pos hn (by norm_num [q]) (by norm_num [q])).1 hq
  omega

On this site: The interlocking interval topology is not ultraconnected

theorem isMeagre_univ

TopologyByExample.InterlockingInterval.isMeagre_univ

The interlocking interval topology is meagre in itself: it is the union of the closed sets X \ Sₙ, which have empty interior.

theorem isMeagre_univ : IsMeagre (univ : Set InterlockingInterval)
Proof
:= by
  have hcover : (univ : Set InterlockingInterval) ⊆ ⋃ n : ℕ, (S (n + 1))ᶜ := by
    intro x _
    refine mem_iUnion.2 ⟨⌈toReal x + (toReal x)⁻¹⌉₊, ?_⟩
    have hxpos := toReal_pos x
    have hxinv := inv_pos.2 hxpos
    have hB := Nat.le_ceil (toReal x + (toReal x)⁻¹)
    rintro (h | ⟨h, _⟩)
    · push_cast at h
      have := (lt_inv_comm₀ hxpos (by positivity)).1 h
      linarith
    · push_cast at h
      linarith
  refine (isMeagre_iUnion fun n ↦ ?_).mono hcover
  refine IsNowhereDense.isMeagre ?_
  rw [(isOpen_S n.succ_pos).isClosed_compl.isNowhereDense_iff]
  refine eq_empty_of_forall_notMem fun x hx ↦ ?_
  obtain ⟨m, hm⟩ := small_mem_of_isOpen isOpen_interior ⟨x, hx⟩
  have h₁ := interior_subset (hm (max m (n + 1)) (le_max_left _ _))
  exact h₁ (Or.inl (toReal_small_lt n.succ_pos (le_max_right _ _)))

theorem not_not_isMeagre_univ

TopologyByExample.InterlockingInterval.not_not_isMeagre_univ

The interlocking interval topology is not of second category.

theorem not_not_isMeagre_univ : ¬¬IsMeagre (univ : Set InterlockingInterval)
Proof
:=
  fun h ↦ h isMeagre_univ

On this site: The interlocking interval topology is not of second category