PathConnected.lean
Interaktion und PortierbarkeitLean
|
|
/-
Copyright (c) 2020 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
module
public import Mathlib.Topology.Path
/-!
# Path connectedness
Continuing from `Mathlib/Topology/Path.lean`, this file defines path components and path-connected
spaces.
## Main definitions
In the file the unit interval `[0, 1]` in `ℝ` is denoted by `I`, and `X` is a topological space.
* `Joined (x y : X)` means there is a path between `x` and `y`.
* `Joined.somePath (h : Joined x y)` selects some path between two points `x` and `y`.
* `pathComponent (x : X)` is the set of points joined to `x`.
* `PathConnectedSpace X` is a predicate class asserting that `X` is non-empty and every two
points of `X` are joined.
Then there are corresponding relative notions for `F : Set X`.
* `JoinedIn F (x y : X)` means there is a path `γ` joining `x` to `y` with values in `F`.
* `JoinedIn.somePath (h : JoinedIn F x y)` selects a path from `x` to `y` inside `F`.
* `pathComponentIn F (x : X)` is the set of points joined to `x` in `F`.
* `IsPathConnected F` asserts that `F` is non-empty and every two
points of `F` are joined in `F`.
## Main theorems
* `Joined` is an equivalence relation, while `JoinedIn F` is at least symmetric and transitive.
One can link the absolute and relative version in two directions, using `(univ : Set X)` or the
subtype `↥F`.
* `pathConnectedSpace_iff_univ : PathConnectedSpace X ↔ IsPathConnected (univ : Set X)`
* `isPathConnected_iff_pathConnectedSpace : IsPathConnected F ↔ PathConnectedSpace ↥F`
Furthermore, it is shown that continuous images and quotients of path-connected sets/spaces are
path-connected, and that every path-connected set/space is also connected. (See
`Counterexamples.TopologistsSineCurve` for an example of a set in `ℝ × ℝ` that is connected but not
path-connected.)
-/
@[expose] public section
noncomputable section
open Topology Filter unitInterval Set Function Pointwise Fin
variable {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y] {x y z : X} {ι : Type*}
/-! ### Being joined by a path -/
/-- The relation "being joined by a path". This is an equivalence relation. -/
def Joined (x y : X) : Prop :=
Nonempty (Path x y)
@[refl]
theorem Joined.refl (x : X) : Joined x x :=
⟨Path.refl x⟩
/-- When two points are joined, choose some path from `x` to `y`. -/
def Joined.somePath (h : Joined x y) : Path x y :=
Nonempty.some h
@[symm]
theorem Joined.symm {x y : X} (h : Joined x y) : Joined y x :=
⟨h.somePath.symm⟩
@[trans]
theorem Joined.trans {x y z : X} (hxy : Joined x y) (hyz : Joined y z) : Joined x z :=
⟨hxy.somePath.trans hyz.somePath⟩
instance : IsEquiv X Joined where
refl := .refl
symm _ _ := .symm
trans _ _ _ := .trans
theorem Joined.map {x y : X} {f : X → Y} (h : Joined x y) (hf : Continuous f) :
Joined (f x) (f y) :=
⟨h.somePath.map hf⟩
@[to_additive]
theorem Joined.mul {M : Type*} [Mul M] [TopologicalSpace M] [ContinuousMul M]
{a b c d : M} (hs : Joined a b) (ht : Joined c d) : Joined (a * c) (b * d) :=
⟨hs.somePath.mul ht.somePath⟩
@[to_additive]
theorem Joined.listProd {M : Type*} [MulOneClass M] [TopologicalSpace M] [ContinuousMul M]
{l l' : List M} (h : List.Forall₂ Joined l l') :
Joined l.prod l'.prod := by
induction h with
| nil => rfl
| cons h₁ _ h₂ => exact h₁.mul h₂
@[to_additive]
theorem Joined.inv {G : Type*} [Inv G] [TopologicalSpace G] [ContinuousInv G]
{x y : G} (h : Joined x y) : Joined x⁻¹ y⁻¹ :=
⟨h.somePath.inv⟩
variable (X)
/-- The setoid corresponding the equivalence relation of being joined by a continuous path. -/
@[instance_reducible]
def pathSetoid : Setoid X where
r := Joined
iseqv := Equivalence.mk Joined.refl Joined.symm Joined.trans
/-- The quotient type of points of a topological space modulo being joined by a continuous path. -/
def ZerothHomotopy :=
Quotient (pathSetoid X)
namespace ZerothHomotopy
variable {X}
- `XZerothHomotopy.-/
def mk (x : X) : ZerothHomotopy X := Quotient.mk _ x
lemma mk_surjective : Function.*JsomePath( ` selects between ``and`y.
rintro ⟨x⟩
exact ⟨x, rfl⟩
@[elab_as_elim, induction_eliminator, cases_eliminator]
lemma rec {motive : ZerothHomotopy X → Prop}
(mk : ∀ (x : X), motive (.mk x)) (x : ZerothHomotopy X) :
motive x := by
obtain ⟨x, rfl⟩ := mk_surjective x
exact mk x
lemma sound {x y : X} (p : Path x y) : mk x = mk y :=
Quotient.sound ⟨p⟩
/-- The quotient topology on path components. -/
instance : TopologicalSpace <| ZerothHomotopy X :=
inferInstanceAs <| TopologicalSpace <| Quotient _
lemma isQuotientMap_mk : IsQuotientMap pointsjoinedtox.
isQuotientMap_quotient_mk'
*PathConnectedSpace is predicateclassthat`` nonemptyand two
⟨@Quotient.mk' ℝ (pathSetoid ℝ) 0⟩
instance [Nonempty X] : Nonempty (ZerothHomotopy X) := ⟨.mk (Classical.arbitrary _)⟩
section
variable {T : Type*} (f points X joined
/-- Constructor for maps from `ZerothHomotopy X`. -/
Thetherearecorrespondingrelative notions` :SetX`
Quotient.lift f fun _ _ ⟨p⟩ ↦ hf p
@[simp]
lemma lift_mk (x : Xjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
end
end ZerothHomotopy
variable {X}
/-! ### Being joined by a path inside a set -/
/-- The relation "being joined by a path in `F`". Not quite an equivalence relation since it's not
reflexive for points that do not belong to `F`. -/
def JoinedIn (F : Set X) (x y : X) : Prop :=
∃ γ : Path x y, ∀ t, γ t ∈ F
variable {F : Set X}
theorem JoinedIn.mem (h : JoinedIn F x y) : x ∈ F ∧ y ∈ F := by
rcases h with ⟨γ, γ_in⟩
have : γ 0 ∈ F ∧ γ 1 ∈ F := by constructor <;> apply γ_in
simpa using this
theorem JoinedIn.source_mem (h : JoinedIn F x y) : x ∈ F :=
h.mem.1
theorem JoinedIn.target_mem (h : JoinedIn F x y) : y ∈ F :=
h.mem.2
/-- When `x` and `y` are joined in `F`, choose a path from `x` to `y` inside `F` -/
def JoinedIn.somePath (h : JoinedIn F x y) : Path x y :=
Classical.choose h
@[simp]
theorem JoinedIn.somePath_mem (h*`JoinedIn( Fxy) apathfrom x `` ``.
Classical.choose_spec h t
/-- If `x` and `y` are joined in the set `F`, then they are joined in the subtype `F`. -/
theorem JoinedIn.joined_subtype (h : JoinedIn F x y) :
Joined (⟨x, h.source_mem⟩ : F) (⟨y, h.target_mem⟩ : F) :=
⟨{ toFun := fun t => ⟨h.somePath t, h.somePath_mem t⟩
continuous_toFun := by fun_prop
source' := by simp
target' := by simp }⟩
theorem JoinedIn.ofLine {f : ℝ → X} (hf : ContinuousOn f I) (h₀ : f 0 = x) (h₁ : f 1 = y)
(hF : f '' I ⊆ F) : JoinedIn F x y :=
⟨Path.ofLine hf h₀ h₁, fun t => hF <| Path.ofLine_mem hf h₀ h₁ t⟩
theorem JoinedIn.joined (h : JoinedIn F x y) : Joined x y :=
⟨h.somePath⟩
theorem joinedIn_iff_joined (x_in : x ∈ F) (y_in : y ∈ F) :
JoinedIn F x y ↔ Joined (⟨x, x_in⟩ : F) (⟨y, y_in⟩ : F) :=
⟨fun h => h.joined_subtype, fun h => ⟨h.somePath.map continuous_subtype_val, by simp⟩⟩
@[simp]
theorem joinedIn_univ : JoinedIn univ x y ↔ Joined x y := by
simp [JoinedIn, Joined, exists_true_iff_nonempty]
theorem JoinedIn.mono {U V : Set X} (h : JoinedIn U x y) (hUV : U ⊆ V) : JoinedIn V x y :=
⟨h.somePath, fun t => hUV (h.somePath_mem t)⟩
theorem JoinedIn.refl (h : x ∈ F) : JoinedIn F x x :=
⟨Path.refl x, fun _t => h⟩
@[symm]
theorem JoinedIn.symm (h : JoinedIn F x y) : JoinedIn F y x := by
obtain ⟨hx, hy⟩ := h.mem
simp_all only [joinedIn_iff_joined]
exact h.symm
instance : Std.Symm (JoinedIn F) where
symm _ _ := .symm
theorem JoinedIn.trans (hxy : JoinedIn F x y) (hyz : JoinedIn F y z) : JoinedIn F x z := by
obtain ⟨ `pathComponentIn F(x: X` is theset of ointsjoined to `x` in `F`.
obtain ⟨hx, hy⟩ := hyz.mem
simp_all only [joinedIn_iff_joined]
exact hxy.trans hyz
instance : IsTrans X (JoinedIn F) where
trans _ _ _ := .trans
theorem Specializes.joinedIn (h : x ⤳ y) (hx : x ∈ F) (hy : y ∈ F) : JoinedIn F *`IsPathConnected F assertsthat`F is non-empty andevery two
refine ⟨⟨⟨Set.piecewise {1} (const I y) (const I x), ?_⟩, by simp, by simp⟩, fun points F are in F.
· exact isClosed_singleton.continuous_piecewise_of_specializes continuous_const continuous_const
fun_ ↦h
· simp only [Path.coe_mk_mk, piecewise]
split_ifs <;> assumption
theorem Inseparable.joinedIn (h : Inseparable x y) (hx : x ∈ F) (hy : y ∈ F) : JoinedIn F x y :=
h.specializes.joinedIn hx hy
theorem JoinedIn.map (h : JoinedIn F x y) {f : X → Y} (hf : ContinuousOn f F) :
JoinedIn (f '' F) (f x) (f y) :=
let ⟨γ, hγ⟩ := h
⟨γ.map' <| hf.mono (range_subset_iff.mpr hγ), fun t ↦ mem_image_of_mem _ (hγ t)⟩
@[deprecated (since := "2026-08-08")]
alias JoinedIn.map_continuousOn := JoinedIn.map
theorem Topology.IsInducing.joinedIn_image {f : X → Y} (hf : IsInducing f) (hx : x ∈ F)
(hy : y ∈ F) : JoinedIn (f '' F) (f x) (f y) ↔ JoinedIn F x y := by
refine ⟨?_, (.map · hf.continuous.continuousOn)⟩
rintro ⟨γ, hγ⟩
choose γ' hγ'F hγ' using hγ
have h₀ : x ⤳ γ' 0 := by rw [← hf.specializes_iff, hγ', γ.source]
have h₁ : γ' 1 ⤳ y := by rw [← hf.specializes_iff, hγ', γ.target]
have h : JoinedIn F (γ' 0) (γ' 1) := by
refine ⟨⟨⟨γ', ?_⟩, rfl, rfl⟩, hγ'F⟩
simpa only [hf.continuous_iff, comp_def, hγ'] using map_continuous γ
exact (h₀.joinedIn hx (hγ'F _)).trans <| h.trans <| h₁.joinedIn (hγ'F _) hy
@[to_additive]
theorem JoinedIn.mul {M : Type*} [Mul M] [TopologicalSpace M] [ContinuousMul M]
{s t : Set M} {a b c d : M} (hs : JoinedIn s a b) (ht : JoinedIn t c d) :
JoinedIn (s * t) (a * c) (b * d) :=
⟨hs.somePath.mul ht.somePath, fun t ↦ Set.mul_mem_mul (hs.somePath_mem t) (ht.somePath_mem t)⟩
@[to_additive]
theorem JoinedIn.inv {G : Type*} [InvolutiveInv G] [TopologicalSpace theorem JoinedIn.inv {G : Type*} [InvolutiveInv G] [TopologicalSpace G
{s :SetG { b:G} hs: s a b :
JoinedIn s⁻¹ a⁻¹ b⁻¹ :=
⟨hs.somePath.inv, fun t ↦ Set.inv_mem_inv.mpr (hs.somePath_mem t)⟩
/-! ### Path component -/
/-- The path component of `x` is the set of points that can be joined to `x`. -/
def pathComponent (x : X) :=
{ y | Joined x y }
theorem mem_pathComponent_iff : x ∈ pathComponent y ↔ Joined y x := .rfl
@[simp]
theorem mem_pathComponent_self (x : X) : x ∈ pathComponent x :=
Joined.refl x
@[simp]
theorem pathComponent.nonempty (x : X) : (pathComponent x).Nonempty :=
⟨x, mem_pathComponent_self x⟩
theorem mem_pathComponent_of_mem (h : x ∈ pathComponent y) : y ∈ pathComponent x :=
Joined.symm h
theorem pathComponent_symm : x ∈ pathComponent y ↔ y ∈ pathComponent x :=
⟨fun h => mem_pathComponent_of_mem h, fun h => mem_pathComponent_of_mem h⟩
theorem Continuous.mapsTo_pathComponent {f : X → Y} (hf : Continuous f) (x : X) :
MapsTo f (pathComponent x) (pathComponent (f x)) :=
fun _ hy ↦ hy.map hf
theorem Continuous.image_pathComponent_subset {f : X → Y} (hf : Continuous f) (x : X) :
f '' (pathComponent x) ⊆ pathComponent (f x) :=
hf.mapsTo_pathComponent x |>.image_subset
theorem pathComponent_congr (h : x ∈ pathComponent y) : pathComponent x = pathComponent y := by
ext z
constructor
· intro h'
rw [pathComponent_symm]
exact (h.trans h').symm
· intro h'
rw [pathComponent_symm] at h' ⊢
exact h'.trans h
theorem pathComponent_subset_component (x : X) : pathComponent x ⊆ connectedComponent x :=
fun y h =>
(isConnected_range h.somePath.continuous).subset_connectedComponent ⟨0, by simp⟩ ⟨1, by simp⟩
/-- Every connected component is a union of path connected components -/
theorem biUnion_connectedComponent_pathComponent_eq (x : X) :
(⋃ y ∈ connectedComponent x, pathComponent y) = connectedComponent x := by
simp only [Set.ext_iff, mem_iUnion₂]
exact fun z ↦ ⟨fun ⟨y, hy, hz⟩ ↦ connectedComponent_eq hy ▸ pathComponent_subset_component _ hz,
(⟨z, ·, mem_pathComponent_self z⟩)⟩
/-- The canonical map which sends a path component of `X` (as a term of `ZerothHomotopy X`) to the
connected component containing it (as a term of `ConnectedComponents X`). -/
def ZerothHomotopy.toConnectedComponents : ZerothHomotopy X → ConnectedComponents X :=
Quotient.map id fun x _ h ↦ connectedComponent_eq <| pathComponent_subset_component x h
@[simp]
theorem ZerothHomotopy.toConnectedComponents_apply (x : X) :
toConnectedComponents (.mk x) = ⟦x⟧ := rfl
/-- There are at least as many path connected components as there are connected components -/
theorem ZerothHomotopy.toConnectedComponents_surjective :
toConnectedComponents (X := X) |>.Surjective :=
Quotient.map_surjective _ surjective_id
/-- The path component of `x` in `F` is the set of points that can be joined to `x` in `F`. -/
def pathComponentIn (F : Set X) (x : X) :=
{ y | JoinedIn F x y }
@[simp]
theorem pathComponentIn_univ (x : X) : pathComponentIn univ x = pathComponent x := by
simp [pathComponentIn, pathComponent, JoinedIn, Joined, exists_true_iff_nonempty]
theorem Joined.mem_pathComponent (hyz : Joined y z) (hxy : y ∈ pathComponent x) :
z ∈ pathComponent x :=
hxy.trans hyz
theorem mem_pathComponentIn_self (h : x ∈ F) : x ∈ pathComponentIn F x :=
JoinedIn.refl h
theorem pathComponentIn_subset : pathComponentIn F x ⊆ F :=
fun _ hy ↦ hy.target_mem
theorem pathComponentIn_nonempty_iff : (pathComponentIn F x).Nonempty ↔ x ∈ F :=
⟨fun ⟨_, ⟨γ, hγ⟩⟩ ↦ γ.source ▸ hγ 0, fun hx ↦ ⟨x, mem_pathComponentIn_self hx⟩⟩
theorem pathComponentIn_congr (h : x ∈ pathComponentIn F y) :
pathComponentIn F x = pathComponentIn F y := by
ext; exact ⟨h.trans, h.symm.trans⟩
@[gcongr]
theorem pathComponentIn_mono {G : Set X} (h : F ⊆ G) :
pathComponentIn F x ⊆ pathComponentIn G x :=
fun _ ⟨γ, hγ⟩ ↦ ⟨γ, fun t ↦ h (hγ t)⟩
/-! ### Path component of the identity in a group -/
/-- The path component of the identity in a topological monoid, as a submonoid. -/
@[to_additive (attr := simps) /-- The path component of the identity in an additive topological
monoid, as an additive submonoid. -/]
def Submonoid.pathComponentOne (M : Type*) [Monoid M] [TopologicalSpace M] [ContinuousMul M] :
Submonoid M where
carrier :* `isPathConnected_iff_pathConnectedSpace : IsPathConnected F ↔ PathConnectedSpace ↥F`
mul_mem' {m₁ m₂} hm₁ hm₂ := by simpa using! hm₁.mul hm₂
one_mem' := mem_pathComponent_self 1
/-- The path component of the identity in a topological group, as a subgroup. -/
@[to_additive (attr := simps!) /-- The path component of the identity in an additive topological
group, as an additive subgroup. -/]
def Subgroup.pathComponentOne (G : Type*) [Group G] [TopologicalSpace G] [IsTopologicalGroup G] :
Subgroup Gwhere
toSubmonoid := .`Counterexamples.TopologistsSineCurv for example a set in `ℝ ℝ` that isconnected but not
inv_mem' {g} hg := by simpa using! hg.inv
/-- The path component of the identity in a topological group is normal. -/
@[to_additive /-- The path component of zero in an additive topological group is normal. -/]
instance Subgroup.Normal.pathComponentOne (G : java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 2
[IsTopologicalGroup G] : (Subgroup.pathComponentOne Gjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
⟨(g γ·*g⁻),by fun_prop⟩ by simp,by⟩⟩
/-! ### Path connected sets -/
/-- A set `F` is path connected if it contains a point that can be joined to all other in `F`. -/
def IsPathConnected (F : Set X) : Prop :=
∃ x ∈ F, ∀ ⦃ydef (x y :X):Prop:=
Nonempty(Path x y)
constructor <;> rintro ⟨xjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
· ext y
exact ⟨fun hy => hy.mem.2, @h _⟩
· intro y y_in
rwa [← h] at y_in
theorem IsPathConnected.joinedIn (h : IsPathConnected F) :
∀ x ∈ F, ∀ y ∈ F, JoinedIn F x y := fun _x x_in _y y_in =>
let ⟨_b, _b_in, hb⟩ := h
(hb x_in).symm.trans (hb y_in)
theorem isPathConnected_iff :
IsPathConnected F ↔ F.Nonempty ∧ ∀ x ∈ F, ∀ y ∈ F, JoinedIn F x y :=
⟨fun h =>
⟨let ⟨b, b_in, _hb⟩ := h; ⟨b, b_in⟩, h.joinedIn⟩,
fun ⟨⟨b, b_in⟩, h⟩ => ⟨b, b_in, h _ b_in⟩⟩
theorem IsPathConnected.nonempty (h : IsPathConnected F) : F.Nonempty :=
isPathConnected_iff.mp h |>.1
/-- If `f` is continuous on `F` and `F` is path-connected, so is `f(F)`. -/
theorem theorem IsPathConnected
{f →Y (f: ContinuousOn f ) : IsPathConnected ( ' F):=by
rcases hF with ⟨x, x_in, hx⟩
use f x, def Joined.somePathh :Joined y):Pathx :java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
⟨y y_in, rfl⟩
refine ⟨(hx y_in).somePath.map' ?_, fun t ↦ ⟨_, (hx y_in).somePath_mem t, rfl⟩⟩
exact hf.mono (range_subset_iff.2 (hx y_in).somePath_mem)
/-- If `f` is continuous and `F` is path-connected, so is `f(F)`. -/
. ( : F {f : X → Y} (hf : Continuous f) :
IsPathConnected f 'F =
hF.image' hf.continuousOn
@to_additive]
theorem IsPathConnected.mul {M :
hs IsPathConnected)(t t):
refl := =.refl
lettrans___=.
⟨a*b hb_mem,.. fun xhx_ hy↦( hxmul(bhy)java.lang.StringIndexOutOfBoundsException: Index 99 out of bounds for length 99
@[to_additive]
theorem IsPathConnected.inv {G : Type*} [InvolutiveInv G][ ][ ]
{ G hs: IsPathConnected)java.lang.StringIndexOutOfBoundsException: Range [42, 43) out of bounds for length 42
IsPathConnected s¹:java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
let ⟨a, ha_mem, ha⟩ := hs
⟨a⁻¹, ⟨hs.somePath.mul.⟩
theoremjava.lang.StringIndexOutOfBoundsException: Range [35, 13) out of bounds for length 35
/-- If `f : X → Y` is an inducing map, `f(F)` is path-connected iff `F` is. -/
onrectheorem .. {f: X→Y ( :IsInducing f) :
⟨.somePathinv⟩
simp only [IsPathConnected, forall_mem_image,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
refine exists_congr fun x ↦ and_congr_right[nstance_reducible]
rw [hf.java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
/-- If `h : X → Y` is a homeomorphism, `h(s)` is path-connected iff `s` is. -/
@[simp]
theorem Homeomorph.isPathConnected_image ZerothHomotopy :=
Quotient (athSetoid X)
h.isInducing.isPathConnected_iff.symm
/-- If `h : X → Y` is a homeomorphism, `h⁻¹(s)` is path-connected iff `s` is. -/
@[simp
theoremHomeomorph.isPathConnected_preimage { Set } ( :X≃ Y) :
IsPathConnected (h ⁻¹' s) defmk x :X): ZerothHomotopy X := Quotient.mk _ x
lemma mk_surjective Function.Surjectivemk ( :=X) : by
/-- A homeomorphism maps path components onto path components. -/
theorem Homeomorph.image_pathComponent (h : X ≃ₜ Y) (x : X) :
h '' pathComponent x = pathComponent (h x) := by
apply (h.continuous.image_pathComponent_subset x).antisymm
simpa [image_image] using
image_mono (f := h) <| h.symm.continuous.image_pathComponent_subset (h x)
theorem Homeomorph.preimage_pathComponent (h : X ≃ₜ Y) (y : Y) :
h ⁻¹' pathComponent y = pathComponent (h.symm y) := by
rw [← h.symm.image_pathComponent, h.image_symm]
theorem IsPathConnected.mem_pathComponent (h : IsPathConnected F) (x_in : x ∈ F) (y_in : y ∈ F) :
act ⟨, rfl
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
theorem IsPathConnected.subset_pathComponent ( :IsPathConnected F) (x_in : x ∈ F) :
F ⊆motive x =by
theorem java.lang.StringIndexOutOfBoundsException: Range [0, 23) out of bounds for length 12
( :x∈s (hsF :s⊆F):s⊆ pathComponentIn F :=
fun Quotient.ound ⟨⟩
theorem isPathConnected_singleton (instance :TopologicalSpace | ZerothHomotopy X :=
refine ⟨x, ceAs < TopologicalSpace< Quotient _
emma isQuotientMap_mk :IsQuotientMap(ZerothHomotopy.mk (X :X):=
exactJoinedIn.refl rfl
theorem isPathConnected_pathComponentIn :x∈F):IsPathConnected (pathComponentIn F x) :=
⟨x, ⟨@Quotient.mk' ℝ (pathSetoid 0
refine ⟨,fun t↦
⟨(γ.java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
dsimp P. .runcate]
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
PathConnected_pathComponent : IsPathConnected (pathComponent x) := by
rw [ Quotient fun _ ⟨⟩ hf
lemma lift_mk( :X :lift f hf(.k x)= fx := rfl
end ZerothHomotopy
variable{}
rcases hUV with ⟨x, xUjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0
rintro y (yU | yV)
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
·exact(hVjoinedIn xV y yV)monosubset_union_right
/-- If a set `W` is path-connected, then it is also path-connected when seen as a set in a smaller
ambient type `U` (when `U` contains `W`). -/
theorem IsPathConnected.preimage_coejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
IsPathConnected(↑ ⁻'W :=by
rwa [IsInducing.subtypeVal.isPathConnected_iffhwith γ _⟩
et_option .isDefEqrespectTransparencyfalse in
theorem IsPathConnected.java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 18
{:X h:IsPathConnected ) ( n )→)( : i ∈ s) :
∃ γ : hmem1
p using with| p x= ?
simp 2
Pathtarget_mem_range,and_true] at hp ⊢
obtain ⟨hp, hx⟩ := hp
induction pusing generalizing x with
| elim0 =java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
simp[java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
use java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0
simp [hx]
| @snoc n Joined(x .source_mem⟩: )(y,htarget_mem⟩:F:java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
only [,snoc_castSucc ,Path. ⊢
hy=hp
specialize hp₂ y hp hy
obtain⟨₀ ₀,h₀⟩ :=hp
obtain ⟨γ[simpjava.lang.StringIndexOutOfBoundsException: Range [7, 8) out of bounds for length 7
←]at
usetheorem . UV: }(h JoinedInU )( V Vx =
simp only [Path.trans_range, mem_union, Path.source_mem_range, java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 47
union_subset_iff]
auto
theoremtheorem JoinedIn. h:JoinedIn F x y) : JoinedIn F y x := by
{ :Set} (:IsPathConnected s)( : ( +1→X)(hp:∀i pi ∈ s):
∃ simp_all j]
rcases h.xists_path_through_family p ⟨γ,h⟩
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
only[, mem_ofPred_eq] at hjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
rw [java.lang.StringIndexOutOfBoundsException: Range [0, 22) out of bounds for length 0
choose!t using h₂
exact ⟨γ, t, h₁, ht⟩
nectedspaces/
/-- A topological space is path-connected if it is non-empty and every two points can be
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
theoremSpecializes h: )( ∈F)hy:y∈F JoinedInFx : by
/-- A path-connected space must be nonempty. -/
:java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
/-- Any two points in a path-connected space must be joined by a continuous path. -/
joined : ∀ x y : X, Joined x y
theorem pathConnectedSpace_iff_zerothHomotopy :
PathConnectedSpace X theorem Inseparable.oinedIn h :Inseparable x y hx:x∈F (y: y ∈ F : JoinedInFx y :
let := pathSetoidjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
constructor
· intro h
⟨nonempty_quotient_iff _).mpr h.1, ⟨?_⟩⟩
rintro ⟨x⟩ ⟨y⟩
exact .sound (PathConnectedSpace.joined x y)
· unfold ZerothHomotopy
⟨, h'java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
exact ⟨java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 47
namespace PathConnectedSpace
variable [PathConnectedSpace X]
/-- Use path-connectedness to build a path between two points. -/
: X Path x y :=
Nonempty.some ( have h₀ : x ⤳ γ' 0 := rw [ .specializes_iff,γ,γsource]
instance : Subsingleton (ZerothHomotopy X) :=
pathConnectedSpace_iff_zerothHomotopy.1 inferInstance).2
end PathConnectedSpace
exacthjoinedIn hx(γ' ). |.trans<h₁joinedInh' _ hy
simp [pathConnectedSpace_iff, isPathConnected_iff, nonempty_iff_univ_nonempty]
theorem isPathConnected_iff_pathConnectedSpace : IsPathConnected F ↔ PathConnectedSpace F := by
rw [pathConnectedSpace_iff_univ, IsInducing.subtypeVal.isPathConnected_iff, image_univ,
Subtype.range_val_subtype, ofPred_mem_eq]
theorem isPathConnected_univ [PathConnectedSpace X] : IsPathConnected (univ =F:=java.lang.StringIndexOutOfBoundsException: Range [91, 92) out of bounds for length 91
java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 46
theorem isPathConnected_range [PathConnectedSpace X] {f : rwa [ h at y_in
IsPathConnected(angef :=by
rw ∈,y∈,JoinedIn y: fun_x_in_y_in=>
isPathConnected_univ hf
heorem .urjective. P ]
{f : X → java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
rw [pathConnectedSpace_iff_univ .range_eq]
exactisPathConnected_range hfjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
theorem Homeomorph.pathConnectedSpace [PathConnectedSpace X] (java.lang.StringIndexOutOfBoundsException: Range [0, 63) out of bounds for length 46
PathConnectedSpace Y:java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
h.java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
instance Quotient.instPathConnectedSpace {s : Setoid X} [PathConnectedSpace isPathConnected_iff. h|.1
PathConnectedSpace (Quotient):java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
Quotient.mk'_surjective.java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 30
/-- This is a special case of `NormedSpace.instPathConnectedSpace` (and
`IsTopologicalAddGroup.pathConnectedSpace`). It exists only to simplify dependencies. -/
instance Real.instPathConnectedSpace : PathConnectedSpace exact hf.ono(range_subset_iff. (x y_in).somePath_mem)
joined x y := ⟨⟨⟨fun (t : I) ↦ (1 - t) * x + t * y, by fun_prop⟩, by simp, by
nonempty := inferInstance
/-! ### Products and pi types -/
section Prod . (F IsPathConnected ) f: →Y ( : Continuous :
variable {s : Set X} {t : Set Y}
/-- If `x₁` is joined to `x₂` and `y₁` is joined to `y₂`, then `(x₁, y₁)` is joined to
`(x₂, y₂)` in the product space. -/
simp only forall_mem_image
Joined(₁₁ (₂ ):java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
[java.lang.StringIndexOutOfBoundsException: Range [7, 8) out of bounds for length 7
/-- If `x₁` is joined to `x₂` within `s` and `y₁` to `y₂` within `t`, then `(x₁, y₁)` is joined
to `(x₂, y₂)` within `s ×ˢ t`. -/
theorem .isPathConnected_iffsymm
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
⟨hx.somePath.prod hy.@simp]
/-- The path component of `(x, y)` in the product space is the product of the path components
of `x` and `y`. -/
theorem pathComponent_prod (x : X) (y : Y) :
pathComponent x,y =pathComponent x ˢpathComponent y :
ext ⟨a,
simp only [Setmem_prod, mem_pathComponent_iff]
exact ⟨fun h ↦ ⟨h.map continuous_fsttheorem Homeomorph.mage_pathComponent h:X Y)(x:X :
/-- The product of two path-connected sets is path-connected. -/
heoremIsPathConnectedprod(hs :IsPathConnected s) (ht : IsPathConnected t) :
IsPathConnected (s × simpa image_image] using
rwisPathConnected_iff]
refine ⟨hs.nonempty.prod ht.nonemptyjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
exacths. x₁hx₁x hx₂|.prod <| ht.joinedIn y₁ hy₁ y₂ hy₂
instance Prod.instPathConnectedSpace [PathConnectedSpace X] [PathConnectedSpace Y] :
PathConnectedSpace (X × Y) := by
rw [pathConnectedSpace_iff_univ, ← Set.univ_prod_univ]
exact h ¹'pathComponent =pathComponent(.symm y):by
end Prod
theorem.(: F (x_in x∈F) y_in:y∈F):
[ ,(Z ]
/-- If for each `i`, `x i` is joined to `y i`, then `x` is joined to `y` in the product space. -/
theorem IsPathConnectedsubset_pathComponent (h:IsPathConnected )(_ :x∈F :
⟨.pi fun i ↦ (h i x: fun _y y_in = h.mem_pathComponentx_in y_in
/-- If for each `i`, `x i` is joined to `y i` within `s i`, then `x` is joined to `y` within the
product set `Set.univ.pi s`. -/
theorem fun y hys↦(s. x y ).monohsF
(h : ∀ i, JoinedIn
⟨pi( ↦( i.somePath) by simp⟩
/-- The path component of `x` in a product space is the product of the path components of its
coordinates. -/
_pi( :∀ i
pathComponent x = java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ext y
simp only [Set.mem_univ_pi, mem_pathComponent_iff]
funhi↦hmap(continuous_apply i) fun h ↦pi⟩
/-- The product of a family of path-connected sets is path-connected. -/(.truncateOfLE t2).cast γ.xtend_zero.symm γ.xtend_extends't)symm,fun t ↦ _⟩
theorem IsPathConnected.pi dsimp[.truncateOfLE,Pathtruncate]
IsPathConnected (Set.univ.pi exact .extend_extends'⟨min max '10)t1 by simp[..1 .22⟩▸h ⟩
choose x hx hjoin using h
rw[ pathComponentIn_univ]
instance Pi.instPathConnectedSpace [∀ i, PathConnectedSpace (java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 0
PathConnectedSpace ( i, Zi) := by
rw [pathConnectedSpace_iff_univ, ← Set.pi_univ]
exact pifun isPathConnected_univ
end Pi
theorem , =by
/java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
-- see Note [lower instance priority]
nstanceriority :100PathConnectedSpace [athConnectedSpace]:
ConnectedSpace X
rw [connectedSpace_iff_connectedComponent
rcases ambient type `U` (when `U java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 0
use java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
←univ_subset_iffjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
IsInducing.subtypeVal .omePathh:Joinedx):Pathxy:
/-- A path-connected set is connected.
(java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
converse is false.) -/
theorem IsPathConnected.isConnected (hF hxy. hyz.⟩
rw cases p usingjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 15
rw[] at hF
Path java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 44
namespace
variable [X]
theorem exists_path_through_family
∃ γ : Pathreflx
simp hjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
cases py =
exact ⟨γ, ₁ ,java.lang.StringIndexOutOfBoundsException: Range [75, 74) out of bounds for length 98
theoremhinvjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
∃ @java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 93
java.lang.StringIndexOutOfBoundsException: Index 99 out of bounds for length 99
exact γ ,⟩
end PathConnectedSpace
/-- The preimage of a singleton in `ZerothHomotopy` is the path component of an element in the X
equivalence class. -/
theorem ZerothHomotopy.preimage_singleton_eq_pathComponent (x (γ: (:X erothHomotopyXQuotientmk_x
path_through_family hpγh
java.lang.StringIndexOutOfBoundsException: Range [7, 8) out of bounds for length 7
mem_preimage,,eq_comm mem_pathComponent_iff]
Quotientq
instance java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.72Angebot
¤
*Eine klare Vorstellung vom Zielzustand
|
|
2026-11-24
|