Skip to content

Commit

Permalink
feat(topology/[path_]connected): add random [path-]connectedness lemm…
Browse files Browse the repository at this point in the history
…as (#10932)

From sphere-eversion
  • Loading branch information
ADedecker committed Dec 20, 2021
1 parent 7555ea7 commit ed250f7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/topology/connected.lean
Expand Up @@ -518,6 +518,23 @@ begin
exact ⟨⟨x⟩⟩ }
end

lemma preconnected_space_iff_connected_component :
preconnected_space α ↔ ∀ x : α, connected_component x = univ :=
begin
split,
{ intros h x,
exactI (eq_univ_of_univ_subset $
is_preconnected_univ.subset_connected_component (mem_univ x)) },
{ intros h,
casesI is_empty_or_nonempty α with hα hα,
{ exact ⟨by { rw (univ_eq_empty_iff.mpr hα), exact is_preconnected_empty }⟩ },
{ exact ⟨by { rw ← h (classical.choice hα), exact is_preconnected_connected_component }⟩ } }
end

@[simp] lemma preconnected_space.connected_component_eq_univ {X : Type*} [topological_space X]
[h : preconnected_space X] (x : X) : connected_component x = univ :=
preconnected_space_iff_connected_component.mp h x

instance [topological_space β] [preconnected_space α] [preconnected_space β] :
preconnected_space (α × β) :=
by { rw ← univ_prod_univ, exact is_preconnected_univ.prod is_preconnected_univ }⟩
Expand Down
7 changes: 7 additions & 0 deletions src/topology/path_connected.lean
Expand Up @@ -884,6 +884,13 @@ begin
exact (by simpa using hx : path_component x = univ) ▸ path_component_subset_component x
end

lemma is_path_connected.is_connected (hF : is_path_connected F) : is_connected F :=
begin
rw is_connected_iff_connected_space,
rw is_path_connected_iff_path_connected_space at hF,
exact @path_connected_space.connected_space _ _ hF
end

namespace path_connected_space
variables [path_connected_space X]

Expand Down

0 comments on commit ed250f7

Please sign in to comment.