Module mathcomp.analysis.homotopy_theory.continuous_path
From HB Require Import structures.From mathcomp Require Import boot order generic_quotient algebra finmap.
From mathcomp Require Import boolp classical_sets functions cardinality fsbigop.
From mathcomp Require Import reals topology wedge_sigT.
# Paths from biPointed spaces.
`mk_path ctsf f0 f1`
: constructs a value in `pathType x y` given proofs that the endpoints of
: `f` are `x` and `y`
`reparameterize f phi`
: the path `f` with a different parameterization
`chain_path f g`
: the path which follows `f`, then follows `g`
: Only makes sense when `f one = g zero`.
: The domain is the wedge of domains of `f` and `g`.
The type `{path i from x to y in T}` is the continuous functions on the
bipointed space `i` that go from `x` to `y` staying in `T`. It is endowed
with:
- topology via the compact-open topology
Set Implicit Arguments.
Unset Strict Implicit.
Unset Printing Implicit Defensive.
Reserved Notation "{ 'path' i 'from' x 'to' y }" (
at level 0, i at level 69, x at level 69, y at level 69,
only parsing,
format "{ 'path' i 'from' x 'to' y }").
Reserved Notation "{ 'path' i 'from' x 'to' y 'in' T }" (
at level 0, i at level 69, x at level 69, y at level 69, T at level 69,
format "{ 'path' i 'from' x 'to' y 'in' T }").
Local Open Scope classical_set_scope.
Local Open Scope ring_scope.
Local Open Scope quotient_scope.
HBSource code.mixinSource code RecordSource code isPathSource code {d}Source code {iSource code :Source code bpTopologicalTypeSource code d}
{d'} {T : topologicalType d'} (x y : T) (f : i -> T)
& isContinuous d i d' T f := {
path_zero : f zero = x;
path_one : f one = y;
}.
#[shortSource code(type=Source code"pathType"Source code)]Source code
HBSource code.structureSource code DefinitionSource code PathSource code {d}Source code {iSource code :Source code bpTopologicalTypeSource code d}
{d'} {T : topologicalType d'} (x y : T) :=
{fSource code of isPath d i d' T x y f & isContinuous d i d' T f}.
Notation "{ 'path' i 'from' x 'to' y }"Source code := (pathType i x y) : type_scope.
Notation "{ 'path' i 'from' x 'to' y 'in' T }"Source code :=
(@pathType _ i _ T x y) : type_scope.
HBSource code.instanceSource code DefinitionSource code _Source code {d}Source code {iSource code :Source code bpTopologicalTypeSource code d}
{d'} {T : topologicalType d'} (x y : T) := gen_eqMixin {path i from x to y}.
HBSource code.instanceSource code DefinitionSource code _Source code {d}Source code {iSource code :Source code bpTopologicalTypeSource code d} {d'}
{T : topologicalType d'} (x y : T) := gen_choiceMixin {path i from x to y}.
HBSource code.instanceSource code DefinitionSource code _Source code {d}Source code {iSource code :Source code bpTopologicalTypeSource code d}
{d'} {T : topologicalType d'} (x y : T) :=
Topological.copy {path i from x to y}
(@initial_topology {path i from x to y} {compact-open, i -> T} id).
Section path_eq.
Context {dSource code} {TSource code : topologicalType d} {d'Source code} {iSource code : bpTopologicalType d'} (xSource code ySource code : T).
Lemma path_eqPSource code (aSource code bSource code : {path i from x to y}) : a = b <-> a =1 b.
End path_eq.
Context {dSource code} {TSource code : topologicalType d} {d'Source code} {iSource code : bpTopologicalType d'} (xSource code ySource code : T).
Lemma path_eqPSource code (aSource code bSource code : {path i from x to y}) : a = b <-> a =1 b.
Proof.
split=> [->//|].
move: a b => [/= f [[+ +]]] [/= g [[+ +]]] fgE.
move/funext : fgE => -> /= a1 [b1 c1] a2 [b2 c2]; congr (_ _).
rewrite (Prop_irrelevance a1 a2) (Prop_irrelevance b1 b2).
by rewrite (Prop_irrelevance c1 c2).
Qed.
move: a b => [/= f [[+ +]]] [/= g [[+ +]]] fgE.
move/funext : fgE => -> /= a1 [b1 c1] a2 [b2 c2]; congr (_ _).
rewrite (Prop_irrelevance a1 a2) (Prop_irrelevance b1 b2).
by rewrite (Prop_irrelevance c1 c2).
Qed.
End path_eq.
Section cst_path.
Context {dSource code} {TSource code : topologicalType d} {d'Source code} {iSource code : bpTopologicalType d'} (xSource code : T).
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code @isPathSource code.Build _ i _ T x x (cst x) erefl erefl.
End cst_path.
Context {dSource code} {TSource code : topologicalType d} {d'Source code} {iSource code : bpTopologicalType d'} (xSource code : T).
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code @isPathSource code.Build _ i _ T x x (cst x) erefl erefl.
End cst_path.
Section path_domain_path.
Context {dSource code} {iSource code : bpTopologicalType d}.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code @isPathSource code.Build _ i _ i zero one idfun erefl erefl.
End path_domain_path.
Context {dSource code} {iSource code : bpTopologicalType d}.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code @isPathSource code.Build _ i _ i zero one idfun erefl erefl.
End path_domain_path.
Section path_compose.
Context {d1Source code} {TSource code : topologicalType d1} {d2Source code} {USource code : topologicalType d2}
{d3Source code} (iSource code : bpTopologicalType d3) (xSource code ySource code : T).
Context (fSource code : continuousType T U) (pSource code : {path i from x to y}).
Local Lemma fp_zeroSource code : (f \o p) zero = f x.
Local Lemma fp_oneSource code : (f \o p) one = f y.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code isPathSource code.Build _ i _ U (f x) (f y) (f \o p)
fp_zero fp_one.
End path_compose.
Context {d1Source code} {TSource code : topologicalType d1} {d2Source code} {USource code : topologicalType d2}
{d3Source code} (iSource code : bpTopologicalType d3) (xSource code ySource code : T).
Context (fSource code : continuousType T U) (pSource code : {path i from x to y}).
Local Lemma fp_zeroSource code : (f \o p) zero = f x.
Proof.
Local Lemma fp_oneSource code : (f \o p) one = f y.
Proof.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code isPathSource code.Build _ i _ U (f x) (f y) (f \o p)
fp_zero fp_one.
End path_compose.
Section path_reparameterize.
Context {d1Source code} {TSource code : topologicalType d1} {d2Source code} (iSource code : bpTopologicalType d2)
{d3Source code} (jSource code : bpTopologicalType d3) (xSource code ySource code : T).
Context (fSource code : {path i from x to y}) (phiSource code : {path j from zero to one in i}).
Source code := f \o phi.
Let fphi_zeroSource code : reparameterize zero = x.
Let fphi_oneSource code : reparameterize one = y.
Let fphi_ctsSource code : continuous reparameterize.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code isContinuousSource code.Build _ _ _ _ reparameterize fphi_cts.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code isPathSource code.Build _ j _ T x y reparameterize
fphi_zero fphi_one.
End path_reparameterize.
Context {d1Source code} {TSource code : topologicalType d1} {d2Source code} (iSource code : bpTopologicalType d2)
{d3Source code} (jSource code : bpTopologicalType d3) (xSource code ySource code : T).
Context (fSource code : {path i from x to y}) (phiSource code : {path j from zero to one in i}).
We use reparameterize, as opposed to just `\o` because we can simplify the
endpoints. So we do not end up with `f \o p : {path j from f zero to f one}`
but rather `{path j from zero to one}`.
Definition reparameterizeuniform_bounded : forall {d : filter_display} {K : realType} {V : normedModType d K} {d' : filter_display} {W : normedModType d' K}, set (V -> W) -> Prop uniform_bounded is not universe polymorphic Arguments uniform_bounded {d}%_fdisp_scope {K V} {d'}%_fdisp_scope {W} F%_classical_set_scope uniform_bounded is transparent Expands to: Constant mathcomp.analysis.sequences.uniform_bounded Declared in library mathcomp.analysis.sequences, line 3335, characters 11-26
Source code := f \o phi.
Let fphi_zeroSource code : reparameterize zero = x.
Proof.
Let fphi_oneSource code : reparameterize one = y.
Proof.
Let fphi_ctsSource code : continuous reparameterize.
Proof.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code isContinuousSource code.Build _ _ _ _ reparameterize fphi_cts.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code isPathSource code.Build _ j _ T x y reparameterize
fphi_zero fphi_one.
End path_reparameterize.
Section mk_path.
Context {dSource code} {iSource code : bpTopologicalType d} {d'Source code} {TSource code : topologicalType d'}.
Context {xSource code ySource code : T} (fSource code : i -> T) (ctsfSource code : continuous f).
Context (f0Source code : f zero = x) (f1Source code : f one = y).
Definition mk_path
Source code : i -> T := let _ := (ctsf, f0, f1) in f.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code isContinuousSource code.Build _ i _ T mk_path ctsf.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code @isPathSource code.Build _ i _ T x y mk_path f0 f1.
End mk_path.
Context {dSource code} {iSource code : bpTopologicalType d} {d'Source code} {TSource code : topologicalType d'}.
Context {xSource code ySource code : T} (fSource code : i -> T) (ctsfSource code : continuous f).
Context (f0Source code : f zero = x) (f1Source code : f one = y).
Definition mk_path
Source code : i -> T := let _ := (ctsf, f0, f1) in f.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code isContinuousSource code.Build _ i _ T mk_path ctsf.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code @isPathSource code.Build _ i _ T x y mk_path f0 f1.
End mk_path.
Definition chain_path
Source code
{dSource code} {iSource code jSource code : bpTopologicalType d} {d'Source code} {TSource code : topologicalType d'}
(fSource code : i -> T) (gSource code : j -> T) : bpwedge i j -> T :=
wedge_fun (fun bSource code => if bSource code return (if b then i else j) -> T then f else g).
Lemma chain_path_cts_pointSource code
{dSource code} {iSource code jSource code : bpTopologicalType d} {d'Source code} {TSource code : topologicalType d'}
(fSource code : i -> T) (gSource code : j -> T) :
continuous f ->
continuous g ->
f one = g zero ->
continuous (chain_path f g).
Proof.
Section chain_path.
Context {dSource code} {TSource code : topologicalType d} {d'Source code} {iSource code jSource code : bpTopologicalType d'}
(xSource code ySource code zSource code : T).
Context (pSource code : {path i from x to y}) (qSource code : {path j from y to z}).
Let chain_path_zeroSource code : chain_path p q zero = x.
Let chain_path_oneSource code : chain_path p q one = z.
Let chain_path_ctsSource code : continuous (chain_path p q).
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code
@isContinuousSource code.Build _ _ _ T (chain_path p q) chain_path_cts.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code @isPathSource code.Build _ _ _ T x z (chain_path p q)
chain_path_zero chain_path_one.
End chain_path.
Context {dSource code} {TSource code : topologicalType d} {d'Source code} {iSource code jSource code : bpTopologicalType d'}
(xSource code ySource code zSource code : T).
Context (pSource code : {path i from x to y}) (qSource code : {path j from y to z}).
Let chain_path_zeroSource code : chain_path p q zero = x.
Proof.
rewrite /chain_path /= wedge_lift_funE ?path_one ?path_zero //.
by case => //= [][] //=; rewrite ?path_one ?path_zero.
Qed.
by case => //= [][] //=; rewrite ?path_one ?path_zero.
Qed.
Let chain_path_oneSource code : chain_path p q one = z.
Proof.
rewrite /chain_path /= wedge_lift_funE ?path_zero ?path_one //.
by case => //= [][] //=; rewrite ?path_one ?path_zero.
Qed.
by case => //= [][] //=; rewrite ?path_one ?path_zero.
Qed.
Let chain_path_ctsSource code : continuous (chain_path p q).
Proof.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code
@isContinuousSource code.Build _ _ _ T (chain_path p q) chain_path_cts.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code @isPathSource code.Build _ _ _ T x z (chain_path p q)
chain_path_zero chain_path_one.
End chain_path.