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.
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).
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.
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.
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} {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 {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.
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.
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.
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
reparameterize : forall {d1 : filter.filter_display} {T : topology_structure.Topological.Exports.topologicalType d1} {d2 : filter.filter_display} [i : topology_structure.BiPointedTopological.Exports.bpTopologicalType d2] {d3 : filter.filter_display} [j : topology_structure.BiPointedTopological.Exports.bpTopologicalType d3] [x y : topology_structure.Topological.sort T], {path i from x to y in T} -> {path j from zero to one in topology_structure.BiPointedTopological.Exports.topology_structure_BiPointedTopological__to__topology_structure_Topological i} -> topology_structure.BiPointedTopological.sort j -> topology_structure.Topological.sort T reparameterize is not universe polymorphic Arguments reparameterize {d1}%_fdisp_scope {T} {d2}%_fdisp_scope [i] {d3}%_fdisp_scope [j x y] f phi x reparameterize is transparent Expands to: Constant mathcomp.analysis.homotopy_theory.continuous_path.reparameterize Declared in library mathcomp.analysis.homotopy_theory.continuous_path, line 119, characters 11-25
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.
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.
by case => //= [][] //=; rewrite ?path_one ?path_zero.
Qed.
Let chain_path_oneSource code : chain_path p q one = z.
Proof.
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.