Lean library · module TopologyByExample.Theorems.DispersionPoint

Biconnected spaces and dispersion points

Source file

Connectedness is included in both properties. Nondegenerate connected sets are sets with at least two points. No separation assumption is made.

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

class BiconnectedSpace

TopologyByExample.BiconnectedSpace

A connected space cannot be partitioned into two nondegenerate connected sets.

class BiconnectedSpace (X : Type*) [TopologicalSpace X] : Prop extends PreconnectedSpace X where
  /-- At least one part of every connected partition has at most one point. -/
  partition_subsingleton : ∀ s t : Set X, IsPreconnected s → IsPreconnected t →
    Disjoint s t → s ∪ t = univ → s.Subsingleton ∨ t.Subsingleton

class HasDispersionPoint

TopologyByExample.HasDispersionPoint

A connected space has a point whose complement is totally disconnected.

class HasDispersionPoint (X : Type*) [TopologicalSpace X] : Prop extends PreconnectedSpace X where
  /-- Existence of a dispersion point. -/
  exists_point : ∃ p : X, IsTotallyDisconnected ({p}ᶜ : Set X)
variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]

instance biconnectedSpace

TopologyByExample.HasDispersionPoint.biconnectedSpace

A space with a dispersion point is biconnected.

instance (priority := 100) HasDispersionPoint.biconnectedSpace [HasDispersionPoint X] :
    BiconnectedSpace X
Proof
where
  partition_subsingleton s t hs ht hd _ := by
    obtain ⟨p, hp⟩ := HasDispersionPoint.exists_point (X := X)
    by_cases hps : p ∈ s
    · right
      apply hp t _ ht
      intro x hx
      simp only [mem_compl_iff, mem_singleton_iff]
      intro h; subst x
      exact Set.disjoint_left.mp hd hps hx
    · left
      apply hp s _ hs
      intro x hx
      simp only [mem_compl_iff, mem_singleton_iff]
      intro h; subst x
      exact hps hx

instance of_subsingleton

TopologyByExample.BiconnectedSpace.of_subsingleton

Spaces with at most one point are biconnected.

instance (priority := 100) BiconnectedSpace.of_subsingleton [Subsingleton X] :
    BiconnectedSpace X
Proof
where
  isPreconnected_univ := (Set.subsingleton_of_subsingleton (s := univ)).isPreconnected
  partition_subsingleton s _ _ _ _ _ := Or.inl (Set.subsingleton_of_subsingleton (s := s))

instance of_subsingleton

TopologyByExample.HasDispersionPoint.of_subsingleton

A nonempty space with at most one point has a dispersion point.

instance (priority := 100) HasDispersionPoint.of_subsingleton [Subsingleton X] [Nonempty X] :
    HasDispersionPoint X
Proof
where
  isPreconnected_univ := (Set.subsingleton_of_subsingleton (s := univ)).isPreconnected
  exists_point := by
    obtain ⟨p⟩ := ‹Nonempty X›
    exact ⟨p, fun s _ _ ↦ Set.subsingleton_of_subsingleton (s := s)⟩

theorem not_hasDispersionPoint_of_isEmpty

TopologyByExample.not_hasDispersionPoint_of_isEmpty

An empty space has no dispersion point.

theorem not_hasDispersionPoint_of_isEmpty [IsEmpty X] : ¬ HasDispersionPoint X
Proof
:= by
  intro h
  obtain ⟨p, _⟩ := h.exists_point
  exact isEmptyElim p

On this site: The empty space has no dispersion point

theorem not_biconnectedSpace_of_partition

TopologyByExample.not_biconnectedSpace_of_partition

A partition into two nondegenerate connected sets refutes biconnectedness.

theorem not_biconnectedSpace_of_partition {s t : Set X} (hs : IsPreconnected s)
    (ht : IsPreconnected t) (hd : Disjoint s t) (hu : s ∪ t = univ)
    (hns : ¬ s.Subsingleton) (hnt : ¬ t.Subsingleton) : ¬ BiconnectedSpace X
Proof
:= by
  intro h
  exact (h.partition_subsingleton s t hs ht hd hu).elim hns hnt

theorem biconnectedSpace_of_homeomorph

TopologyByExample.biconnectedSpace_of_homeomorph

Homeomorphisms transport biconnectedness.

theorem biconnectedSpace_of_homeomorph (e : X ≃ₜ Y) (h : BiconnectedSpace X) :
    BiconnectedSpace Y
Proof
:= by
  let := h
  have hc : PreconnectedSpace Y := preconnectedSpace_of_surjective e.surjective e.continuous
  refine { hc with partition_subsingleton := fun s t hs ht hd hu ↦ ?_ }
  have hd' : Disjoint (e ⁻¹' s) (e ⁻¹' t) := hd.preimage e
  have hu' : e ⁻¹' s ∪ e ⁻¹' t = univ := by rw [← preimage_union, hu, preimage_univ]
  rcases h.partition_subsingleton _ _ (e.isPreconnected_preimage.mpr hs)
    (e.isPreconnected_preimage.mpr ht) hd' hu' with hs' | ht'
  · left
    intro x hx y hy
    exact e.symm.injective (hs' (by simpa using hx) (by simpa using hy))
  · right
    intro x hx y hy
    exact e.symm.injective (ht' (by simpa using hx) (by simpa using hy))

theorem biconnectedSpace_iff

TopologyByExample.Homeomorph.biconnectedSpace_iff

Biconnectedness is invariant under homeomorphism.

theorem Homeomorph.biconnectedSpace_iff (e : X ≃ₜ Y) :
    BiconnectedSpace X ↔ BiconnectedSpace Y
Proof
:=
  ⟨biconnectedSpace_of_homeomorph e, biconnectedSpace_of_homeomorph e.symm⟩

theorem hasDispersionPoint_of_homeomorph

TopologyByExample.hasDispersionPoint_of_homeomorph

Homeomorphisms transport dispersion points.

theorem hasDispersionPoint_of_homeomorph (e : X ≃ₜ Y) (h : HasDispersionPoint X) :
    HasDispersionPoint Y
Proof
:= by
  let := h
  have hc : PreconnectedSpace Y := preconnectedSpace_of_surjective e.surjective e.continuous
  refine { hc with exists_point := ?_ }
  obtain ⟨p, hp⟩ := h.exists_point
  refine ⟨e p, ?_⟩
  have he : e '' ({p}ᶜ : Set X) = {e p}ᶜ := by
    ext y
    simp [e.image_eq_preimage_symm, e.symm_apply_eq]
  rw [← he]
  exact e.isEmbedding.isTotallyDisconnected_image.mpr hp

theorem hasDispersionPoint_iff

TopologyByExample.Homeomorph.hasDispersionPoint_iff

Having a dispersion point is invariant under homeomorphism.

theorem Homeomorph.hasDispersionPoint_iff (e : X ≃ₜ Y) :
    HasDispersionPoint X ↔ HasDispersionPoint Y
Proof
:=
  ⟨hasDispersionPoint_of_homeomorph e, hasDispersionPoint_of_homeomorph e.symm⟩