Lean library · module TopologyByExample.Theorems.BiconnectedT0
Separation in infinite biconnected spaces
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.
variable {X : Type*} [TopologicalSpace X]
theorem diff_singleton_of_inseparable
TopologyByExample.IsPreconnected.diff_singleton_of_inseparable
Removing one of two inseparable points preserves preconnectedness.
theorem IsPreconnected.diff_singleton_of_inseparable {s : Set X} (hs : IsPreconnected s)
{a b : X} (hab : Inseparable a b) (hne : a ≠ b) (hb : b ∈ s) :
IsPreconnected (s \ {a})
Proof
:= by
classical
let f : X → X := fun x ↦ if x = a then b else x
have hf : Continuous f := (continuous_congr_of_inseparable (f := id) (g := f)
(fun x ↦ by by_cases h : x = a; · simpa [f, h] using hab
· simpa [f, h] using (Inseparable.refl x))).mp continuous_id
have he : f '' s = s \ {a} := by
ext x
simp only [mem_image, mem_sdiff, mem_singleton_iff]
constructor
· rintro ⟨y, hy, rfl⟩
by_cases h : y = a <;> simp [f, h, hb, hne.symm, hy]
· rintro ⟨hx, hxa⟩
exact ⟨x, hx, by simp [f, hxa]⟩
rw [← he]
exact hs.image f hf.continuousOn
theorem isTotallyDisconnected_compl
TopologyByExample.BiconnectedSpace.isTotallyDisconnected_compl
The complement of a nondegenerate connected set is totally disconnected in a biconnected space.
theorem BiconnectedSpace.isTotallyDisconnected_compl [BiconnectedSpace X]
{s : Set X} (hs : IsPreconnected s) (hn : ¬s.Subsingleton) :
IsTotallyDisconnected sᶜ
Proof
:= by
intro t ht hc
exact (BiconnectedSpace.subsingleton_or_subsingleton hs hc
(Set.disjoint_left.mpr fun _ hx hy ↦ ht hy hx)).resolve_left hn
theorem isClosed_pair_of_four
TopologyByExample.BiconnectedSpace.isClosed_pair_of_four
An inseparable pair in a biconnected space with at least four points is closed.
theorem BiconnectedSpace.isClosed_pair_of_four [BiconnectedSpace X]
(hfour : ∀ a b c : X, ∃ d, d ≠ a ∧ d ≠ b ∧ d ≠ c)
{a b : X} (hab : Inseparable a b) (hne : a ≠ b) : IsClosed ({a,b} : Set X)
Proof
:= by
classical
have hp : IsPreconnected ({a,b} : Set X) := by
apply (isPreconnected_singleton (x := a)).subset_closure (by simp)
exact insert_subset (subset_closure (by simp))
(singleton_subset_iff.mpr (specializes_iff_mem_closure.mp hab.specializes))
have hn : ¬({a,b} : Set X).Subsingleton := fun h ↦ hne (h (by simp) (by simp))
have ht := BiconnectedSpace.isTotallyDisconnected_compl hp hn
have hc (c : X) (hca : c ≠ a) (hcb : c ≠ b) : IsPreconnected ({c}ᶜ : Set X) := by
have hcp : c ∈ ({a,b} : Set X)ᶜ := by simp [hca, hcb]
have he : connectedComponentIn ({a,b} : Set X)ᶜ c = {c} := by
apply Set.Subset.antisymm
· intro z hz
exact ht _ (connectedComponentIn_subset _ _) isPreconnected_connectedComponentIn
hz (mem_connectedComponentIn hcp)
· exact singleton_subset_iff.mpr (mem_connectedComponentIn hcp)
rw [← he]
exact isPreconnected_compl_connectedComponentIn_compl hp hcp
apply isClosed_of_closure_subset
intro c hccl
by_contra hnot
have hca : c ≠ a := fun h ↦ hnot (by simp [h])
have hcb : c ≠ b := fun h ↦ hnot (by simp [h])
have hccl' : c ∈ closure ({a} : Set X) := by
apply closure_minimal (t := closure ({a} : Set X)) ?_ isClosed_closure hccl
exact insert_subset (subset_closure (by simp))
(singleton_subset_iff.mpr (specializes_iff_mem_closure.mp hab.specializes))
have hpair : IsPreconnected ({a,c} : Set X) :=
(isPreconnected_singleton (x := a)).subset_closure (by simp)
(insert_subset (subset_closure (by simp)) (singleton_subset_iff.mpr hccl'))
have hrest := IsPreconnected.diff_singleton_of_inseparable (hc c hca hcb) hab hne
(by simpa using hcb.symm)
obtain ⟨d, hd⟩ := hfour a b c
rcases BiconnectedSpace.subsingleton_or_subsingleton hpair hrest (by
apply Set.disjoint_left.mpr
simp only [mem_insert_iff, mem_singleton_iff, mem_sdiff, mem_compl_iff]
grind) with h | h
· exact hca (h (by simp) (by simp)).symm
· exact hd.2.1 (h (by simp [hd.1, hd.2.2]) (by simp [hne.symm, hcb.symm]))
theorem isPreconnected_insert_of_inseparable_partition
TopologyByExample.isPreconnected_insert_of_inseparable_partition
One part of an open separation outside an inseparable pair remains connected when one point of the pair is added.
theorem isPreconnected_insert_of_inseparable_partition [PreconnectedSpace X]
{a b : X} (hab : Inseparable a b) {U V : Set X}
(hU : IsOpen U) (hV : IsOpen V) (hd : Disjoint U V)
(hcov : U ∪ V = ({a,b} : Set X)ᶜ) : IsPreconnected (insert a U)
Proof
:= by
classical
let f : X → X := fun x ↦ if x ∈ U then x else a
have hf : Continuous f := by
apply continuous_def.mpr
intro O hO
by_cases haO : a ∈ O
· have hbO : b ∈ O := (hab.mem_open_iff hO).mp haO
have he : f ⁻¹' O = O ∪ V := by
ext x
have hc := congrArg (fun s : Set X ↦ x ∈ s) hcov
have hdis := Set.disjoint_left.mp hd
simp only [mem_union, mem_compl_iff, mem_insert_iff, mem_singleton_iff] at hc
simp only [mem_preimage, f, mem_union]
split_ifs <;> grind
rw [he]
exact hO.union hV
· have he : f ⁻¹' O = O ∩ U := by
ext x
simp only [mem_preimage, f, mem_inter_iff]
split_ifs <;> tauto
rw [he]
exact hO.inter hU
have he : f '' univ = insert a U := by
ext x
simp only [mem_image, mem_univ, true_and, mem_insert_iff]
constructor
· rintro ⟨y, rfl⟩
by_cases hy : y ∈ U <;> simp [f, hy]
· rintro (rfl | hx)
· exact ⟨x, by simp [f]⟩
· exact ⟨x, by simp [f, hx]⟩
rw [← he]
exact isPreconnected_univ.image f hf.continuousOn
theorem t0Space_of_four
TopologyByExample.BiconnectedSpace.t0Space_of_four
Every biconnected space with at least four points is T₀.
theorem BiconnectedSpace.t0Space_of_four [BiconnectedSpace X]
(hfour : ∀ a b c : X, ∃ d, d ≠ a ∧ d ≠ b ∧ d ≠ c) : T0Space X
Proof
:= by
classical
refine ⟨fun a b hab ↦ ?_⟩
by_contra hne
have hp : IsPreconnected ({a,b} : Set X) := by
apply (isPreconnected_singleton (x := a)).subset_closure (by simp)
exact insert_subset (subset_closure (by simp))
(singleton_subset_iff.mpr (specializes_iff_mem_closure.mp hab.specializes))
have hn : ¬({a,b} : Set X).Subsingleton := fun h ↦ hne (h (by simp) (by simp))
have ht := BiconnectedSpace.isTotallyDisconnected_compl hp hn
have hclosed := BiconnectedSpace.isClosed_pair_of_four hfour hab hne
have hnc : ¬ IsPreconnected ({a,b} : Set X)ᶜ := by
intro h
have hs := ht _ Subset.rfl h
obtain ⟨c, hc⟩ := hfour a b b
obtain ⟨d, hd⟩ := hfour a b c
exact hd.2.2 (hs (by simp [hd.1, hd.2.1]) (by simp [hc.1, hc.2.1]))
unfold IsPreconnected at hnc
push Not at hnc
obtain ⟨u,v,hu,hv,hcov,hun,hvn,hdis⟩ := hnc
let U := u ∩ ({a,b} : Set X)ᶜ
let V := v ∩ ({a,b} : Set X)ᶜ
have hU : IsOpen U := hu.inter hclosed.isOpen_compl
have hV : IsOpen V := hv.inter hclosed.isOpen_compl
have he : U ∪ V = ({a,b} : Set X)ᶜ := by ext x; simp only [U,V,mem_union,mem_inter_iff]; grind
have hd : Disjoint U V := by
apply Set.disjoint_left.mpr
intro x hx hy
exact (Set.eq_empty_iff_forall_notMem.mp hdis) x ⟨hx.2, hx.1, hy.1⟩
have hcU := isPreconnected_insert_of_inseparable_partition hab hU hV hd he
have hcV := isPreconnected_insert_of_inseparable_partition hab.symm hV hU hd.symm
(by simpa [union_comm, Set.pair_comm] using he)
rcases BiconnectedSpace.subsingleton_or_subsingleton hcU hcV (by
apply Set.disjoint_left.mpr
intro x hx hy
rcases hx with rfl | hx
· rcases hy with h | hy
· exact hne h
· exact hy.2 (by simp)
· rcases hy with rfl | hy
· exact hx.2 (by simp)
· exact Set.disjoint_left.mp hd hx hy) with h | h
· obtain ⟨x,hx,hxu⟩ := hun
have hxa : x ≠ a := fun h ↦ hx (by simp [h])
exact hxa (h (Or.inr ⟨hxu,hx⟩) (Or.inl rfl))
· obtain ⟨x,hx,hxv⟩ := hvn
have hxb : x ≠ b := fun h ↦ hx (by simp [h])
exact hxb (h (Or.inr ⟨hxv,hx⟩) (Or.inl rfl))
theorem isClosed_pair
TopologyByExample.BiconnectedSpace.isClosed_pair
An inseparable pair in an infinite biconnected space is closed.
theorem BiconnectedSpace.isClosed_pair [BiconnectedSpace X] [Infinite X]
{a b : X} (hab : Inseparable a b) (hne : a ≠ b) : IsClosed ({a,b} : Set X)
Proof
:= by
classical
apply BiconnectedSpace.isClosed_pair_of_four ?_ hab hne
intro x y z
obtain ⟨d, hd⟩ := Infinite.exists_notMem_finset ({x,y,z} : Finset X)
exact ⟨d, by simpa using hd⟩
theorem t0Space_of_infinite
TopologyByExample.BiconnectedSpace.t0Space_of_infinite
Every infinite biconnected space is T₀.
theorem BiconnectedSpace.t0Space_of_infinite [BiconnectedSpace X] [Infinite X] : T0Space X
Proof
:= by
classical
apply BiconnectedSpace.t0Space_of_four
intro a b c
obtain ⟨d, hd⟩ := Infinite.exists_notMem_finset ({a,b,c} : Finset X)
exact ⟨d, by simpa using hd⟩
theorem exists_three_cover_of_not_t0
TopologyByExample.BiconnectedSpace.exists_three_cover_of_not_t0
A biconnected space which is not T₀ is covered by at most three points.
theorem BiconnectedSpace.exists_three_cover_of_not_t0 [BiconnectedSpace X] (h : ¬T0Space X) :
∃ a b c : X, ∀ d, d = a ∨ d = b ∨ d = c
Proof
:= by
have hf : ¬∀ a b c : X, ∃ d, d ≠ a ∧ d ≠ b ∧ d ≠ c :=
fun hf ↦ h (BiconnectedSpace.t0Space_of_four hf)
push Not at hf
obtain ⟨a, b, c, hc⟩ := hf
exact ⟨a, b, c, fun d ↦ by simpa only [or_iff_not_imp_left] using hc d⟩
On this site: Theorem: Biconnected spaces that are not T₀ have at most three points
theorem finite_of_not_t0
TopologyByExample.BiconnectedSpace.finite_of_not_t0
A biconnected space that is not T₀ is finite.
theorem BiconnectedSpace.finite_of_not_t0 [BiconnectedSpace X] (h : ¬T0Space X) :
Finite X
Proof
:= not_infinite_iff_finite.mp fun _ ↦ h BiconnectedSpace.t0Space_of_infinite
On this site: Theorem: Biconnected spaces that are not T₀ are finite