Lean library · module TopologyByExample.Theorems.DispersionExamples
Examples of biconnectedness and dispersion points
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
- TopologyByExample.Theorems.DispersionPoint
- TopologyByExample.Theorems.Indiscrete
- TopologyByExample.Spaces.KnasterKuratowskiFan
- Mathlib.Topology.Order.IntermediateValue
- Mathlib.Topology.WithTopology
- Mathlib.Data.Set.Card
- TopologyByExample.Spaces.LongLine
- TopologyByExample.Spaces.Sierpinski
- TopologyByExample.Operators.OpenExtension
- TopologyByExample.Operators.ClosedExtension
theorem knasterKuratowski_hasDispersionPoint
TopologyByExample.DispersionExamples.knasterKuratowski_hasDispersionPoint
The apex of the Knaster–Kuratowski fan is a dispersion point.
theorem knasterKuratowski_hasDispersionPoint : HasDispersionPoint KnasterKuratowskiFan
Proof
:=
{ KnasterKuratowskiFan.preconnectedSpace with
exists_point := ⟨KnasterKuratowski.apexPt,
KnasterKuratowski.isTotallyDisconnected_compl_apexPt⟩ }
On this site: The Knaster–Kuratowski fan has a dispersion point
theorem real_not_biconnected
TopologyByExample.DispersionExamples.real_not_biconnected
The real line partitions into two nondegenerate intervals.
theorem real_not_biconnected : ¬ BiconnectedSpace ℝ
Proof
:= by
apply not_biconnectedSpace_of_partition (s := Iio (0 : ℝ)) (t := Ici (0 : ℝ))
isPreconnected_Iio isPreconnected_Ici
· exact disjoint_left.mpr fun x hx hy ↦ (not_lt_of_ge hy) hx
· exact Iio_union_Ici
· intro h
have := h (show (-2 : ℝ) ∈ Iio 0 by norm_num) (show (-1 : ℝ) ∈ Iio 0 by norm_num)
norm_num at this
· intro h
have := h (show (0 : ℝ) ∈ Ici 0 by norm_num) (show (1 : ℝ) ∈ Ici 0 by norm_num)
norm_num at this
theorem isPreconnected_of_indiscrete
TopologyByExample.DispersionExamples.isPreconnected_of_indiscrete
Every subset of an indiscrete space is preconnected.
theorem isPreconnected_of_indiscrete {X : Type*} [TopologicalSpace X]
[IndiscreteTopology X] (s : Set X) : IsPreconnected s
Proof
:=
isPreconnected_iff_preconnectedSpace.mpr inferInstance
theorem subsingleton_of_indiscrete_of_isTotallyDisconnected
TopologyByExample.DispersionExamples.subsingleton_of_indiscrete_of_isTotallyDisconnected
In an indiscrete space, a totally disconnected subset has at most one point.
theorem subsingleton_of_indiscrete_of_isTotallyDisconnected {X : Type*} [TopologicalSpace X]
[IndiscreteTopology X] {s : Set X} (h : IsTotallyDisconnected s) : s.Subsingleton
Proof
:=
h s subset_rfl (isPreconnected_of_indiscrete s)
theorem subsingleton_compl_of_indiscrete_dispersion
TopologyByExample.DispersionExamples.subsingleton_compl_of_indiscrete_dispersion
In an indiscrete space a dispersion point leaves at most one point.
theorem subsingleton_compl_of_indiscrete_dispersion {X : Type*} [TopologicalSpace X]
[IndiscreteTopology X] (h : HasDispersionPoint X) :
∃ p : X, ({p}ᶜ : Set X).Subsingleton
Proof
:= by
obtain ⟨p, hp⟩ := h.exists_point
exact ⟨p, subsingleton_of_indiscrete_of_isTotallyDisconnected hp⟩
theorem biconnected_of_card_le_three
TopologyByExample.DispersionExamples.biconnected_of_card_le_three
Connected spaces with at most three points are biconnected.
theorem biconnected_of_card_le_three {X : Type*} [TopologicalSpace X] [Finite X]
[PreconnectedSpace X] (hcard : Nat.card X ≤ 3) : BiconnectedSpace X
Proof
:= by
constructor
intro s t _ _ hd hu
have hsum := Set.ncard_union_eq hd
rw [hu, ncard_univ] at hsum
rw [← ncard_le_one_iff_subsingleton, ← ncard_le_one_iff_subsingleton]
omega
theorem dispersion_of_card_le_two
TopologyByExample.DispersionExamples.dispersion_of_card_le_two
A nonempty connected space with at most two points has a dispersion point.
theorem dispersion_of_card_le_two {X : Type*} [TopologicalSpace X] [Finite X]
[Nonempty X] [PreconnectedSpace X] (hcard : Nat.card X ≤ 2) : HasDispersionPoint X
Proof
:= by
constructor
obtain ⟨p⟩ := ‹Nonempty X›
refine ⟨p, fun s hs _ ↦ ?_⟩
have hn : ({p}ᶜ : Set X).ncard ≤ 1 := by rw [ncard_compl, ncard_singleton]; omega
exact (ncard_le_one_iff_subsingleton.mp hn).anti hs
theorem indiscrete_three_not_dispersion
TopologyByExample.DispersionExamples.indiscrete_three_not_dispersion
An indiscrete space with three points has no dispersion point.
theorem indiscrete_three_not_dispersion : ¬ HasDispersionPoint (WithTopology (Fin 3) ⊤)
Proof
:= by
intro h
obtain ⟨p, hp⟩ := subsingleton_compl_of_indiscrete_dispersion h
have hn := ncard_le_one_iff_subsingleton.mpr hp
rw [ncard_compl, ncard_singleton, Nat.card_congr (WithTopology.equiv (Fin 3) ⊤)] at hn
norm_num at hn
On this site: The three-point indiscrete space has no dispersion point
theorem indiscrete_three_biconnected
TopologyByExample.DispersionExamples.indiscrete_three_biconnected
The three-point indiscrete space is biconnected.
theorem indiscrete_three_biconnected : BiconnectedSpace (WithTopology (Fin 3) ⊤)
Proof
:=
biconnected_of_card_le_three (by rw [Nat.card_congr (WithTopology.equiv (Fin 3) ⊤)]; norm_num)
On this site: The three-point indiscrete space is biconnected
theorem indiscrete_pair_dispersion
TopologyByExample.DispersionExamples.indiscrete_pair_dispersion
The two-point indiscrete space has a dispersion point.
theorem indiscrete_pair_dispersion : HasDispersionPoint (WithTopology Bool ⊤)
Proof
:=
dispersion_of_card_le_two (by rw [Nat.card_congr (WithTopology.equiv Bool ⊤)]; norm_num)
On this site: The indiscrete space with at least two points has a dispersion point
theorem indiscrete_not_biconnected_of_injective_fin_four
TopologyByExample.DispersionExamples.indiscrete_not_biconnected_of_injective_fin_four
Four distinct points suffice to refute biconnectedness in an indiscrete space.
theorem indiscrete_not_biconnected_of_injective_fin_four {X : Type*} [TopologicalSpace X]
[IndiscreteTopology X] (f : Fin 4 → X) (hf : Function.Injective f) :
¬ BiconnectedSpace X
Proof
:= by
apply not_biconnectedSpace_of_partition (s := {f 0, f 1}) (t := {f 0, f 1}ᶜ)
(isPreconnected_of_indiscrete _) (isPreconnected_of_indiscrete _)
disjoint_compl_right (union_compl_self _)
· intro h
have he := hf (h (show f 0 ∈ ({f 0, f 1} : Set X) by simp)
(show f 1 ∈ ({f 0, f 1} : Set X) by simp))
norm_num at he
· intro h
have h2 : f 2 ∈ ({f 0, f 1}ᶜ : Set X) := by simp [hf.eq_iff]
have h3 : f 3 ∈ ({f 0, f 1}ᶜ : Set X) := by simp [hf.eq_iff]
have he := hf (h h2 h3)
norm_num at he
theorem indiscrete_naturals_not_biconnected
TopologyByExample.DispersionExamples.indiscrete_naturals_not_biconnected
The countably infinite indiscrete space is not biconnected.
theorem indiscrete_naturals_not_biconnected : ¬ BiconnectedSpace (WithTopology ℕ ⊤)
Proof
:=
indiscrete_not_biconnected_of_injective_fin_four
(fun i ↦ (WithTopology.equiv ℕ ⊤).symm i.val)
((WithTopology.equiv ℕ ⊤).symm.injective.comp Fin.val_injective)
On this site: The countably infinite indiscrete space is not biconnected
theorem indiscrete_reals_not_biconnected
TopologyByExample.DispersionExamples.indiscrete_reals_not_biconnected
The indiscrete real line is not biconnected.
theorem indiscrete_reals_not_biconnected : ¬ BiconnectedSpace (WithTopology ℝ ⊤)
Proof
:=
indiscrete_not_biconnected_of_injective_fin_four
(fun i ↦ (WithTopology.equiv ℝ ⊤).symm (i.val : ℝ))
((WithTopology.equiv ℝ ⊤).symm.injective.comp (Nat.cast_injective.comp Fin.val_injective))
theorem not_biconnected_of_four_ordered
TopologyByExample.DispersionExamples.not_biconnected_of_four_ordered
Four ordered points yield a partition refuting biconnectedness.
theorem not_biconnected_of_four_ordered {X : Type*} [ConditionallyCompleteLinearOrder X]
[DenselyOrdered X] [TopologicalSpace X] [OrderTopology X]
{a b c d : X} (hab : a < b) (hbc : b < c) (hcd : c < d) : ¬ BiconnectedSpace X
Proof
:= by
apply not_biconnectedSpace_of_partition (s := Iio c) (t := Ici c)
isPreconnected_Iio isPreconnected_Ici
· exact disjoint_left.mpr fun x hx hy ↦ (not_lt_of_ge hy) hx
· exact Iio_union_Ici
· intro h
exact hab.ne (h (hab.trans hbc) hbc)
· intro h
exact hcd.ne (h (show c ∈ Ici c from le_rfl) hcd.le)
theorem unitInterval_not_biconnected
TopologyByExample.DispersionExamples.unitInterval_not_biconnected
The closed unit interval is not biconnected.
theorem unitInterval_not_biconnected : ¬ BiconnectedSpace unitInterval
Proof
:= by
apply not_biconnected_of_four_ordered
(a := (0 : unitInterval)) (b := ⟨1 / 3, by constructor <;> norm_num⟩)
(c := ⟨2 / 3, by constructor <;> norm_num⟩) (d := 1)
all_goals change (_ : ℝ) < _; norm_num
theorem not_biconnected_of_dense_complete_order
TopologyByExample.DispersionExamples.not_biconnected_of_dense_complete_order
Nontrivial densely ordered conditionally complete orders are not biconnected.
theorem not_biconnected_of_dense_complete_order {X : Type*}
[ConditionallyCompleteLinearOrder X] [DenselyOrdered X] [Nontrivial X]
[TopologicalSpace X] [OrderTopology X] : ¬ BiconnectedSpace X
Proof
:= by
obtain ⟨a, d, had⟩ := exists_pair_lt X
obtain ⟨b, hab, hbd⟩ := exists_between had
obtain ⟨c, hbc, hcd⟩ := exists_between hbd
exact not_biconnected_of_four_ordered hab hbc hcd
theorem longRay_not_biconnected
TopologyByExample.DispersionExamples.longRay_not_biconnected
The long ray is not biconnected.
theorem longRay_not_biconnected : ¬ BiconnectedSpace LongRay
theorem openLongRay_not_biconnected
TopologyByExample.DispersionExamples.openLongRay_not_biconnected
The open long ray is not biconnected.
theorem openLongRay_not_biconnected : ¬ BiconnectedSpace OpenLongRay
theorem longLine_not_biconnected
TopologyByExample.DispersionExamples.longLine_not_biconnected
The long line is not biconnected.
theorem longLine_not_biconnected : ¬ BiconnectedSpace LongLine
theorem closedLongRay_not_biconnected
TopologyByExample.DispersionExamples.closedLongRay_not_biconnected
The closed long ray is not biconnected.
theorem closedLongRay_not_biconnected : ¬ BiconnectedSpace (OnePoint LongRay)
Proof
:= by
intro h
have ht := (Homeomorph.biconnectedSpace_iff ClosedLongRay.homeomorphWithTop).mp h
exact not_biconnected_of_dense_complete_order ht
theorem sierpinski_dispersion
TopologyByExample.DispersionExamples.sierpinski_dispersion
The Sierpiński space has a dispersion point.
theorem sierpinski_dispersion : HasDispersionPoint Prop
Proof
:= by
let := Sierpinski.pathPreconnectedSpace
exact dispersion_of_card_le_two (by norm_num)
On this site: The Sierpiński space has a dispersion point
theorem openExtensionPair_biconnected
TopologyByExample.DispersionExamples.openExtensionPair_biconnected
The open extension of an indiscrete pair is biconnected.
theorem openExtensionPair_biconnected : BiconnectedSpace (OpenExtension (WithTopology Bool ⊤))
Proof
:= by
let : Finite (OpenExtension (WithTopology Bool ⊤)) := by
unfold OpenExtension; infer_instance
apply biconnected_of_card_le_three
change Nat.card (Option (WithTopology Bool ⊤)) ≤ 3
rw [Finite.card_option, Nat.card_congr (WithTopology.equiv Bool ⊤)]
norm_num
On this site: Three-point space with open sets ∅, {0, 1} and the whole space is biconnected
theorem closedExtensionPair_biconnected
TopologyByExample.DispersionExamples.closedExtensionPair_biconnected
The closed extension of an indiscrete pair is biconnected.
theorem closedExtensionPair_biconnected :
BiconnectedSpace (ClosedExtension (WithTopology Bool ⊤))
Proof
:= by
apply biconnected_of_card_le_three
change Nat.card (Option (WithTopology Bool ⊤)) ≤ 3
rw [Finite.card_option, Nat.card_congr (WithTopology.equiv Bool ⊤)]
norm_num
On this site: Three-point space with open sets ∅, {0} and the whole space is biconnected