Lean library · module TopologyByExample.Spaces.Pseudocircle
The pseudocircle
The pseudocircle is the four-point space {a₀, a₁, b₀, b₁} whose open sets are the upper sets
of the partial order in which a₀ and a₁ each lie below both b₀ and b₁, with no other
relations (the complete bipartite poset K₂,₂): the open sets are ∅, {b₀}, {b₁},
{b₀, b₁}, {a₀, b₀, b₁}, {a₁, b₀, b₁} and the whole space.
The values
instFinite,instAlexandrovDiscrete,instT0Space(by instance);preconnectedSpace: a clopen set is an upper and a lower set, and the order is connected;not_preirreducibleSpace:{b₀}and{b₁}are disjoint open sets;not_normalSpace: the closed pointsa₀anda₁have no disjoint neighbourhoods;not_semiregularSpace: every neighbourhood ofa₀is dense, and{a₀, b₀, b₁}is not the whole space.
Results
TopologyByExample.Pseudocircle.isQuotientMap_ofCircle: the pseudocircle is the quotient of the circle collapsing the open upper half circle tob₀and the open lower half circle tob₁, with1 ↦ a₀and-1 ↦ a₁.
References
The space is π-Base's S000213 (CC BY 4.0).
Tags
pseudocircle, finite space, Alexandrov topology, upper set topology
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
inductive type Pseudocircle
TopologyByExample.Pseudocircle
The pseudocircle: four points a₀, a₁, b₀, b₁ with the upper set topology of the order in
which each aᵢ lies below each bⱼ.
inductive Pseudocircle : Type
/-- The first closed point. -/
| a₀
/-- The second closed point. -/
| a₁
/-- The first open point. -/
| b₀
/-- The second open point. -/
| b₁
deriving DecidableEq, Fintype
On this site: Space: Pseudocircle
definition IsLow
TopologyByExample.Pseudocircle.IsLow
The lower points a₀ and a₁.
def IsLow : Pseudocircle → Prop
| a₀ | a₁ => True
| b₀ | b₁ => False
instance
Being a lower point is decidable.
instance : DecidablePred IsLow
Proof
:= fun x ↦ by cases x <;> unfold IsLow <;> infer_instance
instance
Each aᵢ lies below each bⱼ, and there are no other relations.
instance : PartialOrder Pseudocircle
theorem le_def
TopologyByExample.Pseudocircle.le_def
The order, unfolded.
theorem le_def {x y : Pseudocircle} : x ≤ y ↔ x = y ∨ (IsLow x ∧ ¬IsLow y)
Proof
:= Iff.rfl
instance
The order is decidable.
instance : DecidableLE Pseudocircle
Proof
:= fun _ _ ↦ decidable_of_iff' _ le_def
instance
The topology whose open sets are the upper sets.
instance : TopologicalSpace Pseudocircle
Proof
:= Topology.upperSet Pseudocircle
instance
The topology is the upper set topology.
instance : Topology.IsUpperSet Pseudocircle
Proof
:= ⟨rfl⟩
instance
The pseudocircle is nonempty.
instance : Nonempty Pseudocircle
Proof
:= ⟨a₀⟩
instance instFinite
TopologyByExample.Pseudocircle.instFinite
The pseudocircle is finite.
instance instFinite : Finite Pseudocircle
Proof
:= inferInstance
instance instAlexandrovDiscrete
TopologyByExample.Pseudocircle.instAlexandrovDiscrete
The pseudocircle is Alexandrov.
instance instAlexandrovDiscrete : AlexandrovDiscrete Pseudocircle
Proof
:= inferInstance
instance instT0Space
TopologyByExample.Pseudocircle.instT0Space
The pseudocircle is T₀: the open set Ici x contains x and not the points below it.
instance instT0Space : T0Space Pseudocircle
Proof
:= inferInstance
theorem isOpen_iff
TopologyByExample.Pseudocircle.isOpen_iff
The open sets are the upper sets.
theorem isOpen_iff {s : Set Pseudocircle} : IsOpen s ↔ IsUpperSet s
Proof
:=
Topology.IsUpperSet.isOpen_iff_isUpperSet
theorem preconnectedSpace
TopologyByExample.Pseudocircle.preconnectedSpace
The pseudocircle is connected: a clopen set containing a point contains every point comparable with it, and any two points are joined by a chain of comparable points.
theorem preconnectedSpace : PreconnectedSpace Pseudocircle
Proof
:= by
refine preconnectedSpace_iff_clopen.2 fun s hs ↦ ?_
have hu := isOpen_iff.1 hs.isOpen
have hl := Topology.IsUpperSet.isClosed_iff_isLower.1 hs.isClosed
have up : ∀ x y : Pseudocircle, x ≤ y → (x ∈ s ↔ y ∈ s) := fun x y h ↦
⟨fun hx ↦ hu h hx, fun hy ↦ hl h hy⟩
rcases s.eq_empty_or_nonempty with h | ⟨x, hx⟩
· exact Or.inl h
refine Or.inr (eq_univ_of_forall fun y ↦ ?_)
have h₀ : a₀ ∈ s := by
cases x
· exact hx
· exact (up a₀ b₀ (by decide)).2 ((up a₁ b₀ (by decide)).1 hx)
· exact (up a₀ b₀ (by decide)).2 hx
· exact (up a₀ b₁ (by decide)).2 hx
cases y
· exact h₀
· exact (up a₁ b₀ (by decide)).2 ((up a₀ b₀ (by decide)).1 h₀)
· exact (up a₀ b₀ (by decide)).1 h₀
· exact (up a₀ b₁ (by decide)).1 h₀
On this site: The pseudocircle is connected
theorem not_preirreducibleSpace
TopologyByExample.Pseudocircle.not_preirreducibleSpace
The pseudocircle is not hyperconnected: {b₀} and {b₁} are disjoint nonempty open
sets.
theorem not_preirreducibleSpace : ¬PreirreducibleSpace Pseudocircle
Proof
:= fun h ↦ by
obtain ⟨z, -, hz₀, hz₁⟩ := h.isPreirreducible_univ {b₀} {b₁}
(isOpen_iff.2 fun x y hxy hx ↦ by revert x y; decide)
(isOpen_iff.2 fun x y hxy hx ↦ by revert x y; decide)
⟨b₀, trivial, rfl⟩ ⟨b₁, trivial, rfl⟩
rw [mem_singleton_iff] at hz₀ hz₁
exact absurd (hz₀.symm.trans hz₁) (by decide)
On this site: The pseudocircle is not hyperconnected
theorem not_normalSpace
TopologyByExample.Pseudocircle.not_normalSpace
The pseudocircle is not normal: {a₀} and {a₁} are disjoint closed sets, but every open set
containing either contains b₀.
theorem not_normalSpace : ¬NormalSpace Pseudocircle
Proof
:= fun h ↦ by
have hc : ∀ x : Pseudocircle, IsLow x → IsClosed ({x} : Set Pseudocircle) := fun x hx ↦
Topology.IsUpperSet.isClosed_iff_isLower.2 fun y z hzy hy ↦ by
rw [mem_singleton_iff] at hy ⊢
cases x <;> cases y <;> cases z <;> simp_all [le_def, IsLow]
have := h.normal _ _ (hc a₀ trivial) (hc a₁ trivial) (by simp)
rw [separatedNhds_iff_disjoint, nhdsSet_singleton, nhdsSet_singleton,
Topology.IsUpperSet.nhds_eq_principal_Ici, Topology.IsUpperSet.nhds_eq_principal_Ici,
disjoint_principal_principal] at this
exact this.ne_of_mem (show a₀ ≤ b₀ by decide) (show a₁ ≤ b₀ by decide) rfl
On this site: The pseudocircle is not normal
theorem not_semiregularSpace
TopologyByExample.Pseudocircle.not_semiregularSpace
The pseudocircle is not semiregular: every neighbourhood of a₀ contains {a₀, b₀, b₁},
which is dense, and that set is not the whole space.
theorem not_semiregularSpace : ¬SemiregularSpace Pseudocircle
Proof
:= by
refine not_semiregularSpace_of_forall_mem_nhds_dense (x := a₀) (fun s hs ↦ ?_)
(s := Ici a₀) ((isOpen_iff.2 (IsUpperSet.Ici a₀)).mem_nhds self_mem_Ici) fun h ↦ ?_
· rw [Topology.IsUpperSet.nhds_eq_principal_Ici, mem_principal] at hs
refine dense_iff_closure_eq.2 (eq_univ_of_forall fun y ↦ ?_)
rw [Topology.IsUpperSet.closure_eq_lowerClosure]
cases y
· exact mem_lowerClosure.2 ⟨b₀, hs (show a₀ ≤ b₀ by decide), by decide⟩
· exact mem_lowerClosure.2 ⟨b₀, hs (show a₀ ≤ b₀ by decide), by decide⟩
· exact mem_lowerClosure.2 ⟨b₀, hs (show a₀ ≤ b₀ by decide), le_rfl⟩
· exact mem_lowerClosure.2 ⟨b₁, hs (show a₀ ≤ b₁ by decide), le_rfl⟩
· have : a₁ ∈ Ici a₀ := h ▸ mem_univ a₁
exact absurd this (by decide)
On this site: The pseudocircle is not semiregular
A quotient of the circle
definition ofCircle
TopologyByExample.Pseudocircle.ofCircle
The map from the circle onto the pseudocircle that sends the open upper half circle to b₀,
the open lower half circle to b₁, the point 1 to a₀ and the point -1 to a₁.
noncomputable def ofCircle (z : Circle) : Pseudocircle
:=
if 0 < (z : ℂ).im then b₀ else if (z : ℂ).im < 0 then b₁ else if 0 < (z : ℂ).re then a₀ else a₁
theorem continuous_im_circle
TopologyByExample.Pseudocircle.continuous_im_circle
The imaginary part is continuous on the circle.
theorem continuous_im_circle : Continuous fun z : Circle ↦ (z : ℂ).im
Proof
:=
Complex.continuous_im.comp continuous_subtypeVal
theorem continuous_re_circle
TopologyByExample.Pseudocircle.continuous_re_circle
The real part is continuous on the circle.
theorem continuous_re_circle : Continuous fun z : Circle ↦ (z : ℂ).re
Proof
:=
Complex.continuous_re.comp continuous_subtypeVal
theorem re_sq_of_im_eq_zero
TopologyByExample.Pseudocircle.re_sq_of_im_eq_zero
A point of the circle with imaginary part 0 has real part 1 or -1.
theorem re_sq_of_im_eq_zero {z : Circle} (h : (z : ℂ).im = 0) : (z : ℂ).re ^ 2 = 1
Proof
:= by
have := Circle.normSq_coe z
rw [Complex.normSq_apply, h] at this
nlinarith
theorem im_exp
TopologyByExample.Pseudocircle.im_exp
The imaginary part of exp (t i) is sin t.
theorem im_exp (t : ℝ) : ((Circle.exp t : Circle) : ℂ).im = Real.sin t
Proof
:= by
rw [Circle.coe_exp, Complex.exp_ofReal_mul_I_im]
theorem re_exp
TopologyByExample.Pseudocircle.re_exp
The real part of exp (t i) is cos t.
theorem re_exp (t : ℝ) : ((Circle.exp t : Circle) : ℂ).re = Real.cos t
Proof
:= by
rw [Circle.coe_exp, Complex.exp_ofReal_mul_I_re]
theorem continuous_ofCircle
TopologyByExample.Pseudocircle.continuous_ofCircle
The map from the circle onto the pseudocircle is continuous.
theorem continuous_ofCircle : Continuous ofCircle
Proof
:= by
refine continuous_iff_continuousAt.2 fun z ↦ ?_
rw [ContinuousAt, Topology.IsUpperSet.nhds_eq_principal_Ici (ofCircle z), tendsto_principal]
by_cases h₁ : 0 < (z : ℂ).im
· filter_upwards [continuousAt_const.eventually_lt continuous_im_circle.continuousAt h₁]
with w hw
simp [ofCircle, h₁, hw]
by_cases h₂ : (z : ℂ).im < 0
· filter_upwards [continuous_im_circle.continuousAt.eventually_lt continuousAt_const h₂]
with w hw
simp [ofCircle, h₁, h₂, hw, hw.not_gt]
have h₀ : (z : ℂ).im = 0 := by linarith [not_lt.1 h₁, not_lt.1 h₂]
by_cases h₃ : 0 < (z : ℂ).re
· filter_upwards [continuousAt_const.eventually_lt continuous_re_circle.continuousAt h₃]
with w hw
simp only [ofCircle, h₁, h₂, h₃, ↓reduceIte, mem_Ici]
split_ifs <;> decide
· have h₄ : (z : ℂ).re < 0 := by
have := re_sq_of_im_eq_zero h₀
rcases lt_or_eq_of_le (not_lt.1 h₃) with h | h
· exact h
· rw [h] at this; norm_num at this
filter_upwards [continuous_re_circle.continuousAt.eventually_lt continuousAt_const h₄]
with w hw
simp only [ofCircle, h₁, h₂, h₃, ↓reduceIte, mem_Ici]
split_ifs with h₅ h₆ h₇ <;> first | decide | exact absurd hw (not_lt.2 h₇.le)
theorem surjective_ofCircle
TopologyByExample.Pseudocircle.surjective_ofCircle
The map from the circle onto the pseudocircle is surjective.
theorem surjective_ofCircle : Function.Surjective ofCircle
Proof
:= by
intro x
cases x
· exact ⟨Circle.exp 0, by
simp only [ofCircle, im_exp, re_exp, Real.sin_zero, Real.cos_zero]; norm_num⟩
· exact ⟨Circle.exp Real.pi, by
simp only [ofCircle, im_exp, re_exp, Real.sin_pi, Real.cos_pi]; norm_num⟩
· exact ⟨Circle.exp (Real.pi / 2), by
simp only [ofCircle, im_exp, Real.sin_pi_div_two]; norm_num⟩
· exact ⟨Circle.exp (-(Real.pi / 2)), by
simp only [ofCircle, im_exp, Real.sin_neg, Real.sin_pi_div_two]; norm_num⟩
theorem exists_exp_mem
TopologyByExample.Pseudocircle.exists_exp_mem
If an open set of the circle contains exp (c i), it contains exp (t i) for some t in
(c, c + π), and for some t in (c - π, c).
theorem exists_exp_mem {U : Set Circle} (hU : IsOpen U) {c : ℝ} (hc : Circle.exp c ∈ U) :
(∃ t ∈ Ioo c (c + Real.pi), Circle.exp t ∈ U) ∧
(∃ t ∈ Ioo (c - Real.pi) c, Circle.exp t ∈ U)
Proof
:= by
have h : ∀ᶠ t in 𝓝 c, Circle.exp t ∈ U :=
Circle.exp.continuous.continuousAt.preimage_mem_nhds (hU.mem_nhds hc)
refine ⟨((h.filter_mono nhdsWithin_le_nhds).and
(Ioo_mem_nhdsGT (by linarith [Real.pi_pos] : c < c + Real.pi))).exists.imp
fun t ht ↦ ⟨ht.2, ht.1⟩,
((h.filter_mono nhdsWithin_le_nhds).and
(Ioo_mem_nhdsLT (by linarith [Real.pi_pos] : c - Real.pi < c))).exists.imp
fun t ht ↦ ⟨ht.2, ht.1⟩⟩
theorem ofCircle_exp_of_sin_pos
TopologyByExample.Pseudocircle.ofCircle_exp_of_sin_pos
A point exp (t i) of the open upper half circle is sent to b₀.
theorem ofCircle_exp_of_sin_pos {t : ℝ} (h : 0 < Real.sin t) :
ofCircle (Circle.exp t) = b₀
Proof
:= by
simp [ofCircle, h]
theorem ofCircle_exp_of_sin_neg
TopologyByExample.Pseudocircle.ofCircle_exp_of_sin_neg
A point exp (t i) of the open lower half circle is sent to b₁.
theorem ofCircle_exp_of_sin_neg {t : ℝ} (h : Real.sin t < 0) :
ofCircle (Circle.exp t) = b₁
Proof
:= by
simp [ofCircle, h, h.not_gt]
theorem isQuotientMap_ofCircle
TopologyByExample.Pseudocircle.isQuotientMap_ofCircle
The pseudocircle is the quotient of the circle in which the open upper half circle and the open lower half circle are each collapsed to a point.
theorem isQuotientMap_ofCircle : IsQuotientMap ofCircle
Proof
:= by
refine ⟨isCoinducing_iff.2 fun s ↦ ⟨fun hs ↦ ?_, fun hs ↦ hs.preimage continuous_ofCircle⟩,
surjective_ofCircle⟩
have hb : a₀ ∈ s ∨ a₁ ∈ s → b₀ ∈ s ∧ b₁ ∈ s := by
rintro (h | h)
· obtain ⟨⟨t, ht, hts⟩, ⟨u, hu, hus⟩⟩ := exists_exp_mem hs (c := 0)
(show ofCircle (Circle.exp 0) ∈ s by simpa [ofCircle, im_exp, re_exp] using h)
rw [zero_add] at ht
rw [zero_sub] at hu
refine ⟨?_, ?_⟩
· have := ofCircle_exp_of_sin_pos (Real.sin_pos_of_pos_of_lt_pi ht.1 ht.2)
rw [mem_preimage, this] at hts
exact hts
· have := ofCircle_exp_of_sin_neg (Real.sin_neg_of_neg_of_neg_pi_lt hu.2 hu.1)
rw [mem_preimage, this] at hus
exact hus
· obtain ⟨⟨t, ht, hts⟩, ⟨u, hu, hus⟩⟩ := exists_exp_mem hs (c := Real.pi)
(show ofCircle (Circle.exp Real.pi) ∈ s by
have : ofCircle (Circle.exp Real.pi) = a₁ := by
simp only [ofCircle, im_exp, re_exp, Real.sin_pi, Real.cos_pi]
norm_num
rw [this]
exact h)
refine ⟨?_, ?_⟩
· have := ofCircle_exp_of_sin_pos
(Real.sin_pos_of_pos_of_lt_pi (by linarith [hu.1]) hu.2)
rw [mem_preimage, this] at hus
exact hus
· have hneg : Real.sin t < 0 := by
rw [← Real.sin_sub_two_pi]
exact Real.sin_neg_of_neg_of_neg_pi_lt (by linarith [ht.2]) (by linarith [ht.1])
have := ofCircle_exp_of_sin_neg hneg
rw [mem_preimage, this] at hts
exact hts
rw [isOpen_iff]
intro x y hxy hx
rcases le_def.1 hxy with rfl | ⟨hlx, hly⟩
· exact hx
· cases x <;> cases y <;> simp only [IsLow, not_true, not_false_eq_true] at hlx hly
· exact (hb (Or.inl hx)).1
· exact (hb (Or.inl hx)).2
· exact (hb (Or.inr hx)).1
· exact (hb (Or.inr hx)).2
On this site: Pseudocircle: A quotient of the circle