Lean library · module TopologyByExample.Spaces.MysiorPlane

The Mysior plane

Source file

Off-axis points are isolated. At an axis point there are three approaching segments, one vertical, one displaced by one, and one displaced by the square root of two. This is the Mysior plane, distinct from the regular non-completely-regular Mysior space.

This file was written by Codex (OpenAI's AI model) working under the direction of David R. MacIver, who reviews it and is responsible for it.

Imports

definition MysiorPlane

TopologyByExample.MysiorPlane

The underlying plane, with a topology defined below.

def MysiorPlane
:= ℝ × ℝ

On this site: Space: Mysior plane

definition point

TopologyByExample.MysiorPlane.point

A point with the given coordinates.

def point (a b : ℝ) : MysiorPlane
:= (a, b)

definition horizontal

TopologyByExample.MysiorPlane.horizontal

Horizontal coordinate.

def horizontal (p : MysiorPlane) : ℝ
:= p.1

definition vertical

TopologyByExample.MysiorPlane.vertical

Vertical coordinate.

def vertical (p : MysiorPlane) : ℝ
:= p.2

definition axis

TopologyByExample.MysiorPlane.axis

A point on the horizontal axis.

def axis (x : ℝ) : MysiorPlane
:= (x, 0)

definition basic

TopologyByExample.MysiorPlane.basic

A three-segment neighbourhood of an axis point.

def basic (x ε : ℝ) : Set MysiorPlane
Definition
:= {p |
  (horizontal p = x ∧ |vertical p| < ε) ∨
  (horizontal p = x + 1 + vertical p ∧ 0 < vertical p ∧ vertical p < ε) ∨
  (horizontal p = x + Real.sqrt 2 - vertical p ∧ vertical p < 0 ∧ -vertical p < ε)}

theorem basic_mono

TopologyByExample.MysiorPlane.basic_mono

Increasing the radius enlarges the basic set.

theorem basic_mono (x : ℝ) {ε δ : ℝ} (h : ε ≤ δ) : basic x ε ⊆ basic x δ
Proof
:= by
  rintro p (hp | hp | hp)
  · exact Or.inl ⟨hp.1, hp.2.trans_le h⟩
  · exact Or.inr (Or.inl ⟨hp.1, hp.2.1, hp.2.2.trans_le h⟩)
  · exact Or.inr (Or.inr ⟨hp.1, hp.2.1, hp.2.2.trans_le h⟩)

theorem axis_mem_basic

TopologyByExample.MysiorPlane.axis_mem_basic

An axis point lies in the basic set centred there.

theorem axis_mem_basic (x : ℝ) {ε : ℝ} (h : 0 < ε) : axis x ∈ basic x ε
Proof
:= by
  exact Or.inl ⟨rfl, by simpa [vertical, axis] using h⟩

theorem axis_mem_basic_iff

TopologyByExample.MysiorPlane.axis_mem_basic_iff

The only axis point in a basic set is its centre.

theorem axis_mem_basic_iff {x y ε : ℝ} (h : 0 < ε) : axis y ∈ basic x ε ↔ y = x
Proof
:= by
  change ((y = x ∧ |(0 : ℝ)| < ε) ∨
    (y = x + 1 + 0 ∧ 0 < (0 : ℝ) ∧ 0 < ε) ∨
    (y = x + Real.sqrt 2 - 0 ∧ (0 : ℝ) < 0 ∧ -0 < ε)) ↔ y = x
  simp [h]

instance

A set is open when it contains a basic neighbourhood of each of its axis points.

instance : TopologicalSpace MysiorPlane
Proof
where
  IsOpen s := ∀ x, axis x ∈ s → ∃ ε > 0, basic x ε ⊆ s
  isOpen_univ := fun x _ => ⟨1, by norm_num, subset_univ _⟩
  isOpen_inter := by
    intro s t hs ht x hx
    obtain ⟨ε, hε, he⟩ := hs x hx.1
    obtain ⟨δ, hδ, hd⟩ := ht x hx.2
    exact ⟨min ε δ, lt_min hε hδ, fun p hp =>
      ⟨he (basic_mono x (min_le_left _ _) hp), hd (basic_mono x (min_le_right _ _) hp)⟩⟩
  isOpen_sUnion := by
    intro S hS x hx
    obtain ⟨s, hs, hxs⟩ := mem_sUnion.mp hx
    obtain ⟨ε, hε, he⟩ := hS s hs x hxs
    exact ⟨ε, hε, he.trans (subset_sUnion_of_mem hs)⟩

theorem isOpen_basic

TopologyByExample.MysiorPlane.isOpen_basic

Every basic neighbourhood is open.

theorem isOpen_basic (x : ℝ) {ε : ℝ} (h : 0 < ε) : IsOpen (basic x ε)
Proof
:= by
  intro y hy
  have : y = x := (axis_mem_basic_iff h).mp hy
  subst y
  exact ⟨ε, h, Subset.rfl⟩

theorem isOpen_singleton

TopologyByExample.MysiorPlane.isOpen_singleton

Off-axis points are isolated.

theorem isOpen_singleton {p : MysiorPlane} (hp : vertical p ≠ 0) :
    IsOpen ({p} : Set MysiorPlane)
Proof
:= by
  intro x hx
  have he : axis x = p := mem_singleton_iff.mp hx
  exact (hp (by rw [← he]; rfl)).elim

theorem abs_vertical_lt_of_mem_basic

TopologyByExample.MysiorPlane.abs_vertical_lt_of_mem_basic

Basic neighbourhoods have vertical coordinate smaller than their radius.

theorem abs_vertical_lt_of_mem_basic {x ε : ℝ} {p : MysiorPlane} (hp : p ∈ basic x ε) :
Proof
    |vertical p| < ε := by
  rcases hp with hp | hp | hp
  · exact hp.2
  · simpa [abs_of_pos hp.2.1] using hp.2.2
  · simpa [abs_of_neg hp.2.1] using hp.2.2

theorem hasBasis_axis

TopologyByExample.MysiorPlane.hasBasis_axis

The basic neighbourhoods form a local base at an axis point.

theorem hasBasis_axis (x : ℝ) : (𝓝 (axis x)).HasBasis (fun ε : ℝ => 0 < ε) (basic x)
Proof
:= by
  refine ⟨fun s => ⟨?_, ?_⟩⟩
  · intro hs
    obtain ⟨u, hus, hu, hxu⟩ := mem_nhds_iff.mp hs
    obtain ⟨ε, he, hε⟩ := hu x hxu
    exact ⟨ε, he, hε.trans hus⟩
  · rintro ⟨ε, he, hε⟩
    exact mem_of_superset ((isOpen_basic x he).mem_nhds (axis_mem_basic x he)) hε

instance

The Mysior plane is first countable.

instance : FirstCountableTopology MysiorPlane
Proof
:= by
  constructor
  intro p
  by_cases hp : vertical p = 0
  · have he : p = axis (horizontal p) := by
      change (p : ℝ × ℝ) = (p.1, 0)
      exact Prod.ext rfl hp
    rw [he]
    have h : (𝓝 (axis (horizontal p))).HasBasis (fun _ : ℕ => True)
        (fun n => basic (horizontal p) (1 / ((n : ℝ) + 1))) :=
      (hasBasis_axis _).to_hasBasis (fun ε hε => by
        obtain ⟨n, hn⟩ := exists_nat_one_div_lt hε
        exact ⟨n, trivial, basic_mono _ hn.le⟩)
        (fun n _ => ⟨1 / ((n : ℝ) + 1), Nat.one_div_pos_of_nat, Subset.rfl⟩)
    exact h.isCountablyGenerated
  · have he : 𝓝 p = pure p := (isOpen_singleton_iff_nhds_eq_pure p).mp (isOpen_singleton hp)
    rw [he]
    infer_instance

instance

Every singleton is closed.

instance : T1Space MysiorPlane
Proof
:= by
  constructor
  intro p
  apply isOpen_compl_iff.mp
  intro x hx
  by_cases hp : vertical p = 0
  · refine ⟨1, by norm_num, ?_⟩
    intro q hq he
    have hqp : q = p := mem_singleton_iff.mp he
    subst q
    have haxis : p = axis (horizontal p) := by
      change (p : ℝ × ℝ) = (p.1, 0)
      exact Prod.ext rfl hp
    have hpx : horizontal p = x := (axis_mem_basic_iff (by norm_num)).mp (haxis ▸ hq)
    apply hx
    exact mem_singleton_iff.mpr (by rw [haxis, hpx])
  · refine ⟨|vertical p|, abs_pos.mpr hp, ?_⟩
    intro q hq he
    have hqp : q = p := mem_singleton_iff.mp he
    subst q
    exact (lt_irrefl _) (abs_vertical_lt_of_mem_basic hq)

theorem eq_axis_of_vertical_eq_zero

TopologyByExample.MysiorPlane.eq_axis_of_vertical_eq_zero

A point on the axis is determined by its horizontal coordinate.

theorem eq_axis_of_vertical_eq_zero {p : MysiorPlane} (hp : vertical p = 0) :
    p = axis (horizontal p)
Proof
:= Prod.ext rfl hp

instance

Every nonempty subset contains an isolated point in its subspace topology.

instance : ScatteredSpace MysiorPlane
Proof
:= by
  apply scatteredSpace_iff_exists_isolated.mpr
  intro s hs
  by_cases h : ∃ p ∈ s, vertical p ≠ 0
  · obtain ⟨p, hp, hpy⟩ := h
    exact ⟨p, hp, {p}, (isOpen_singleton hpy).mem_nhds rfl, inter_subset_left⟩
  · push Not at h
    obtain ⟨p, hp⟩ := hs
    have he := eq_axis_of_vertical_eq_zero (h p hp)
    refine ⟨p, hp, basic (horizontal p) 1, ?_, ?_⟩
    · exact (isOpen_basic _ (by norm_num)).mem_nhds (he ▸ axis_mem_basic _ (by norm_num))
    · intro q hq
      have hqe := eq_axis_of_vertical_eq_zero (h q hq.2)
      have hxy : horizontal q = horizontal p :=
        (axis_mem_basic_iff (by norm_num)).mp (hqe ▸ hq.1)
      exact mem_singleton_iff.mpr (by rw [hqe, he, hxy])

theorem finite_inter_basic

TopologyByExample.MysiorPlane.finite_inter_basic

Basic sets with different centres have finite intersection.

theorem finite_inter_basic {x y ε δ : ℝ} (hxy : x ≠ y) :
    (basic x ε ∩ basic y δ).Finite
Proof
:= by
  let t := Real.sqrt 2
  let A : Set MysiorPlane := {
    point x (x - y - 1), point x (y + t - x), point y (y - x - 1), point y (x + t - y),
    point (x + 1 + (y + t - x - 1) / 2) ((y + t - x - 1) / 2),
    point (y + 1 + (x + t - y - 1) / 2) ((x + t - y - 1) / 2)}
  apply (show A.Finite by dsimp [A]; simp).subset
  rintro p ⟨hp, hq⟩
  change horizontal p = x ∧ _ ∨ _ ∨ _ at hp
  change horizontal p = y ∧ _ ∨ _ ∨ _ at hq
  have hext (a b : ℝ) (ha : horizontal p = a) (hb : vertical p = b) :
      p = point a b := Prod.ext ha hb
  change p = _ ∨ p = _ ∨ p = _ ∨ p = _ ∨ p = _ ∨ p = _
  rcases hp with hp | hp | hp <;> rcases hq with hq | hq | hq
  · exact (hxy (hp.1.symm.trans hq.1)).elim
  · exact Or.inl (hext _ _ hp.1 (by linarith [hq.1]))
  · exact Or.inr (Or.inl (hext _ _ hp.1 (by dsimp [t]; linarith [hq.1])))
  · exact Or.inr (Or.inr (Or.inl (hext _ _ hq.1 (by linarith [hp.1]))))
  · exact (hxy (by linarith [hp.1, hq.1])).elim
  · right; right; right; right; left
    apply hext <;> dsimp [t] <;> linarith [hp.1, hq.1]
  · right; right; right; left
    exact hext _ _ hq.1 (by dsimp [t]; linarith [hp.1])
  · right; right; right; right; right
    apply hext <;> dsimp [t] <;> linarith [hp.1, hq.1]
  · exact (hxy (by linarith [hp.1, hq.1])).elim

theorem isClosed_basic

TopologyByExample.MysiorPlane.isClosed_basic

Basic neighbourhoods are closed.

theorem isClosed_basic (x : ℝ) {ε : ℝ} (hε : 0 < ε) : IsClosed (basic x ε)
Proof
:= by
  apply isOpen_compl_iff.mp
  intro y hy
  have hxy : x ≠ y := by
    intro h; subst y
    exact hy (axis_mem_basic x hε)
  have hfin := finite_inter_basic (ε := ε) (δ := 1) hxy
  have hopen : IsOpen (basic y 1 \ (basic x ε ∩ basic y 1)) :=
    (isOpen_basic y (by norm_num)).sdiff hfin.isClosed
  have hmem : axis y ∈ basic y 1 \ (basic x ε ∩ basic y 1) :=
    ⟨axis_mem_basic y (by norm_num), fun h => hy h.1⟩
  obtain ⟨δ, hδ, hsub⟩ := hopen y hmem
  exact ⟨δ, hδ, fun p hp hx => (hsub hp).2 ⟨hx, (hsub hp).1⟩⟩

instance

Clopen neighbourhoods give a zero-dimensional topology.

instance : ZeroDimensionalSpace MysiorPlane
Proof
:= by
  rw [zeroDimensionalSpace_iff_isTopologicalBasis_isClopen]
  apply isTopologicalBasis_of_isOpen_of_nhds
    (fun (s : Set MysiorPlane) (h : IsClopen s) => h.isOpen)
  intro p u hpu hu
  by_cases hp : vertical p = 0
  · have he := eq_axis_of_vertical_eq_zero hp
    obtain ⟨ε, hε, hsub⟩ := hu (horizontal p) (he ▸ hpu)
    exact ⟨basic (horizontal p) ε, ⟨isClosed_basic _ hε, isOpen_basic _ hε⟩,
      he ▸ axis_mem_basic _ hε, hsub⟩
  · exact ⟨{p}, ⟨isClosed_singleton, isOpen_singleton hp⟩, rfl,
      singleton_subset_iff.mpr hpu⟩

theorem not_countableChainCondition

TopologyByExample.MysiorPlane.not_countableChainCondition

An uncountable horizontal line of isolated points violates the countable chain condition.

theorem not_countableChainCondition :
    ¬ ∀ S : Set (Set MysiorPlane), (∀ s ∈ S, IsOpen s ∧ s.Nonempty) →
      S.PairwiseDisjoint id → S.Countable
Proof
:= by
  intro h
  let f : ℝ → Set MysiorPlane := fun x => {point x 1}
  have hf : Function.Injective f := by
    intro x y hxy
    have hp := singleton_injective hxy
    exact congrArg horizontal hp
  have hc := h (range f) (by
    rintro _ ⟨x, rfl⟩
    exact ⟨isOpen_singleton (by norm_num [point, vertical]), singleton_nonempty _⟩) (by
    rintro _ ⟨x, rfl⟩ _ ⟨y, rfl⟩ hne
    exact disjoint_singleton.mpr (fun h => hne (congrArg singleton h)))
  have : (univ : Set ℝ).Countable :=
    countable_of_injective_of_countable_image hf.injOn (by simpa only [image_univ] using hc)
  exact not_countable_univ this

On this site: The Mysior plane does not satisfy the countable chain condition

theorem not_isOpen_singleton_axis

TopologyByExample.MysiorPlane.not_isOpen_singleton_axis

The origin is not isolated.

theorem not_isOpen_singleton_axis : ¬ IsOpen ({axis 0} : Set MysiorPlane)
Proof
:= by
  intro h
  obtain ⟨ε, hε, he⟩ := h 0 rfl
  have hp : point 0 (ε / 2) ∈ basic 0 ε := by
    left
    exact ⟨rfl, by change |ε / 2| < ε; rw [abs_of_pos (half_pos hε)]; linarith⟩
  have hpoint := mem_singleton_iff.mp (he hp)
  have := congrArg vertical hpoint
  change ε / 2 = 0 at this
  linarith

theorem not_discreteTopology

TopologyByExample.MysiorPlane.not_discreteTopology

The plane is not discrete.

theorem not_discreteTopology : ¬ DiscreteTopology MysiorPlane
Proof
:= by
  intro h
  exact not_isOpen_singleton_axis (isOpen_discrete _)

On this site: The Mysior plane is not discrete

theorem hasIsolatedPoint

TopologyByExample.MysiorPlane.hasIsolatedPoint

The plane has an isolated point.

theorem hasIsolatedPoint : HasIsolatedPoint MysiorPlane
Proof
:=
  ⟨point 0 1, isOpen_singleton (by norm_num [point, vertical])⟩

On this site: The Mysior plane has an isolated point

instance

instance : Nonempty MysiorPlane
Proof
:= ⟨axis 0⟩

theorem finite_centres

TopologyByExample.MysiorPlane.finite_centres

A point belongs to basic sets at only finitely many centres.

theorem finite_centres (p : MysiorPlane) (r : ℝ → ℝ) : {x | p ∈ basic x (r x)}.Finite
Proof
:= by
  apply (show ({horizontal p, horizontal p - 1 - vertical p,
    horizontal p - Real.sqrt 2 + vertical p} : Set ℝ).Finite by simp).subset
  intro x hx
  change x = _ ∨ x = _ ∨ x = _
  rcases hx with hx | hx | hx
  · exact Or.inl hx.1.symm
  · exact Or.inr (Or.inl (by linarith [hx.1]))
  · exact Or.inr (Or.inr (by linarith [hx.1]))

instance

The Mysior plane is metacompact.

instance : MetacompactSpace MysiorPlane
Proof
:= by
  classical
  constructor
  intro U hUo hU
  have ha : ∀ x : ℝ, ∃ ε > 0, ∃ u ∈ U, basic x ε ⊆ u := by
    intro x
    obtain ⟨u, hu, hxu⟩ := mem_sUnion.mp (hU.symm ▸ mem_univ (axis x))
    obtain ⟨ε, hε, he⟩ := hUo u hu x hxu
    exact ⟨ε, hε, u, hu, he⟩
  choose r hr u hu hru using ha
  let V : Set (Set MysiorPlane) := range (fun x => basic x (r x)) ∪
    (fun p => ({p} : Set MysiorPlane)) '' {p | vertical p ≠ 0}
  refine ⟨V, ?_, ?_, ?_, ?_⟩
  · rintro v (⟨x, rfl⟩ | ⟨p, hp, rfl⟩)
    · exact isOpen_basic x (hr x)
    · exact isOpen_singleton hp
  · apply eq_univ_of_forall
    intro p
    by_cases hp : vertical p = 0
    · have he := eq_axis_of_vertical_eq_zero hp
      exact mem_sUnion.mpr ⟨basic (horizontal p) (r (horizontal p)),
        Or.inl (mem_range_self _), he ▸ axis_mem_basic _ (hr _)⟩
    · exact mem_sUnion.mpr ⟨{p}, Or.inr ⟨p, hp, rfl⟩, rfl⟩
  · intro p
    have hf : ((fun x => basic x (r x)) '' {x | p ∈ basic x (r x)} ∪
        {({p} : Set MysiorPlane)}).Finite :=
      (finite_centres p r).image _ |>.union (finite_singleton _)
    apply Set.Finite.of_finite_image (f := Subtype.val) _ Subtype.val_injective.injOn
    apply hf.subset
    rintro v ⟨⟨v, hv⟩, hp, rfl⟩
    rcases hv with ⟨x, rfl⟩ | ⟨q, hq, rfl⟩
    · exact Or.inl ⟨x, hp, rfl⟩
    · have he : p = q := hp
      exact Or.inr (by simp only [mem_singleton_iff]; rw [he])
  · rintro v (⟨x, rfl⟩ | ⟨p, hp, rfl⟩)
    · exact ⟨u x, hu x, hru x⟩
    · obtain ⟨u, hu, hpu⟩ := mem_sUnion.mp (hU.symm ▸ mem_univ p)
      exact ⟨u, hu, singleton_subset_iff.mpr hpu⟩

theorem isClosed_horizontal_one

TopologyByExample.MysiorPlane.isClosed_horizontal_one

Horizontal lines away from the axis are closed.

theorem isClosed_horizontal_one : IsClosed {p : MysiorPlane | vertical p = 1}
Proof
:= by
  apply isOpen_compl_iff.mp
  intro x _
  refine ⟨1, by norm_num, ?_⟩
  intro p hp he
  have hh := abs_vertical_lt_of_mem_basic hp
  change vertical p = 1 at he
  rw [he, abs_one] at hh
  exact (lt_irrefl _) hh

theorem closedDiscreteContinuum

TopologyByExample.MysiorPlane.closedDiscreteContinuum

The line at height one is a closed discrete set of continuum cardinality.

theorem closedDiscreteContinuum : ∃ s : Set MysiorPlane,
    IsClosed s ∧ IsDiscrete s ∧ Cardinal.continuum ≤ Cardinal.mk s
Proof
:= by
  let s : Set MysiorPlane := {p | vertical p = 1}
  refine ⟨s, isClosed_horizontal_one, ?_, ?_⟩
  · apply isDiscrete_iff_discreteTopology.mpr
    apply discreteTopology_iff_isOpen_singleton.mpr
    intro p
    have hp : vertical (p : MysiorPlane) ≠ 0 := by rw [p.property]; norm_num
    have he : ({p} : Set s) = Subtype.val ⁻¹' ({(p : MysiorPlane)} : Set MysiorPlane) := by
      ext q
      exact ⟨fun h => congrArg Subtype.val h, fun h => Subtype.ext h⟩
    rw [he]
    exact (isOpen_singleton hp).preimage continuous_subtypeVal
  · let f : ℝ → s := fun x => ⟨point x 1, rfl⟩
    have hf : Function.Injective f := by
      intro x y h
      exact congrArg (fun p : s => horizontal p.val) h
    simpa only [Cardinal.mk_real] using Cardinal.mk_le_of_injective hf

On this site: The Mysior plane has a closed discrete subset of cardinality \(\mathfrak{c}\)

theorem isClosed_of_vertical_bound

TopologyByExample.MysiorPlane.isClosed_of_vertical_bound

A set uniformly separated from the axis is closed.

theorem isClosed_of_vertical_bound {s : Set MysiorPlane} {δ : ℝ} (hδ : 0 < δ)
    (hs : ∀ p ∈ s, δ ≤ |vertical p|) : IsClosed s
Proof
:= by
  apply isOpen_compl_iff.mp
  intro x _
  refine ⟨δ, hδ, ?_⟩
  intro p hp hps
  exact (not_lt_of_ge (hs p hps)) (abs_vertical_lt_of_mem_basic hp)

theorem isDiscrete_of_vertical_ne_zero

TopologyByExample.MysiorPlane.isDiscrete_of_vertical_ne_zero

Every subset avoiding the axis is discrete.

theorem isDiscrete_of_vertical_ne_zero {s : Set MysiorPlane}
    (hs : ∀ p ∈ s, vertical p ≠ 0) : IsDiscrete s
Proof
:= by
  apply isDiscrete_iff_discreteTopology.mpr
  apply discreteTopology_iff_isOpen_singleton.mpr
  intro p
  have he : ({p} : Set s) = Subtype.val ⁻¹' ({(p : MysiorPlane)} : Set MysiorPlane) := by
    ext q
    exact ⟨fun h => congrArg Subtype.val h, fun h => Subtype.ext h⟩
  rw [he]
  exact (isOpen_singleton (hs p p.property)).preimage continuous_subtypeVal

theorem not_weaklyLocallyCompactSpace

TopologyByExample.MysiorPlane.not_weaklyLocallyCompactSpace

No compact neighbourhood exists at the origin.

theorem not_weaklyLocallyCompactSpace : ¬ WeaklyLocallyCompactSpace MysiorPlane
Proof
:= by
  intro h
  obtain ⟨K, hK, hKn⟩ := h.exists_compact_mem_nhds (axis 0)
  obtain ⟨ε, hε, heK⟩ := (hasBasis_axis 0).mem_iff.mp hKn
  let s : Set MysiorPlane := (point 0) '' Ioo (ε / 2) ε
  have hsbound : ∀ p ∈ s, ε / 2 ≤ |vertical p| := by
    rintro p ⟨y, hy, rfl⟩
    change ε / 2 ≤ |y|
    exact hy.1.le.trans (le_abs_self y)
  have hsK : s ⊆ K := by
    rintro p ⟨y, hy, rfl⟩
    apply heK
    left
    refine ⟨rfl, ?_⟩
    change |y| < ε
    rw [abs_of_pos (by linarith [hy.1] : 0 < y)]
    exact hy.2
  have hsclosed := isClosed_of_vertical_bound (by linarith : 0 < ε / 2) hsbound
  have hsdiscrete := isDiscrete_of_vertical_ne_zero (s := s) (by
    intro p hp hzero
    have hb := hsbound p hp
    rw [hzero, abs_zero] at hb
    linarith)
  have hsfinite := (hK.of_isClosed_subset hsclosed hsK).finite hsdiscrete
  have hsinfinite : s.Infinite := by
    apply Set.Infinite.image ?_ ?_
    · intro x _ y _ hxy
      exact congrArg vertical hxy
    · exact Set.Ioo_infinite (by linarith)
  exact hsinfinite hsfinite

On this site: The Mysior plane is not weakly locally compact

definition unboundedFunction

TopologyByExample.MysiorPlane.unboundedFunction

A continuous unbounded real function, constant near the axis.

noncomputable def unboundedFunction : C(MysiorPlane, ℝ)
Definition
where
  toFun p := if |vertical p| < 1 then 0 else horizontal p
  continuous_toFun := by
    apply continuous_def.mpr
    intro U _ x hx
    refine ⟨1, zero_lt_one, ?_⟩
    intro p hp
    have hx0 : (0 : ℝ) ∈ U := by
      change (if |(0 : ℝ)| < 1 then 0 else x) ∈ U at hx
      simpa using hx
    change (if |vertical p| < 1 then 0 else horizontal p) ∈ U
    simpa [abs_vertical_lt_of_mem_basic hp] using hx0

theorem not_pseudocompactSpace

TopologyByExample.MysiorPlane.not_pseudocompactSpace

The Mysior plane is not pseudocompact.

theorem not_pseudocompactSpace : ¬ PseudocompactSpace MysiorPlane
Proof
:= by
  intro h
  obtain ⟨M, hM⟩ := (h.bddAbove_and_bddBelow_range unboundedFunction).1
  have hm := hM (mem_range_self (point (M + 1) 1))
  change (if |(1 : ℝ)| < 1 then 0 else M + 1) ≤ M at hm
  norm_num at hm

On this site: The Mysior plane is not pseudocompact

theorem cardinality_continuum

TopologyByExample.MysiorPlane.cardinality_continuum

The underlying plane has continuum cardinality.

theorem cardinality_continuum : CardinalityContinuum MysiorPlane
Proof
:= by
  change Cardinal.mk (ℝ × ℝ) = Cardinal.continuum
  rw [Cardinal.mk_prod, Cardinal.mk_real, Cardinal.lift_continuum,
    Cardinal.continuum_mul_self]

On this site: The Mysior plane has cardinality equal to \(\mathfrak{c}\)