|
|
|
|
SSL PathConnected.lean
Interaktion und PortierbarkeitLean
|
|
Copyright (c) Joined.h
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/java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [74, 6) out of bounds for length 7
## Main MapsTo f (pathCf pathComponentx)(( ) =
In the file the unit interval `[ f '' (pathComponent x) ⊆ path ( ):
* `Joined (x y : X)` means there xt
ined some between two points ` and ``
*`pathComponent( X) the set points joined to ``
* `PathConnectedSpace X` is a predicate class asserting that `X` is non-java.lang.StringIndexOutOfBoundsException: Range [0, 77) out of bounds for length 0
points of `(,,java.lang.StringIndexOutOfBoundsException: Range [39, 34) out of bounds for length 39
Then there are Quotient.map x_h↦connectedComponent_eq <|pathComponent_subset_componentx
* `/-- There a
* `JoinedIn.somePath (h : JoinedIn F x y)` theorem ZerothHomotopy.toConnectedComponents_surjective :
* `pathComponentIn F (x : X)` isdef pathComponentIn F:Set X)x :X=
F`asserts that``isnon-empty every two
points of `F` are joined in `F`.
## java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
* `Joined` is an equivalence relation fun_,γ γ⟩⟩ . h ,funhx x hx⟩
One can γγ ↦⟨γ,t↦h(h )⟩
subtype `↥F`.
* `pathConnectedSpace_iff_univ M where
* `isPathConnected_iff_pathConnectedSpace : IsPathConnected F ↔ PathConnectedSpace ↥F`
Furthermore, it is shown that continuous images one_mem =mem_pathComponent_selfjava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
path-connectedhg:= y simpa using!hg.nv
`Counterexamples.TopologistsSineCurve` for an example of a set in `ℝ × ℝ` that is connected but not
path-connected.)
-/
@[expose] public section
noncomputabledef IsPathConnected Prop :=
open Topology Filter unitInterval Set Function Pointwise Fin
variable XY: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. -/
-- see Note [· exact (hV.joinedIn xV yV i p : .connectedSpace[ X java.lang.StringIndexOutOfBoundsException: Index 85 out of bounds for length 85
Nonempty (Path x y)
@[refl IsPathConnected. usex
theorem Joined.refl (() :U→rw univ_subset_iff]
⟨Path.refl x⟩
/-- When two points are joined, choose some path from `x` to `y`. -/
Joineds ( x y Path x :
Nonempty.some h
@[java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{x :X ( Joinedjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
⟨h.somePath.symm⟩
@[trans]
theorem Joined.trans {x y z : s: {s : Set X.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
⟨.somePathtranssomePath⟩
instance : IsEquiv X Joined where
refl := .refl
symm _ _ := .symm
trans _ _ _ := . simp only [forall_fin,snoc_castSucc,snoc_last isPathConnected_iff_pathConnectedSpacehF
.,and_true at hp⊢
Joined (f x) (f y) :=
⟨h.somePath.map hf⟩
@namespace PathConnectedSpace
theoremJoined.mul {M
{a b c d : [PathConnectedSpace X]
⟨hsjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
@[to_additive simponly [noc_zero]
use. x
{l l' : List simp[]
Joined l.prod l'.prod := by
rcases | @snoc n₂=
| nil => rfl
|consh₁ _simponly forall_fin_succsnoc_castSucc snoc_last, snoc_apply_zero, Path.cast_coe] at hp ⊢
@[to_additive]
specialize hp y
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
⟨.somePath.inv⟩
variable (X)
/-- The setoid corresponding the equivalence relation of being joined by a continuous path. -/joinedIn y hy x hx
[instance_reducible]
def pathSetoid : Setoid X where
r:= Joined
iseqv : have:IsPathConnected (univ : Set Xuse₀trans γ₁
/-- The quotient type of points of a topological space modulo being joined by a continuous path. -/
def ZerothHomotopy :d⟨,t h⟩
Quotient (java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0
namespace java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
variable {
/-- The map `X → ZerothHomotopy X`. -/ SetX h:s p:Finn 1)→equivalenceclassjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
def mk ( : : X := Quotient. _x
lemma mk_surjective : Function.Surjective (mk (X : ZerothHomotopy p with γγ
y
exact ⟨x, rfl⟩
@[lab_as_elim, induction_eliminatorrw [ mem_singleton_iff,eq_comm,mem_pathComponent_iff
xact e
(mk : ∀ (
motive x := by
⟨x rfl⟩:= x
exact mk x
lemma sound exact ⟨, t h₁ht⟩
Quotient.sound ⟨p⟩
/-- The quotient topology on path components. -/
instance : TopologicalSpace <| java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 32
inferInstanceAs
lemma /-- A topological space is path-connected f it is non-empty and every two points can be
isQuotientMap_quotient_mk'
instance inhabited : Inhabited (ZerothHomotopy ℝ) :=
joined by a
instance [@[mk_iff]
section
{ :Type}( :X→T ( :∀⦃ y X⦄( :Path x ,f x f yjava.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
/-- Constructor for maps from `ZerothHomotopy X`. -/
lift ZerothHomotopy X →T:java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
Quotient.lift ffun ⟨p ↦hfp
@[simp]
lemma lift_mk (x : X) : lift f hf ( joined: ,Joinedx y
end
end ZerothHomotopy
variable {X}
/-! ### Being joined by a path inside a set -/ 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 :=
∃ γ : ·intro h
variable {F : Set X}
java.lang.StringIndexOutOfBoundsException: Range [16, 7) out of bounds for length 63
rcases with ⟨γ γin⟩
have : γ 0 ∈ F ∧ γ 1 ∈ F := by constructor <;> apply rintro x ⟨⟩
simpa using this
theorem JoinedIn.source_mem (h : java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 25
h.mem rintro ⟨h, h'⟩
theorem JoinedIn.target_mem (h : JoinedInexact( _. ,fun y= Quotient. |Subsingletonelim⟦⟧⟦⟧
h.mem.2
/-- When `x` and `y` are joined in `F`, choose a path from `x` to `y` inside `F` -/
def JoinedIn.somePath (h
Classical.choose h
@[simp]
theorem JoinedIn.somePath_mem (h : JoinedIn F x y) (java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
Classical.choose_spec h t
/-- If `x` and `y` are joined in the set `F`, then they are joined in the subtype `F`. -/
joined_subtype( :JoinedInFx y) :
Joined (⟨x, h.source_mem⟩ : Fjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
⟨{ toFun := fun pathConnectedSpace_iff_zerothHomotopy1 inferInstance.java.lang.StringIndexOutOfBoundsException: Range [59, 60) out of bounds for length 59
continuous_toFun := java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
':by
target' := by simp }⟩
theorem JoinedIn.java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
(hF : f '' theorem Function.urjectivepathConnectedSpace [PathConnectedSpace X]
⟨Path.ofLine hf h₀ h₁, fun t = {f X →Y (f:Surjective f) (
theorem JoinedIn.joined PathConnectedSpaceQuotient s :
⟨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) :=
⟨ h > h.,fun =>⟨h.somePathmap continuous_subtype_val,by simp⟩
@
theorem joinedIn_univ : JoinedIn/-- This is a special case of `NormedSpace.instPathConnectedSpace` (and ⟨hx.somePath.prod hy.somePath⟩
simp [JoinedIn, Joined, exists_true_iff_nonempty]
theoremext a bjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
hsomePath,fun >hUV hsomePath_mem )java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
theorem JoinedInjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
Path.refl x java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 28
@[symm]
theorem JoinedInsymm (h : JoinedIn F x y) : JoinedIn F y x := by
⟨,hy⟩:= hjava.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
simp_all only [joinedIn_iff_joined]
exact h.symm
instance :Std.ymm(oinedIn)
symm _ _ := isPathConnected_iff_eqmp(pathConnectedSpace_iff_univmp‹› with ,__in hxjava.lang.StringIndexOutOfBoundsException: Index 91 out of bounds for length 91
. (xy JoinedIn x hyz JoinedIn z : JoinedInF xz: by
obtain ⟨hx, hy⟩ := hxy.mem
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 x y := by
refine ⟨⟨⟨Set.piecewise {1} (const I y) (const I x), ?_⟩, by simp, by simp⟩, fun t ↦ ?_⟩
· 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 G] [ContinuousInv G]
{s : Set G} {a b : G} (hs : JoinedIn 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 := pathComponent (1 : M)
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 G where
toSubmonoid := .pathComponentOne G
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 : Type*) [Group G] [TopologicalSpace G]
[IsTopologicalGroup G] : (Subgroup.pathComponentOne G).Normal where
conj_mem _ := fun ⟨γ⟩ g ↦ ⟨⟨⟨(g * γ · * g⁻¹), by fun_prop⟩, by simp, by simp⟩⟩
/-! ### 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, ∀ ⦃y⦄, y ∈ F → JoinedIn F x y
theorem isPathConnected_iff_eq : IsPathConnected F ↔ ∃ x ∈ F, pathComponentIn F x = F := by
constructor <;> rintro ⟨x, x_in, h⟩ <;> use x, x_in
· 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 IsPathConnected.image' (hF : IsPathConnected F)
{f : X → Y} (hf : ContinuousOn f F) : IsPathConnected (f '' F) := by
rcases hF with ⟨x, x_in, hx⟩
use f x, mem_image_of_mem f x_in
rintro _ ⟨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)`. -/
theorem IsPathConnected.image (hF : IsPathConnected F) {f : X → Y} (hf : Continuous f) :
IsPathConnected (f '' F) :=
hF.image' hf.continuousOn
@[to_additive]
theorem IsPathConnected.mul {M : Type*} [Mul M] [TopologicalSpace M] [ContinuousMul M]
{s t : Set M} (hs : IsPathConnected s) (ht : IsPathConnected t) :
IsPathConnected (s * t) :=
let ⟨a, ha_mem, ha⟩ := hs; let ⟨b, hb_mem, hb⟩ := ht
⟨a * b, mul_mem_mul ha_mem hb_mem, Set.forall_mem_image2.2 fun _x hx _y hy ↦ (ha hx).mul (hb hy)⟩
@[to_additive]
theorem IsPathConnected.inv {G : Type*} [InvolutiveInv G] [TopologicalSpace G] [ContinuousInv G]
{s : Set G} (hs : IsPathConnected s) :
IsPathConnected s⁻¹ :=
let ⟨a, ha_mem, ha⟩ := hs
⟨a⁻¹, inv_mem_inv.mpr ha_mem,
fun x hx ↦ by simpa using ha (mem_inv.mp hx) |>.map continuous_inv.continuousOn⟩
/-- If `f : X → Y` is an inducing map, `f(F)` is path-connected iff `F` is. -/
nonrec theorem Topology.IsInducing.isPathConnected_iff {f : X → Y} (hf : IsInducing f) :
IsPathConnected F ↔ IsPathConnected (f '' F) := by
simp only [IsPathConnected, forall_mem_image, exists_mem_image]
refine exists_congr fun x ↦ and_congr_right fun hx ↦ forall₂_congr fun y hy ↦ ?_
rw [hf.joinedIn_image hx hy]
/-- If `h : X → Y` is a homeomorphism, `h(s)` is path-connected iff `s` is. -/
@[simp]
theorem Homeomorph.isPathConnected_image {s : Set X} (h : X ≃ₜ Y) :
IsPathConnected (h '' s) ↔ IsPathConnected s :=
h.isInducing.isPathConnected_iff.symm
/-- If `h : X → Y` is a homeomorphism, `h⁻¹(s)` is path-connected iff `s` is. -/
@[simp]
theorem Homeomorph.isPathConnected_preimage {s : Set Y} (h : X ≃ₜ Y) :
IsPathConnected (h ⁻¹' s) ↔ IsPathConnected s := by
rw [← Homeomorph.image_symm]; exact h.symm.isPathConnected_image
/-- 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) :
y ∈ pathComponent x :=
(h.joinedIn x x_in y y_in).joined
theorem IsPathConnected.subset_pathComponent (h : IsPathConnected F) (x_in : x ∈ F) :
F ⊆ pathComponent x := fun _y y_in => h.mem_pathComponent x_in y_in
theorem IsPathConnected.subset_pathComponentIn {s : Set X} (hs : IsPathConnected s)
(hxs : x ∈ s) (hsF : s ⊆ F) : s ⊆ pathComponentIn F x :=
fun y hys ↦ (hs.joinedIn x hxs y hys).mono hsF
theorem isPathConnected_singleton (x : X) : IsPathConnected ({x} : Set X) := by
refine ⟨x, rfl, ?_⟩
rintro y rfl
exact JoinedIn.refl rfl
theorem isPathConnected_pathComponentIn (h : x ∈ F) : IsPathConnected (pathComponentIn F x) :=
⟨x, mem_pathComponentIn_self h, fun _ ⟨γ, hγ⟩ ↦ by
refine ⟨γ, fun t ↦
⟨(γ.truncateOfLE t.2.1).cast (γ.extend_zero.symm) (γ.extend_extends' t).symm, fun t' ↦ ?_⟩⟩
dsimp [Path.truncateOfLE, Path.truncate]
exact γ.extend_extends' ⟨min (max t'.1 0) t.1, by simp [t.2.1, t.2.2]⟩ ▸ hγ _⟩
theorem isPathConnected_pathComponent : IsPathConnected (pathComponent x) := by
rw [← pathComponentIn_univ]
exact isPathConnected_pathComponentIn (mem_univ x)
theorem IsPathConnected.union {U V : Set X} (hU : IsPathConnected U) (hV : IsPathConnected V)
(hUV : (U ∩ V).Nonempty) : IsPathConnected (U ∪ V) := by
rcases hUV with ⟨x, xU, xV⟩
use x, Or.inl xU
rintro y (yU | yV)
· exact (hU.joinedIn x xU y yU).mono subset_union_left
· exact (hV.joinedIn x xV y yV).mono subset_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_coe {U W : Set X} (hW : IsPathConnected W) (hWU : W ⊆ U) :
IsPathConnected (((↑) : U → X) ⁻¹' W) := by
rwa [IsInducing.subtypeVal.isPathConnected_iff, Subtype.image_preimage_val, inter_eq_right.2 hWU]
set_option backward.isDefEq.respectTransparency false in
theorem IsPathConnected.exists_path_through_family {n : ℕ}
{s : Set X} (h : IsPathConnected s) (p : Fin (n + 1) → X) (hp : ∀ i, p i ∈ s) :
∃ γ : Path (p 0) (p (last n)), range γ ⊆ s ∧ ∀ i, p i ∈ range γ := by
cases p using snocCases with | _ p x => ?_
simp only [forall_fin_succ', snoc_castSucc, snoc_last, Path.cast_coe,
Path.target_mem_range, and_true] at hp ⊢
obtain ⟨hp, hx⟩ := hp
induction p using snocInduction generalizing x with
| elim0 =>
simp only [snoc_zero]
use Path.refl x
simp [hx]
| @snoc n p y hp₂ =>
simp only [forall_fin_succ', snoc_castSucc, snoc_last, snoc_apply_zero, Path.cast_coe] at hp ⊢
obtain ⟨hp, hy⟩ := hp
specialize hp₂ y hp hy
obtain ⟨γ₀, hγ₀s, hγ₀p⟩ := hp₂
obtain ⟨γ₁, hγ₁⟩ := h.joinedIn y hy x hx
rw [← range_subset_iff] at hγ₁
use γ₀.trans γ₁
simp only [Path.trans_range, mem_union, Path.source_mem_range, or_true, and_true,
union_subset_iff]
tauto
theorem IsPathConnected.exists_path_through_family' {n : ℕ}
{s : Set X} (h : IsPathConnected s) (p : Fin (n + 1) → X) (hp : ∀ i, p i ∈ s) :
∃ (γ : Path (p 0) (p (last n))) (t : Fin (n + 1) → I), (∀ t, γ t ∈ s) ∧ ∀ i, γ (t i) = p i := by
rcases h.exists_path_through_family p hp with ⟨γ, hγ⟩
rcases hγ with ⟨h₁, h₂⟩
simp only [range, mem_ofPred_eq] at h₂
rw [range_subset_iff] at h₁
choose! t ht using h₂
exact ⟨γ, t, h₁, ht⟩
/-! ### Path connected spaces -/
/-- A topological space is path-connected if it is non-empty and every two points can be
joined by a continuous path. -/
@[mk_iff]
class PathConnectedSpace (X : Type*) [TopologicalSpace X] : Prop where
/-- A path-connected space must be nonempty. -/
nonempty : Nonempty X
/-- 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 ↔ Nonempty (ZerothHomotopy X) ∧ Subsingleton (ZerothHomotopy X) := by
let := pathSetoid X
constructor
· intro h
refine ⟨(nonempty_quotient_iff _).mpr h.1, ⟨?_⟩⟩
rintro ⟨x⟩ ⟨y⟩
exact Quotient.sound (PathConnectedSpace.joined x y)
· unfold ZerothHomotopy
rintro ⟨h, h'⟩
exact ⟨(nonempty_quotient_iff _).mp h, fun x y => Quotient.exact <| Subsingleton.elim ⟦x⟧ ⟦y⟧⟩
namespace PathConnectedSpace
variable [PathConnectedSpace X]
/-- Use path-connectedness to build a path between two points. -/
def somePath (x y : X) : Path x y :=
Nonempty.some (joined x y)
instance : Subsingleton (ZerothHomotopy X) :=
(pathConnectedSpace_iff_zerothHomotopy.1 inferInstance).2
end PathConnectedSpace
theorem pathConnectedSpace_iff_univ : PathConnectedSpace X ↔ IsPathConnected (univ : Set X) := by
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 : Set X) :=
pathConnectedSpace_iff_univ.mp inferInstance
theorem isPathConnected_range [PathConnectedSpace X] {f : X → Y} (hf : Continuous f) :
IsPathConnected (range f) := by
rw [← image_univ]
exact isPathConnected_univ.image hf
theorem Function.Surjective.pathConnectedSpace [PathConnectedSpace X]
{f : X → Y} (hf : Surjective f) (hf' : Continuous f) : PathConnectedSpace Y := by
rw [pathConnectedSpace_iff_univ, ← hf.range_eq]
exact isPathConnected_range hf'
theorem Homeomorph.pathConnectedSpace [PathConnectedSpace X] (h : X ≃ₜ Y) :
PathConnectedSpace Y :=
h.surjective.pathConnectedSpace h.continuous
instance Quotient.instPathConnectedSpace {s : Setoid X} [PathConnectedSpace X] :
PathConnectedSpace (Quotient s) :=
Quotient.mk'_surjective.pathConnectedSpace continuous_coinduced_rng
/-- This is a special case of `NormedSpace.instPathConnectedSpace` (and
`IsTopologicalAddGroup.pathConnectedSpace`). It exists only to simplify dependencies. -/
instance Real.instPathConnectedSpace : PathConnectedSpace ℝ where
joined x y := ⟨⟨⟨fun (t : I) ↦ (1 - t) * x + t * y, by fun_prop⟩, by simp, by simp⟩⟩
nonempty := inferInstance
/-! ### Products and pi types -/
section Prod
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. -/
theorem Joined.prod {x₁ x₂ : X} {y₁ y₂ : Y} (hx : Joined x₁ x₂) (hy : Joined y₁ y₂) :
Joined (x₁, y₁) (x₂, y₂) :=
⟨hx.somePath.prod hy.somePath⟩
/-- 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 JoinedIn.prod {x₁ x₂ : X} {y₁ y₂ : Y} (hx : JoinedIn s x₁ x₂) (hy : JoinedIn t y₁ y₂) :
JoinedIn (s ×ˢ t) (x₁, y₁) (x₂, y₂) :=
⟨hx.somePath.prod hy.somePath, by 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 := by
ext ⟨a, b⟩
simp only [Set.mem_prod, mem_pathComponent_iff]
exact ⟨fun h ↦ ⟨h.map continuous_fst, h.map continuous_snd⟩, fun ⟨h₁, h₂⟩ ↦ h₁.prod h₂⟩
/-- The product of two path-connected sets is path-connected. -/
theorem IsPathConnected.prod (hs : IsPathConnected s) (ht : IsPathConnected t) :
IsPathConnected (s ×ˢ t) := by
rw [isPathConnected_iff]
refine ⟨hs.nonempty.prod ht.nonempty, fun (x₁, y₁) ⟨hx₁, hy₁⟩ (x₂, y₂) ⟨hx₂, hy₂⟩ ↦ ?_⟩
exact hs.joinedIn 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 isPathConnected_univ.prod isPathConnected_univ
end Prod
section Pi
variable {Z : ι → Type*} [∀ i, TopologicalSpace (Z i)]
/-- If for each `i`, `x i` is joined to `y i`, then `x` is joined to `y` in the product space. -/
theorem Joined.pi {x y : ∀ i, Z i} (h : ∀ i, Joined (x i) (y i)) : Joined x y :=
⟨.pi fun i ↦ (h i).somePath⟩
/-- 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 JoinedIn.pi {s : ∀ i, Set (Z i)} {x y : ∀ i, Z i}
(h : ∀ i, JoinedIn (s i) (x i) (y i)) : JoinedIn (Set.univ.pi s) x y :=
⟨.pi (fun i ↦ (h i).somePath), by simp⟩
/-- The path component of `x` in a product space is the product of the path components of its
coordinates. -/
theorem pathComponent_pi (x : ∀ i, Z i) :
pathComponent x = Set.univ.pi fun i ↦ pathComponent (x i) := by
ext y
simp only [Set.mem_univ_pi, mem_pathComponent_iff]
exact ⟨fun h i ↦ h.map (continuous_apply i), fun h ↦ .pi h⟩
/-- The product of a family of path-connected sets is path-connected. -/
theorem IsPathConnected.pi {s : ∀ i, Set (Z i)} (h : ∀ i, IsPathConnected (s i)) :
IsPathConnected (Set.univ.pi s) := by
choose x hx hjoin using h
exact ⟨x, by simpa, fun y hy ↦ .pi fun i ↦ hjoin i (by grind)⟩
instance Pi.instPathConnectedSpace [∀ i, PathConnectedSpace (Z i)] :
PathConnectedSpace (∀ i, Z i) := by
rw [pathConnectedSpace_iff_univ, ← Set.pi_univ]
exact .pi fun _ ↦ isPathConnected_univ
end Pi
theorem pathConnectedSpace_iff_eq : PathConnectedSpace X ↔ ∃ x : X, pathComponent x = univ := by
simp [pathConnectedSpace_iff_univ, isPathConnected_iff_eq]
-- see Note [lower instance priority]
instance (priority := 100) PathConnectedSpace.connectedSpace [PathConnectedSpace X] :
ConnectedSpace X := by
rw [connectedSpace_iff_connectedComponent]
rcases isPathConnected_iff_eq.mp (pathConnectedSpace_iff_univ.mp ‹_›) with ⟨x, _x_in, hx⟩
use x
rw [← univ_subset_iff]
exact (by simpa using hx : pathComponent x = univ) ▸ pathComponent_subset_component x
/-- A path-connected set is connected.
(See `Counterexamples.TopologistsSineCurve` for the standard counterexample showing that the
converse is false.) -/
theorem IsPathConnected.isConnected (hF : IsPathConnected F) : IsConnected F := by
rw [isConnected_iff_connectedSpace]
rw [isPathConnected_iff_pathConnectedSpace] at hF
exact @PathConnectedSpace.connectedSpace _ _ hF
namespace PathConnectedSpace
variable [PathConnectedSpace X]
theorem exists_path_through_family {n : ℕ} (p : Fin (n + 1) → X) :
∃ γ : Path (p 0) (p (last n)), ∀ i, p i ∈ range γ := by
have : IsPathConnected (univ : Set X) := pathConnectedSpace_iff_univ.mp (by infer_instance)
rcases this.exists_path_through_family p fun _i => True.intro with ⟨γ, -, h⟩
exact ⟨γ, h⟩
theorem exists_path_through_family' {n : ℕ} (p : Fin (n + 1) → X) :
∃ (γ : Path (p 0) (p (last n))) (t : Fin (n + 1) → I), ∀ i, γ (t i) = p i := by
have : IsPathConnected (univ : Set X) := pathConnectedSpace_iff_univ.mp (by infer_instance)
rcases this.exists_path_through_family' p fun _i => True.intro with ⟨γ, t, -, h⟩
exact ⟨γ, t, h⟩
end PathConnectedSpace
/-- The preimage of a singleton in `ZerothHomotopy` is the path component of an element in the
equivalence class. -/
theorem ZerothHomotopy.preimage_singleton_eq_pathComponent (x : X) :
ZerothHomotopy.mk ⁻¹' {.mk x} = pathComponent x := by
ext y
rw [mem_preimage, mem_singleton_iff, eq_comm, mem_pathComponent_iff]
exact Quotient.eq
instance [CompactSpace X] : CompactSpace <| ZerothHomotopy X := Quotient.compactSpace
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.178Angebot
¤
*Eine klare Vorstellung vom Zielzustand
|
|
2026-11-24
|
|
|
|
|