Module mathcomp.analysis.topology_theory.initial_topology
From HB Require Import structures.From mathcomp Require Import boot order algebra all_classical finmap.
#[warning="-warn-library-file-internal-analysis"]
From mathcomp Require Import unstable.
From mathcomp Require Import interval_inference reals topology_structure.
From mathcomp Require Import uniform_structure product_topology order_topology.
From mathcomp Require Import pseudometric_structure.
Import Order.TTheory GRing.Theory Num.Theory.
Set Implicit Arguments.
Unset Strict Implicit.
Unset Printing Implicit Defensive.
Local Open Scope classical_set_scope.
Local Open Scope ring_scope.
Definition initial_topology
initial_topology : forall {S T : Type}, (S -> T) -> Type initial_topology is not universe polymorphic Arguments initial_topology {S T}%_type_scope f%_function_scope initial_topology is transparent Expands to: Constant mathcomp.analysis.topology_theory.initial_topology.initial_topology Declared in library mathcomp.analysis.topology_theory.initial_topology, line 53, characters 11-27
Used by
- mathcomp.analysis.homotopy_theory.continuous_path
- mathcomp.analysis.topology_theory.subspace_topology
- mathcomp.analysis.topology_theory.subtype_topology
- mathcomp.analysis.topology_theory.function_spaces
- mathcomp.analysis.topology_theory.one_point_compactification
- mathcomp.analysis.normedtype_theory.urysohn
Source code {SSource code TSource code : Type} (fSource code : S -> T) : Type := S.
Fact initial_displayUsed by
- mathcomp.analysis.normedtype_theory.urysohn
Source code {SSource code TSource code : Type} (fSource code : S -> T) : filter_display.
Proof.
Context {SSource code : choiceType} {dSource code} {TSource code : topologicalType d} (fSource code : S -> T).
Local Notation WSource code := (initial_topology f).
Definition initial_open
initial_open : forall {S : choiceType} {d : filter.filter_display} {T : topology_structure.Topological.Exports.topologicalType d}, (S -> topology_structure.Topological.sort T) -> set (set S) initial_open is not universe polymorphic Arguments initial_open {S} {d}%_fdisp_scope {T} f%_function_scope _ initial_open is transparent Expands to: Constant mathcomp.analysis.topology_theory.initial_topology.initial_open Declared in library mathcomp.analysis.topology_theory.initial_topology, line 62, characters 11-23
Used by
- mathcomp.analysis.normedtype_theory.tvs
Source code := [set f @^-1` A | ASource code in open].
Let initial_opTSource code : initial_open [set: W].
Let initial_opISource code : setI_closed initial_open.
Let initial_op_bigUSource code (ISource code : Type) (gSource code : I -> set W) :
(forall iSource code, initial_open (g i)) -> initial_open (\bigcup_iSource code g i).
Proof.
set opi := fun iSource code => [set UiSource code | open Ui /\ g i = f @^-1` Ui].
exists (\bigcup_iSource code get (opi i)).
apply: bigcup_open => i.
by have /getPex [] : exists USource code, opi i U by have [U] := gop i; exists U.
have g_preim i : g i = f @^-1` (get (opi i)).
by have /getPex [] : exists USource code, opi i U by have [U] := gop i; exists U.
rewrite predeqE => s; split=> [[i _]|[i _]]; last by rewrite g_preim; exists i.
by rewrite -[_ _]/((f @^-1` _) _) -g_preim; exists i.
Qed.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code ChoiceSource code.on W.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code
isOpenTopological.Build (initial_display f) W
initial_opT initial_opI initial_op_bigU.
Lemma initial_continuousUsed by
- mathcomp.analysis.topology_theory.subtype_topology
- mathcomp.analysis.topology_theory.function_spaces
Source code : continuous (f : W -> T).
Proof.
Lemma cvg_imageUsed by
- mathcomp.analysis.topology_theory.function_spaces
Source code (FSource code : set_system S) (sSource code : S) :
Filter F -> f @` setT = setT ->
F --> (s : W) <-> ([set f @` A | ASource code in F] : set_system _) --> f s.
Proof.
move=> A /initial_continuous [B [Bop Bs sBAf]].
have /cvFs FB : nbhs (s : W) B by exact: open_mem_nbhs.
rewrite nbhs_simpl; exists (f @^-1` A); first exact: filterS FB.
exact: image_preimage.
move=> A /= [_ [[B Bop <-] Bfs sBfA]].
have /cvfFfs [C FC fCeB] : nbhs (f s) B by rewrite nbhsE; exists B.
rewrite nbhs_filterE; apply: filterS FC.
by apply: subset_trans sBfA; rewrite -fCeB; apply: preimage_image.
Qed.
Lemma initial_nbhs_preimageUsed by
- mathcomp.analysis.normedtype_theory.tvs
Source code (wSource code : W) ASource code : nbhs (f w) A -> nbhs w (f @^-1` A).
Proof.
End Initial_Topology.
HBSource code.instanceSource code DefinitionSource code _Source code (SSource code :Source code pointedTypeSource code) d (T : topologicalType d)
(f : S -> T) := Pointed.on (initial_topology f).
Fact sub_initial_displaySource code (VSource code : Type) (SSource code : pred V) (USource code : subChoiceType S) :
filter_display.
Proof.
Definition sub_initial_topology
sub_initial_topology : forall [V : Type] [S : pred V], subChoiceType (T:=V) S -> Type sub_initial_topology is not universe polymorphic Arguments sub_initial_topology [V]%_type_scope [S] U sub_initial_topology is transparent Expands to: Constant mathcomp.analysis.topology_theory.initial_topology.sub_initial_topology Declared in library mathcomp.analysis.topology_theory.initial_topology, line 126, characters 11-31
Used by
- mathcomp.analysis.normedtype_theory.tvs
Source code (VSource code : Type) (SSource code : pred V) (USource code : subChoiceType S)
: Type
:= with_fdisp (sub_initial_display U) (initial_topology (\val : U -> V)).
Context dSource code (VSource code : topologicalType d) (SSource code : pred V) (USource code : subChoiceType S).
Local Notation TSource code := (sub_initial_topology U).
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code SubChoiceSource code.on T.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code NbhsSource code.on T.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code TopologicalSource code.on T.
Let top_continuous_valESource code : continuous (val : T -> V).
Proof.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code @isSubNbhsSource code.Build _ _ V S T top_continuous_valE.
End SubType_isSubTopological.
Local Open Scope relation_scope.
Context {pSSource code : choiceType} {dSource code} {USource code : uniformType d} (fSource code : pS -> U).
Let SSource code := initial_topology f.
Definition initial_ent
initial_ent : forall {pS : choiceType} {d : filter.filter_display} {U : uniformType d} [f : pS -> U], set_system (initial_topology f * initial_topology f) initial_ent is not universe polymorphic Arguments initial_ent {pS} {d}%_fdisp_scope {U} [f]%_function_scope _ initial_ent is transparent Expands to: Constant mathcomp.analysis.topology_theory.initial_topology.initial_ent Declared in library mathcomp.analysis.topology_theory.initial_topology, line 151, characters 11-22
Source code : set_system (S * S) :=
filter_from (@entourage _ U) (fun VSource code => (map_pair f)@^-1` V).
Let initial_ent_filterSource code : Filter initial_ent.
Proof.
by move=> P Q ? ?; (exists (P `&` Q); first exact: filterI) => ?.
Qed.
Let initial_ent_reflSource code ASource code : initial_ent A -> diagonal `<=` A.
Proof.
Let initial_ent_invSource code ASource code : initial_ent A -> initial_ent A^-1.
Proof.
Let initial_ent_splitSource code ASource code : initial_ent A -> exists2 BSource code, initial_ent B & B \; B `<=` A.
Proof.
Let initial_ent_nbhsSource code : nbhs = nbhs_ initial_ent.
Proof.
case=> [? [[B ? <-] ? BsubV]]; have: nbhs (f x) B by exact: open_mem_nbhs.
move=> /nbhsP [W ? WsubB]; exists ((map_pair f) @^-1` W); first by exists W.
by move=> ? ?; exact/BsubV/WsubB.
case=> W [V' entV' V'subW] /filterS; apply.
have : nbhs (f x) (xsection V' (f x)) by apply/nbhsP; exists V'.
rewrite (@nbhsE _ U) => [[O [openU Ofx Osub]]].
(exists (f @^-1` O); repeat split => //); first by exists O => //.
by move=> w ?; apply/mem_set; apply: V'subW; apply/set_mem; exact: Osub.
Qed.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code @Nbhs_isUniformSource code.Build
_ (initial_topology f)
initial_ent initial_ent_filter initial_ent_refl initial_ent_inv
initial_ent_split initial_ent_nbhs.
End initial_uniform.
Context {TSource code : choiceType} {dSource code} {USource code : uniformType d} (fSource code : T -> U).
Lemma initial_unif_continuousUsed by
- mathcomp.analysis.normedtype_theory.tvs
Source code :
unif_continuous (f : initial_topology f -> U).
Proof.
Lemma initial_unif_continuous_compUsed by
- mathcomp.analysis.normedtype_theory.tvs
Source code d'Source code (VSource code : uniformType d')
(gSource code : V -> initial_topology f) :
unif_continuous (f \o g : V -> U) -> unif_continuous g.
Proof.
Lemma initial_unif_continuous_comp_fstUsed by
- mathcomp.analysis.normedtype_theory.tvs
Source code d'Source code (VSource code : uniformType d') :
unif_continuous (fun xSource code : initial_topology f * V => f x.1).
Proof.
Lemma initial_unif_continuous_comp_sndUsed by
- mathcomp.analysis.normedtype_theory.tvs
Source code d'Source code (VSource code : uniformType d') :
unif_continuous (fun xSource code : V * initial_topology f => f x.2).
Proof.
End initial_unif_continuous.
HBSource code.instanceSource code DefinitionSource code _Source code (pSSource code :Source code pointedTypeSource code) d (U : uniformType d) (f : pS -> U)
:= Pointed.on (initial_topology f).
Context dSource code {RSource code : realType} (USource code : pseudoMetricType d R)
(pSSource code : choiceType) (fSource code : pS -> U).
Notation SSource code := (initial_topology f).
Definition initial_ball
initial_ball : forall [d : filter.filter_display] {R : realType} [U : pseudoMetricType d R] [pS : choiceType] [f : pS -> U], initial_topology f -> R -> initial_topology f -> Prop initial_ball is not universe polymorphic Arguments initial_ball [d]%_fdisp_scope {R} [U pS] [f]%_function_scope x r%_ring_scope y initial_ball is transparent Expands to: Constant mathcomp.analysis.topology_theory.initial_topology.initial_ball Declared in library mathcomp.analysis.topology_theory.initial_topology, line 236, characters 11-23
Source code (xSource code : S) (rSource code : R) (ySource code : S) := ball (f x) r (f y).
Let initial_pseudo_metric_ball_centerSource code (xSource code : S) (eSource code : R) : 0 < e ->
initial_ball x e x.
Proof.
Let initial_pseudo_metric_entourageESource code : entourage = entourage_ initial_ball.
Proof.
have -> : (fun eSource code => [set xySource code | ball (f xy.1) e (f xy.2)]) =
(preimage (map_pair f) \o fun eSource code => [set xySource code | ball xy.1 e xy.2])%FUN.
by [].
rewrite eqEsubset; split; apply/filter_fromP.
- apply: filter_from_filter; first by exists 1 => /=.
move=> e1 e2 e1pos e2pos; wlog e1lee2 : e1 e2 e1pos e2pos / e1 <= e2.
by have [?|/ltW ?] := lerP e1 e2; [exact | rewrite setIC; exact].
exists e1 => //; rewrite -preimage_setI; apply: preimage_subset.
by move=> ? ?; split => //; apply: le_ball; first exact: e1lee2.
- by move=> E [e ?] heE; exists e => //; apply: preimage_subset.
- apply: filter_from_filter.
by exists [set xySource code | ball xy.1 1 xy.2]; exists 1 => /=.
move=> E1 E2 [e1 e1pos he1E1] [e2 e2pos he2E2].
wlog ? : E1 E2 e1 e2 e1pos e2pos he1E1 he2E2 / e1 <= e2.
have [? /(_ _ _ e1 e2)|/ltW ? ] := lerP e1 e2; first exact.
by rewrite setIC => /(_ _ _ e2 e1); exact.
exists (E1 `&` E2) => //; exists e1 => // xy /= B; split; first exact: he1E1.
by apply/he2E2/le_ball; last exact: B.
- by move=> e ?; exists [set xySource code | ball xy.1 e xy.2] => //; exists e => /=.
Qed.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code Uniform_isPseudoMetricSource code.Build _ R S
initial_pseudo_metric_ball_center
(fun _ _ _ => @ball_sym _ _ _ _ _ _)
(fun _ _ _ _ _ => @ball_triangle _ _ _ _ _ _ _ _)
initial_pseudo_metric_entourageE.
Lemma initial_ballESource code (eSource code : R) (xSource code : S) : f @^-1` (ball (f x) e) = ball x e.
Proof.
End initial_pseudoMetric.
0,1[ | {2}` as a subset of `[0,3]` for an example
Context {tdSource code odSource code} {XSource code : orderTopologicalType td od} {YSource code : subType X}.
Let OrdUSource code : orderTopologicalType _ od := order_topology (sub_type Y).
Let InitialUSource code : topologicalType _ := initial_topology (val : sub_type Y -> X).
Lemma open_order_initialSource code (USource code : set Y) : @open _ OrdU U -> @open _ InitialU U.
Proof.
move=> [][][[]l|[]] [[]r|[]][]//= _ xlr /filterS; apply.
- exists `]l, r[%classic; split => //=; exists `]\val l, \val r[%classic.
exact: itv_open.
by rewrite eqEsubset; split => z; rewrite preimage_itv.
- exists `]l, +oo[%classic; split => //=; exists `]\val l, +oo[%classic.
exact: rray_open.
by rewrite eqEsubset; split => z; rewrite preimage_itv.
- exists `]-oo, r[%classic; split => //=; exists `]-oo, \val r[%classic.
exact: lray_open.
by rewrite eqEsubset; split => z; rewrite preimage_itv.
- by rewrite set_itvE; exact: filterT.
Qed.
End initial_order_refine.
Lemma continuous_comp_initialUsed by
- mathcomp.analysis.topology_theory.function_spaces
- mathcomp.analysis.normedtype_theory.tvs
Source code {YSource code : choiceType} {dSource code} {XSource code : topologicalType d}
{d'Source code} {ZSource code : topologicalType d'} (wSource code : Y -> Z) (fSource code : X -> initial_topology w) :
continuous (w \o f) -> continuous f.