The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V13. General topology

Mathlib.Topology.Connected.Clopen

65 declarations. Mathlib docs · Source

Connected subsets and their relation to clopen sets

In this file we show how connected subsets of a topological space are intimately connected to clopen sets.

Main declarations

  • IsClopen.biUnion_connectedComponent_eq: a clopen set is the union of its connected components.
  • PreconnectedSpace.induction₂: an induction principle for preconnected spaces.
  • ConnectedComponents: The connected components of a topological space, as a quotient type.

theorem ConnectedComponents.equivOfIsClopen.congr_simp E1 #

∀ {α : Type u} [inst : TopologicalSpace α] {ι : Type u_3} {U : ι → Set α} (hclopen : ∀ (i : ι), IsClopen (U i))
  (hdisj : Pairwise (Function.onFun Disjoint U)) (hunion : ⋃ i, U i = Set.univ),
  ConnectedComponents.equivOfIsClopen hclopen hdisj hunion = ConnectedComponents.equivOfIsClopen hclopen hdisj hunion

theorem IsPreconnected.subset_isClopen E1 #

∀ {α : Type u} [inst : TopologicalSpace α] {s t : Set α}, IsPreconnected s → IsClopen t → (s ∩ t).Nonempty → s ⊆ t

Preconnected sets are either contained in or disjoint to any given clopen set.

theorem Sigma.isConnected_iff E0 #

∀ {ι : Type u_1} {X : ι → Type u_2} [inst : (i : ι) → TopologicalSpace (X i)] {s : Set ((i : ι) × X i)},
  IsConnected s ↔ ∃ i t, IsConnected t ∧ s = Sigma.mk i '' t

theorem Sigma.isPreconnected_iff E0 #

∀ {ι : Type u_1} {X : ι → Type u_2} [hι : Nonempty ι] [inst : (i : ι) → TopologicalSpace (X i)]
  {s : Set ((i : ι) × X i)}, IsPreconnected s ↔ ∃ i t, IsPreconnected t ∧ s = Sigma.mk i '' t

theorem Sum.isConnected_iff E0 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : TopologicalSpace β] {s : Set (α ⊕ β)},
  IsConnected s ↔ (∃ t, IsConnected t ∧ s = Sum.inl '' t) ∨ ∃ t, IsConnected t ∧ s = Sum.inr '' t

theorem Sum.isPreconnected_iff E0 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : TopologicalSpace β] {s : Set (α ⊕ β)},
  IsPreconnected s ↔ (∃ t, IsPreconnected t ∧ s = Sum.inl '' t) ∨ ∃ t, IsPreconnected t ∧ s = Sum.inr '' t

theorem Continuous.exists_lift_sigma E1 #

∀ {α : Type u} {ι : Type u_1} {X : ι → Type u_2} [inst : TopologicalSpace α] [ConnectedSpace α]
  [inst_2 : (i : ι) → TopologicalSpace (X i)] {f : α → (i : ι) × X i},
  Continuous f → ∃ i g, Continuous g ∧ f = Sigma.mk i ∘ g

A continuous map from a connected space to a disjoint union Σ i, X i can be lifted to one of the components X i. See also ContinuousMap.exists_lift_sigma for a version with bundled ContinuousMaps.

theorem nonempty_inter E1 #

∀ {α : Type u} [inst : TopologicalSpace α] [PreconnectedSpace α] {s t : Set α},
  IsOpen s → IsOpen t → s ∪ t = Set.univ → s.Nonempty → t.Nonempty → (s ∩ t).Nonempty

theorem isClopen_iff E0 #

∀ {α : Type u} [inst : TopologicalSpace α] [PreconnectedSpace α] {s : Set α}, IsClopen s ↔ s = ∅ ∨ s = Set.univ

theorem isClopen_preimage_val E0 #

∀ {X : Type u_3} [inst : TopologicalSpace X] {u v : Set X},
  IsOpen u → Disjoint (frontier u) v → IsClopen (Subtype.val ⁻¹' u)

theorem subsingleton_of_disjoint_isClopen E1 #

∀ {α : Type u} {ι : Type u_1} [inst : TopologicalSpace α] [PreconnectedSpace α] {s : ι → Set α},
  (∀ (i : ι), (s i).Nonempty) → Pairwise (Function.onFun Disjoint s) → (∀ (i : ι), IsClopen (s i)) → Subsingleton ι

In a preconnected space, any disjoint family of non-empty clopen subsets has at most one element.

theorem subsingleton_of_disjoint_isOpen_iUnion_eq_univ E1 #

∀ {α : Type u} {ι : Type u_1} [inst : TopologicalSpace α] [PreconnectedSpace α] {s : ι → Set α},
  (∀ (i : ι), (s i).Nonempty) →
    Pairwise (Function.onFun Disjoint s) → (∀ (i : ι), IsOpen (s i)) → ⋃ i, s i = Set.univ → Subsingleton ι

In a preconnected space, any disjoint cover by non-empty open subsets has at most one element.

theorem subsingleton_of_disjoint_isClosed_iUnion_eq_univ E1 #

∀ {α : Type u} {ι : Type u_1} [inst : TopologicalSpace α] [PreconnectedSpace α] {s : ι → Set α},
  (∀ (i : ι), (s i).Nonempty) →
    Pairwise (Function.onFun Disjoint s) →
      ∀ [Finite ι], (∀ (i : ι), IsClosed (s i)) → ⋃ i, s i = Set.univ → Subsingleton ι

In a preconnected space, any finite disjoint cover by non-empty closed subsets has at most one element.

theorem frontier_eq_empty_iff E0 #

∀ {α : Type u} [inst : TopologicalSpace α] [PreconnectedSpace α] {s : Set α}, frontier s = ∅ ↔ s = ∅ ∨ s = Set.univ

theorem nonempty_frontier_iff E0 #

∀ {α : Type u} [inst : TopologicalSpace α] [PreconnectedSpace α] {s : Set α},
  (frontier s).Nonempty ↔ s.Nonempty ∧ s ≠ Set.univ

theorem PreconnectedSpace.induction₂' E1 #

∀ {α : Type u} [inst : TopologicalSpace α] [PreconnectedSpace α] (P : α → α → Prop),
  (∀ (x : α), ∀ᶠ (y : α) in nhds x, P x y ∧ P y x) → IsTrans α P → ∀ (x y : α), P x y

In a preconnected space, given a transitive relation P, if P x y and P y x are true for y close enough to x, then P x y holds for all x, y. This is a version of the fact that, if an equivalence relation has open classes, then it has a single equivalence class.

theorem PreconnectedSpace.induction₂ E3 #

∀ {α : Type u} [inst : TopologicalSpace α] [PreconnectedSpace α] (P : α → α → Prop) [Std.Symm P],
  (∀ (x : α), ∀ᶠ (y : α) in nhds x, P x y) → IsTrans α P → ∀ (x y : α), P x y

In a preconnected space, if a symmetric transitive relation P x y is true for y close enough to x, then it holds for all x, y. This is a version of the fact that, if an equivalence relation has open classes, then it has a single equivalence class.

theorem IsPreconnected.induction₂' E1 #

∀ {α : Type u} [inst : TopologicalSpace α] {s : Set α},
  IsPreconnected s →
    ∀ (P : α → α → Prop),
      (∀ x ∈ s, ∀ᶠ (y : α) in nhdsWithin x s, P x y ∧ P y x) →
        (∀ (x y z : α), x ∈ s → y ∈ s → z ∈ s → P x y → P y z → P x z) → ∀ {x y : α}, x ∈ s → y ∈ s → P x y

In a preconnected set, given a transitive relation P, if P x y and P y x are true for y close enough to x, then P x y holds for all x, y. This is a version of the fact that, if an equivalence relation has open classes, then it has a single equivalence class.

theorem IsPreconnected.induction₂ E1 #

∀ {α : Type u} [inst : TopologicalSpace α] {s : Set α},
  IsPreconnected s →
    ∀ (P : α → α → Prop),
      (∀ x ∈ s, ∀ᶠ (y : α) in nhdsWithin x s, P x y) →
        (∀ (x y z : α), x ∈ s → y ∈ s → z ∈ s → P x y → P y z → P x z) →
          (∀ (x y : α), x ∈ s → y ∈ s → P x y → P y x) → ∀ {x y : α}, x ∈ s → y ∈ s → P x y

In a preconnected set, if a symmetric transitive relation P x y is true for y close enough to x, then it holds for all x, y. This is a version of the fact that, if an equivalence relation has open classes, then it has a single equivalence class.

theorem isPreconnected_iff_subset_of_disjoint E1 #

∀ {α : Type u} [inst : TopologicalSpace α] {s : Set α},
  IsPreconnected s ↔ ∀ (u v : Set α), IsOpen u → IsOpen v → s ⊆ u ∪ v → s ∩ (u ∩ v) = ∅ → s ⊆ u ∨ s ⊆ v

A set s is preconnected if and only if for every cover by two open sets that are disjoint on s, it is contained in one of the two covering sets.

theorem isConnected_iff_sUnion_disjoint_open E1 #

∀ {α : Type u} [inst : TopologicalSpace α] {s : Set α},
  IsConnected s ↔
    ∀ (U : Finset (Set α)),
      (∀ (u v : Set α), u ∈ U → v ∈ U → (s ∩ (u ∩ v)).Nonempty → u = v) →
        (∀ u ∈ U, IsOpen u) → s ⊆ ⋃₀ ↑U → ∃ u ∈ U, s ⊆ u

A set s is connected if and only if for every cover by a finite collection of open sets that are pairwise disjoint on s, it is contained in one of the members of the collection.

theorem disjoint_or_subset_of_isClopen E1 #

∀ {α : Type u} [inst : TopologicalSpace α] {s t : Set α}, IsPreconnected s → IsClopen t → Disjoint s t ∨ s ⊆ t

Preconnected sets are either contained in or disjoint to any given clopen set.

theorem isPreconnected_iff_subset_of_disjoint_closed E1 #

∀ {α : Type u} [inst : TopologicalSpace α] {s : Set α},
  IsPreconnected s ↔ ∀ (u v : Set α), IsClosed u → IsClosed v → s ⊆ u ∪ v → s ∩ (u ∩ v) = ∅ → s ⊆ u ∨ s ⊆ v

A set s is preconnected if and only if for every cover by two closed sets that are disjoint on s, it is contained in one of the two covering sets.

theorem isPreconnected_iff_subset_of_fully_disjoint_closed E1 #

∀ {α : Type u} [inst : TopologicalSpace α] {s : Set α},
  IsClosed s → (IsPreconnected s ↔ ∀ (u v : Set α), IsClosed u → IsClosed v → s ⊆ u ∪ v → Disjoint u v → s ⊆ u ∨ s ⊆ v)

A closed set s is preconnected if and only if for every cover by two closed sets that are disjoint, it is contained in one of the two covering sets.

theorem IsClopen.isPreconnected_iff E0 #

∀ {α : Type u} [inst : TopologicalSpace α] {s : Set α},
  IsClopen s →
    (IsPreconnected s ↔ ∀ (a b : Set α), IsClopen a → IsClopen b → a.Nonempty → b.Nonempty → Disjoint a b → s ≠ a ∪ b)

theorem IsClopen.not_isPreconnected_iff E0 #

∀ {α : Type u} [inst : TopologicalSpace α] {s : Set α},
  IsClopen s → (¬IsPreconnected s ↔ ∃ a b, IsClopen a ∧ IsClopen b ∧ a.Nonempty ∧ b.Nonempty ∧ Disjoint a b ∧ s = a ∪ b)

theorem IsClopen.connectedComponent_subset E1 #

∀ {α : Type u} [inst : TopologicalSpace α] {s : Set α} {x : α}, IsClopen s → x ∈ s → connectedComponent x ⊆ s

theorem connectedComponent_subset_iInter_isClopen E1 #

∀ {α : Type u} [inst : TopologicalSpace α] {x : α}, connectedComponent x ⊆ ⋂ Z, ↑Z

The connected component of a point is always a subset of the intersection of all its clopen neighbourhoods.

theorem IsClopen.biUnion_connectedComponent_eq E3 #

∀ {α : Type u} [inst : TopologicalSpace α] {Z : Set α}, IsClopen Z → ⋃ x ∈ Z, connectedComponent x = Z

A clopen set is the union of its connected components.

theorem IsClopen.biUnion_connectedComponentIn E1 #

∀ {X : Type u_3} [inst : TopologicalSpace X] {u v : Set X},
  IsClopen (Subtype.val ⁻¹' u) → u ⊆ v → u = ⋃ x ∈ u, connectedComponentIn v x

If u v : Set X and u ⊆ v is clopen in v, then u is the union of the connected components of v in X which intersect u.

theorem IsClopen.connectedComponentIn_eq E0 #

∀ {α : Type u} [inst : TopologicalSpace α] {U : Set α},
  IsClopen U → ∀ {x : α}, x ∈ U → connectedComponentIn U x = connectedComponent x

theorem Topology.IsCoinducing.isConnected_preimage_of_isClosed E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : TopologicalSpace β] {f : α → β},
  (∀ (t : β), IsConnected (f ⁻¹' {t})) →
    Topology.IsCoinducing f → ∀ {t : Set β}, IsClosed t → IsConnected t → IsConnected (f ⁻¹' t)

The preimage of a connected component is preconnected if the function has connected fibers and a subset is closed iff the preimage is.

theorem Topology.IsCoinducing.preimage_connectedComponent E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : TopologicalSpace β] {f : α → β},
  Topology.IsCoinducing f →
    (∀ (y : β), IsConnected (f ⁻¹' {y})) → ∀ (a : α), f ⁻¹' connectedComponent (f a) = connectedComponent a

theorem Topology.IsCoinducing.image_connectedComponent E1 #

∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : TopologicalSpace β] {f : α → β},
  Topology.IsCoinducing f →
    (∀ (y : β), IsConnected (f ⁻¹' {y})) → ∀ (a : α), f '' connectedComponent a = connectedComponent (f a)

def connectedComponentSetoid E1 #

(α : Type u_3) → [TopologicalSpace α] → Setoid α

The setoid of connected components of a topological space

def ConnectedComponents E3 #

(α : Type u) → [TopologicalSpace α] → Type u

The quotient of a space by its connected components

def ConnectedComponents.mk E1 #

{α : Type u} → [inst : TopologicalSpace α] → α → ConnectedComponents α

Coercion from a topological space to the set of connected components of this space.

instance ConnectedComponents.instCoeTC E0 #

{α : Type u} → [inst : TopologicalSpace α] → CoeTC α (ConnectedComponents α)

theorem ConnectedComponents.coe_eq_coe E0 #

∀ {α : Type u} [inst : TopologicalSpace α] {x y : α},
  ConnectedComponents.mk x = ConnectedComponents.mk y ↔ connectedComponent x = connectedComponent y

theorem ConnectedComponents.coe_ne_coe E0 #

∀ {α : Type u} [inst : TopologicalSpace α] {x y : α},
  ConnectedComponents.mk x ≠ ConnectedComponents.mk y ↔ connectedComponent x ≠ connectedComponent y

theorem ConnectedComponents.coe_eq_coe' E0 #

∀ {α : Type u} [inst : TopologicalSpace α] {x y : α},
  ConnectedComponents.mk x = ConnectedComponents.mk y ↔ x ∈ connectedComponent y

instance ConnectedComponents.instInhabited E0 #

{α : Type u} → [inst : TopologicalSpace α] → [Inhabited α] → Inhabited (ConnectedComponents α)

instance ConnectedComponents.instTopologicalSpace E0 #

{α : Type u} → [inst : TopologicalSpace α] → TopologicalSpace (ConnectedComponents α)

theorem ConnectedComponents.surjective_coe E0 #

∀ {α : Type u} [inst : TopologicalSpace α], Function.Surjective ConnectedComponents.mk

theorem ConnectedComponents.isQuotientMap_coe E0 #

∀ {α : Type u} [inst : TopologicalSpace α], Topology.IsQuotientMap ConnectedComponents.mk

theorem ConnectedComponents.continuous_coe E0 #

∀ {α : Type u} [inst : TopologicalSpace α], Continuous ConnectedComponents.mk

theorem ConnectedComponents.range_coe E0 #

∀ {α : Type u} [inst : TopologicalSpace α], Set.range ConnectedComponents.mk = Set.univ

theorem ConnectedComponents.nonempty_iff_nonempty E1 #

∀ {α : Type u} [inst : TopologicalSpace α], Nonempty (ConnectedComponents α) ↔ Nonempty α

instance ConnectedComponents.instNonempty E0 #

∀ {α : Type u} [inst : TopologicalSpace α] [Nonempty α], Nonempty (ConnectedComponents α)

theorem ConnectedComponents.isEmpty_iff_isEmpty E1 #

∀ {α : Type u} [inst : TopologicalSpace α], IsEmpty (ConnectedComponents α) ↔ IsEmpty α

instance ConnectedComponents.subsingleton E0 #

∀ {α : Type u} [inst : TopologicalSpace α] [PreconnectedSpace α], Subsingleton (ConnectedComponents α)

def ConnectedComponents.equivOfIsClopen E1 #

{α : Type u} →
  [inst : TopologicalSpace α] →
    {ι : Type u_3} →
      {U : ι → Set α} →
        (∀ (i : ι), IsClopen (U i)) →
          Pairwise (Function.onFun Disjoint U) →
            ⋃ i, U i = Set.univ → ConnectedComponents α ≃ (i : ι) × ConnectedComponents ↑(U i)

A pairwise disjoint cover by clopens partitions the connected components.

theorem ConnectedComponents.equivOfIsClopen_symm_mk E0 #

∀ {α : Type u} [inst : TopologicalSpace α] {ι : Type u_3} {U : ι → Set α} (hclopen : ∀ (i : ι), IsClopen (U i))
  (hdisj : Pairwise (Function.onFun Disjoint U)) (hunion : ⋃ i, U i = Set.univ) {i : ι} (x : ↑(U i)),
  (ConnectedComponents.equivOfIsClopen hclopen hdisj hunion).symm ⟨i, ConnectedComponents.mk x⟩ =
    ConnectedComponents.mk ↑x

theorem ConnectedComponents.equivOfIsClopen_mk E0 #

∀ {α : Type u} [inst : TopologicalSpace α] {ι : Type u_3} {U : ι → Set α} (hclopen : ∀ (i : ι), IsClopen (U i))
  (hdisj : Pairwise (Function.onFun Disjoint U)) (hunion : ⋃ i, U i = Set.univ) {i : ι} (x : α) (hx : x ∈ U i),
  (ConnectedComponents.equivOfIsClopen hclopen hdisj hunion) (ConnectedComponents.mk x) =
    ⟨i, ConnectedComponents.mk ⟨x, hx⟩⟩

def ConnectedComponents.equivOfIsClopenOfIsConnected E1 #

{α : Type u} →
  [inst : TopologicalSpace α] →
    {ι : Type u_3} →
      {U : ι → Set α} →
        (∀ (i : ι), IsClopen (U i)) →
          Pairwise (Function.onFun Disjoint U) →
            ⋃ i, U i = Set.univ → (∀ (i : ι), IsConnected (U i)) → ConnectedComponents α ≃ ι

If ι indexes a disjoint union decomposition of α, it is equivalent to the connected components of α.

theorem ConnectedComponents.equivOfIsClopenOfIsConnected_mk E0 #

∀ {α : Type u} [inst : TopologicalSpace α] {ι : Type u_3} {U : ι → Set α} (hclopen : ∀ (i : ι), IsClopen (U i))
  (hdisj : Pairwise (Function.onFun Disjoint U)) (hunion : ⋃ i, U i = Set.univ) (hconn : ∀ (i : ι), IsConnected (U i))
  {i : ι},
  ∀ x ∈ U i,
    (ConnectedComponents.equivOfIsClopenOfIsConnected hclopen hdisj hunion hconn) (ConnectedComponents.mk x) = i

theorem ConnectedComponents.exists_fun_isClopen_of_infinite E1 #

∀ (α : Type u) [inst : TopologicalSpace α] [Infinite (ConnectedComponents α)] (n : ℕ),
  0 < n →
    ∃ U,
      (∀ (i : Fin n), IsClopen (U i)) ∧
        (∀ (i : Fin n), (U i).Nonempty) ∧ Pairwise (Function.onFun Disjoint U) ∧ ⋃ i, U i = Set.univ

If X has infinitely many connected components, it admits disjoint union decompositions with arbitrarily many summands.

theorem connectedComponents_preimage_singleton E1 #

∀ {α : Type u} [inst : TopologicalSpace α] {x : α},
  ConnectedComponents.mk ⁻¹' {ConnectedComponents.mk x} = connectedComponent x

The preimage of a singleton in connectedComponents is the connected component of an element in the equivalence class.

theorem connectedComponents_preimage_image E1 #

∀ {α : Type u} [inst : TopologicalSpace α] (U : Set α),
  ConnectedComponents.mk ⁻¹' ConnectedComponents.mk '' U = ⋃ x ∈ U, connectedComponent x

The preimage of the image of a set under the quotient map to connectedComponents α is the union of the connected components of the elements in it.

theorem ConnectedComponents.discreteTopology_iff E0 #

∀ {α : Type u} [inst : TopologicalSpace α],
  DiscreteTopology (ConnectedComponents α) ↔ ∀ (x : α), IsOpen (connectedComponent x)

theorem isPreconnected_of_forall_constant E1 #

∀ {α : Type u} [inst : TopologicalSpace α] {s : Set α},
  (∀ (f : α → Bool), ContinuousOn f s → ∀ x ∈ s, ∀ y ∈ s, f x = f y) → IsPreconnected s

If every map to Bool (a discrete two-element space), that is continuous on a set s, is constant on s, then s is preconnected

theorem preconnectedSpace_of_forall_constant E1 #

∀ {α : Type u} [inst : TopologicalSpace α],
  (∀ (f : α → Bool), Continuous f → ∀ (x y : α), f x = f y) → PreconnectedSpace α

A PreconnectedSpace version of isPreconnected_of_forall_constant

theorem preconnectedSpace_iff_clopen E1 #

∀ {α : Type u} [inst : TopologicalSpace α], PreconnectedSpace α ↔ ∀ (s : Set α), IsClopen s → s = ∅ ∨ s = Set.univ

theorem connectedSpace_iff_clopen E1 #

∀ {α : Type u} [inst : TopologicalSpace α],
  ConnectedSpace α ↔ Nonempty α ∧ ∀ (s : Set α), IsClopen s → s = ∅ ∨ s = Set.univ

instance instCompactSpaceConnectedComponents E0 #

∀ {α : Type u} [inst : TopologicalSpace α] [CompactSpace α], CompactSpace (ConnectedComponents α)