Module mathcomp.analysis.normedtype_theory.tvs
From HB Require Import structures.From mathcomp Require Import boot order ssralg ssrnum vector.
From mathcomp Require Import interval_inference finmap.
#[warning="-warn-library-file-internal-analysis"]
From mathcomp Require Import unstable.
From mathcomp Require Import boolp classical_sets functions cardinality.
From mathcomp Require Import convex set_interval reals topology.
From mathcomp Require Import initial_topology num_normedtype.
From mathcomp Require Import pseudometric_normed_Zmodule.
From mathcomp Require Import contra.
# Topological vector spaces
This file introduces locally convex topological vector spaces.
`balanced_set A`
: $\forall r, |r|\leq 1 \to rA \subseteq A$
`absolutely_convex_set A`
: convex and balanced set
`absorbing_set A`
: $\forall x, \exists r, r>0 \land rx\in A$
`NbhsLmodule K`
: HB join of `Nbhs` and `Lmodule` over `K`, a `numDomainType`
`preTopologicalLmodType K`
: topological space and `Lmodule` over `K`, a `numDomainType`
: The HB class is `PreTopologicalLmodule`.
`topologicalLmodType K`
: `topologicalNmodule` and `Lmodule` on `K ` with a continuous scaling
: operation
: The HB class is `TopologicalLmodule`.
`convexTvsType R`
: interface type for a locally convex TVS on a `numDomainType` `R`
: A convex TVS is constructed over a uniform space.
: The HB class is `ConvexTvs`.
`subConvexTvsType R V S`
: join of `subTopologicalType`, `convexTvsType`, and `subLmoduleType`
: The HB class is `SubConvexTvs`.
: Instance: in particular, it is shown that a sub-Lmodule is a sub-convex
: TVS.
`init_subconvextvs`
: the subConvexTvs structure on any subLmodule in a convexTvs, endowed
: with the initial topology induced by the embedding
`PreTopologicalLmod_isConvexTvs`
: factory allowing the construction of a convex TVS from an Lmodule which
: is also a topological space
`{linear_continuous E -> F}`
: the type of all linear and continuous functions between E and F, where E
: is a NbhsLmodule.type and F a NbhsZmodule.type over a numDomainType R
: The HB class is called LinearContinuous.
: The notation `{linear_continuous E -> F | s}` also exists.
`lcfun E F s`
: membership predicate for linear continuous functions of type `E -> F` h
: with scalar operator `s : K -> F -> F`
: `E` and `F` have type `convexTvsType K`.
: This is used in particular to attach a type of `lmodType` to
: `{linear_continuous E -> F | s}`.
`lcfun_spec f`
: specification for membership of the linear continuous function f
`closed_nbhsbasis_ctvs`
: the closure of a ctvs basis, shown to form a basis itself
`gauge_fun`
: Also called the Minkowski functional, the gauge function on an
: absolutely convex and absorbing subset is the distance of a point to
: this subset. It is endowed with a `Seminorm.type` structure.
`seminorm_on`
: builds a `convexTvsType` structure on a `Lmodule` from a nonempty family
: of seminorms
`seminorm_display P`
: display for `P : set (Norm.SemiNorm.type E)` with `E : lmodType R`
`seminorm_subbasis`
: the subbasis of neighbourhoods for `seminorm_on`, built as the reverse
: image by the seminorms of open balls centered at 0
`gauge_fun_basis`
: a gauge functional for an element of the basis of open neighbourhoods
: for a `convexTvsType`
`seminorm_of`
: the family of gauge functionals for the basis of open neighbourhoods for
: a `convexTvsType`. It is shown to generate through `seminorm_on` the
: same topology as the one generated by the said basis.
HB instances:
- The type `R^o` (`R : numFieldType`) is endowed with the structure of
`ConvexTvs`.
- The product of two TVS is endowed with the structure of `ConvexTvs`.
- `{linear_continuous E-> F}` is endowed with a lmodType structure when
`E` and `F` are `ConvexTvs`.
Reserved Notation "'{' 'linear_continuous' U '->' V '|' s '}'"
(at level 0, U at level 98, V at level 99,
format "{ 'linear_continuous' U -> V | s }").
Reserved Notation "'{' 'linear_continuous' U '->' V '}'"
(at level 0, U at level 98, V at level 99,
format "{ 'linear_continuous' U -> V }").
Set Implicit Arguments.
Unset Strict Implicit.
Unset Printing Implicit Defensive.
Import Order.TTheory GRing.Theory Num.Def Num.Theory.
Import numFieldTopology.Exports.
Local Open Scope classical_set_scope.
Local Open Scope ring_scope.
Section absolutely_convex.
Context {KSource code : numDomainType} {VSource code : lmodType K}.
Implicit Type A : set V.
Definition balanced_set
Used by
Source code ASource code := forall rSource code, `|r| <= 1 -> ( *:%R r) @` A `<=` A.
Definition absolutely_convex_set
Used by
Source code ASource code := convex_set A /\ balanced_set A.
Lemma absolutely_convex0Source code ASource code : A !=set0 -> absolutely_convex_set A -> A 0.
Definition absorbing_set
Source code ASource code := forall xSource code : V, exists2 rSource code, 0 < r & r *: x \in A.
End absolutely_convex.
Context {KSource code : numDomainType} {VSource code : lmodType K}.
Implicit Type A : set V.
Definition balanced_set
Used by
- mathcomp.analysis.normedtype_theory.normed_module
Source code ASource code := forall rSource code, `|r| <= 1 -> ( *:%R r) @` A `<=` A.
Definition absolutely_convex_set
Used by
- mathcomp.analysis.normedtype_theory.normed_module
Source code ASource code := convex_set A /\ balanced_set A.
Lemma absolutely_convex0Source code ASource code : A !=set0 -> absolutely_convex_set A -> A 0.
Proof.
Definition absorbing_set
Source code ASource code := forall xSource code : V, exists2 rSource code, 0 < r & r *: x \in A.
End absolutely_convex.
Lemma absolutely_convex_setXSource code (KSource code : numDomainType) (ESource code FSource code : lmodType K)
(ASource code : set E) (BSource code : set F) :
absolutely_convex_set A -> absolutely_convex_set B ->
absolutely_convex_set (A `*` B).
Proof.
move=> [convA balA] [convB balB]; split.
- move => [x1 y1] [x2 y2] l /[!inE] /= -[Ax1 By1] [Ax2 By2]; split.
+ by apply/set_mem/convA; exact/mem_set.
+ by apply/set_mem/convB; exact/mem_set.
- move=> r r1 [x1 y1] [[x2 y2]]/= [Ax2 By2] [] <- <-; split.
+ by apply/balA; [exact: r1|exists x2].
+ by apply/balB; [exact: r1|exists y2].
Qed.
- move => [x1 y1] [x2 y2] l /[!inE] /= -[Ax1 By1] [Ax2 By2]; split.
+ by apply/set_mem/convA; exact/mem_set.
+ by apply/set_mem/convB; exact/mem_set.
- move=> r r1 [x1 y1] [[x2 y2]]/= [Ax2 By2] [] <- <-; split.
+ by apply/balA; [exact: r1|exists x2].
+ by apply/balB; [exact: r1|exists y2].
Qed.
HBSource code.structureSource code DefinitionSource code NbhsLmoduleSource code dSource code (KSource code :Source code numDomainTypeSource code) :=
{MSource code of Nbhs d M & GRing.Lmodule K M}.
#[shortSource code(type=Source code"preTopologicalLmodType"Source code)]Source code
HBSource code.structureSource code DefinitionSource code PreTopologicalLmoduleSource code dSource code (KSource code :Source code numDomainTypeSource code) :=
{MSource code of Topological d M & GRing.Lmodule K M}.
Section properties_of_preTopologicalLmodule.
Context dSource code (RSource code : numDomainType) (ESource code : preTopologicalLmodType d R) (USource code : set E).
Lemma nbhsN_subproofSource code (fSource code : continuous (fun zSource code : R^o * E => z.1 *: z.2)) (xSource code : E) :
nbhs x U -> nbhs (-x) (-%R @` U).
Lemma nbhs0N_subproofSource code (fSource code : continuous (fun zSource code : R^o * E => z.1 *: z.2)) :
nbhs 0 U -> nbhs 0 (-%R @` U).
Lemma nbhsD_subproofSource code (fSource code : continuous (fun xSource code : E * E => x.1 + x.2)) (xSource code : E) :
nbhs 0 U -> nbhs x (+%R x @` U).
Lemma nbhsB_subproofSource code (fSource code : continuous (fun xSource code : E * E => x.1 + x.2)) (zSource code xSource code : E) :
nbhs z U -> nbhs (x + z) (+%R x @` U).
End properties_of_preTopologicalLmodule.
Context dSource code (RSource code : numDomainType) (ESource code : preTopologicalLmodType d R) (USource code : set E).
Lemma nbhsN_subproofSource code (fSource code : continuous (fun zSource code : R^o * E => z.1 *: z.2)) (xSource code : E) :
nbhs x U -> nbhs (-x) (-%R @` U).
Proof.
Lemma nbhs0N_subproofSource code (fSource code : continuous (fun zSource code : R^o * E => z.1 *: z.2)) :
nbhs 0 U -> nbhs 0 (-%R @` U).
Proof.
Lemma nbhsD_subproofSource code (fSource code : continuous (fun xSource code : E * E => x.1 + x.2)) (xSource code : E) :
nbhs 0 U -> nbhs x (+%R x @` U).
Proof.
Lemma nbhsB_subproofSource code (fSource code : continuous (fun xSource code : E * E => x.1 + x.2)) (zSource code xSource code : E) :
nbhs z U -> nbhs (x + z) (+%R x @` U).
Proof.
End properties_of_preTopologicalLmodule.
HBSource code.mixinSource code RecordSource code TopologicalZmodule_isTopologicalLmoduleSource code dSource code (RSource code :Source code numDomainTypeSource code) M
& PreTopologicalLmodule d R M :=
{ scale_continuous : continuous (fun zSource code : R^o * M => z.1 *: z.2) }.
#[shortSource code(type=Source code"topologicalLmodType"Source code)]Source code
HBSource code.structureSource code DefinitionSource code TopologicalLmoduleSource code dSource code (KSource code :Source code numDomainTypeSource code) :=
{MSource code of TopologicalZmodule d M & GRing.Lmodule K M
& TopologicalZmodule_isTopologicalLmodule d K M}.
Section TopologicalLmodule_theory.
Context {ESource code : Type} {RSource code : numFieldType} {dSource code} {FSource code : topologicalLmodType d R}
{d'Source code} {GSource code : topologicalLmodType d' R}.
Lemma continuousfor0_continuousUsed by
Source code (fSource code : {linear F -> G}) :
{for 0, continuous f} -> continuous f.
End TopologicalLmodule_theory.
Context {ESource code : Type} {RSource code : numFieldType} {dSource code} {FSource code : topologicalLmodType d R}
{d'Source code} {GSource code : topologicalLmodType d' R}.
Lemma continuousfor0_continuousUsed by
- mathcomp.analysis.functional_analysis.hahn_banach_theorem
Source code (fSource code : {linear F -> G}) :
{for 0, continuous f} -> continuous f.
Proof.
move=> cont0 /= x.
suff fyfx0 : f (y - x) @[ySource code --> x] --> (0 : G).
move=> /= A nA /=.
pose B := [set y - f x | ySource code in A].
have /fyfx0 : nbhs 0 B.
have -> : B = (+%R^~ (- (- f x))) @^-1` A.
rewrite opprK; apply/seteqP; split.
by move=> y [/= g Ag <-]; rewrite subrK.
by move=> g/= Agfx; exists (g + f x) => //; rewrite addrK.
have := @continuous_shift _ _ (0 : G) (f x) A.
by rewrite opprK add0r => /(_ nA).
rewrite /nbhs /=; apply/filterS => z /=; rewrite /B /=.
by move=> [y Ay]; rewrite linearB => /subIr <-.
apply: cvg_comp; last by rewrite -(linear0 f); exact: cont0.
by move => A nA /=; apply: continuous_shift; rewrite subrr.
Qed.
suff fyfx0 : f (y - x) @[ySource code --> x] --> (0 : G).
move=> /= A nA /=.
pose B := [set y - f x | ySource code in A].
have /fyfx0 : nbhs 0 B.
have -> : B = (+%R^~ (- (- f x))) @^-1` A.
rewrite opprK; apply/seteqP; split.
by move=> y [/= g Ag <-]; rewrite subrK.
by move=> g/= Agfx; exists (g + f x) => //; rewrite addrK.
have := @continuous_shift _ _ (0 : G) (f x) A.
by rewrite opprK add0r => /(_ nA).
rewrite /nbhs /=; apply/filterS => z /=; rewrite /B /=.
by move=> [y Ay]; rewrite linearB => /subIr <-.
apply: cvg_comp; last by rewrite -(linear0 f); exact: cont0.
by move => A nA /=; apply: continuous_shift; rewrite subrr.
Qed.
End TopologicalLmodule_theory.
Section TopologicalLmodule_theory.
Context {dSource code} {RSource code : numFieldType} (ESource code : topologicalLmodType d R).
Lemma fun_cvgZSource code (TSource code : Type) (USource code : set_system T) {FFSource code : Filter U} (lSource code : T -> R)
(fSource code : T -> E) (rSource code : R) aSource code :
l @ U --> r -> f @ U --> a ->
l x *: f x @[xSource code --> U] --> r *: a.
Lemma fun_cvgZrSource code (TSource code : Type) (USource code : set_system T) {FFSource code : Filter U} kSource code (fSource code : T -> E) aSource code :
f @ U --> a -> k \*: f @ U --> k *: a.
Lemma nbhs0ZSource code (USource code : set E) (rSource code : R) : r != 0 -> nbhs 0 U -> nbhs 0 ( *:%R r @` U ).
Lemma nbhsZSource code (USource code : set E) (rSource code : R) (xSource code :E) :
r != 0 -> nbhs x U -> nbhs (r *:x) ( *:%R r @` U ).
End TopologicalLmodule_theory.
Context {dSource code} {RSource code : numFieldType} (ESource code : topologicalLmodType d R).
Lemma fun_cvgZSource code (TSource code : Type) (USource code : set_system T) {FFSource code : Filter U} (lSource code : T -> R)
(fSource code : T -> E) (rSource code : R) aSource code :
l @ U --> r -> f @ U --> a ->
l x *: f x @[xSource code --> U] --> r *: a.
Proof.
Lemma fun_cvgZrSource code (TSource code : Type) (USource code : set_system T) {FFSource code : Filter U} kSource code (fSource code : T -> E) aSource code :
f @ U --> a -> k \*: f @ U --> k *: a.
Lemma nbhs0ZSource code (USource code : set E) (rSource code : R) : r != 0 -> nbhs 0 U -> nbhs 0 ( *:%R r @` U ).
Proof.
Lemma nbhsZSource code (USource code : set E) (rSource code : R) (xSource code :E) :
r != 0 -> nbhs x U -> nbhs (r *:x) ( *:%R r @` U ).
Proof.
End TopologicalLmodule_theory.
Section TopologicalLmodule_numDomain.
Context {dSource code} {RSource code : numDomainType} (ESource code : topologicalLmodType d R).
Lemma nbhs0NSource code (USource code : set E) : nbhs 0 U -> nbhs 0 (-%R @` U).
Lemma nbhsD0Source code (USource code : set E) (xSource code : E) : nbhs 0 U -> nbhs x (+%R x @` U).
Lemma nbhsDSource code (USource code : set E) (zSource code xSource code : E) : nbhs z U -> nbhs (x + z) (+%R x @` U).
Lemma openDSource code (VSource code : set E) (xSource code : E) : open V -> open (+%R x @` V).
Lemma openBSource code (VSource code : set E) (xSource code : E) : open (+%R x @` V) -> open V.
Lemma nbhsE0Source code (xSource code : E) (bSource code : set E): nbhs x b <-> b x /\
exists2 aSource code, nbhs 0 a & [set x + x0 | x0Source code in a] `<=` b.
End TopologicalLmodule_numDomain.
Context {dSource code} {RSource code : numDomainType} (ESource code : topologicalLmodType d R).
Lemma nbhs0NSource code (USource code : set E) : nbhs 0 U -> nbhs 0 (-%R @` U).
Proof.
Lemma nbhsD0Source code (USource code : set E) (xSource code : E) : nbhs 0 U -> nbhs x (+%R x @` U).
Proof.
Lemma nbhsDSource code (USource code : set E) (zSource code xSource code : E) : nbhs z U -> nbhs (x + z) (+%R x @` U).
Proof.
Lemma openDSource code (VSource code : set E) (xSource code : E) : open V -> open (+%R x @` V).
Proof.
Lemma openBSource code (VSource code : set E) (xSource code : E) : open (+%R x @` V) -> open V.
Proof.
Lemma nbhsE0Source code (xSource code : E) (bSource code : set E): nbhs x b <-> b x /\
exists2 aSource code, nbhs 0 a & [set x + x0 | x0Source code in a] `<=` b.
Proof.
End TopologicalLmodule_numDomain.
Section TopologicalLmodule_numField.
Lemma openZSource code {dSource code} {RSource code : numFieldType} {ESource code : topologicalLmodType d R}
(USource code : set E) (rSource code : R) :
r != 0 -> open U -> open ( *:%R r @` U ).
End TopologicalLmodule_numField.
Lemma openZSource code {dSource code} {RSource code : numFieldType} {ESource code : topologicalLmodType d R}
(USource code : set E) (rSource code : R) :
r != 0 -> open U -> open ( *:%R r @` U ).
Proof.
End TopologicalLmodule_numField.
Section topologicalLmodType_realFieldType.
Context {dSource code} {RSource code : realFieldType} {ESource code : topologicalLmodType d R}.
Implicit Type x : E.
Lemma continuousZlSource code xSource code (sSource code : R) : {for s, continuous (fun tSource code : R^o => t *: x)}.
Lemma continuousZrSource code xSource code (sSource code : R) : {for x, continuous (fun ySource code : E => s *: y)}.
End topologicalLmodType_realFieldType.
Context {dSource code} {RSource code : realFieldType} {ESource code : topologicalLmodType d R}.
Implicit Type x : E.
Lemma continuousZlSource code xSource code (sSource code : R) : {for s, continuous (fun tSource code : R^o => t *: x)}.
Proof.
rewrite -/((fun zSource code => z.1 *: z.2) \o (fun rSource code => (r, x))).
apply: continuous_comp; last exact: scale_continuous.
exact: (@cvg_pair _ _ _ _ (nbhs s)).
Qed.
apply: continuous_comp; last exact: scale_continuous.
exact: (@cvg_pair _ _ _ _ (nbhs s)).
Qed.
Lemma continuousZrSource code xSource code (sSource code : R) : {for x, continuous (fun ySource code : E => s *: y)}.
Proof.
rewrite -/((fun zSource code => z.1 *: z.2) \o (fun ySource code => (s, y))).
apply: continuous_comp; last exact: scale_continuous.
exact: (@cvg_pair _ _ _ _ (nbhs s)).
Qed.
apply: continuous_comp; last exact: scale_continuous.
exact: (@cvg_pair _ _ _ _ (nbhs s)).
Qed.
End topologicalLmodType_realFieldType.
HBSource code.factorySource code RecordSource code TopologicalNmodule_isTopologicalLmoduleSource code
dSource code (RSource code :Source code numDomainTypeSource code) M & PreTopologicalLmodule d R M := {
scale_continuous : continuous (fun zSource code : R^o * M => z.1 *: z.2) }.
HBSource code.buildersSource code ContextSource code dSource code RSource code MSource code &Source code TopologicalNmodule_isTopologicalLmoduleSource code d R M.
Let opp_continuousSource code : continuous (-%R : M -> M).
Proof.
move=> x; rewrite /continuous_at.
rewrite -(@eq_cvg _ _ _ (fun xSource code => -1 *: x)); first by move=> y; rewrite scaleN1r.
rewrite -[- x]scaleN1r.
apply: (@continuous_comp _ M _ (R^o * M)%type _ M (fun xSource code => (-1, x))
(fun xSource code => x.1 *: x.2)); last exact: scale_continuous.
by apply: (@cvg_pair _ _ _ _ (nbhs (-1 : R^o))); [exact: cvg_cst|exact: cvg_id].
Qed.
rewrite -(@eq_cvg _ _ _ (fun xSource code => -1 *: x)); first by move=> y; rewrite scaleN1r.
rewrite -[- x]scaleN1r.
apply: (@continuous_comp _ M _ (R^o * M)%type _ M (fun xSource code => (-1, x))
(fun xSource code => x.1 *: x.2)); last exact: scale_continuous.
by apply: (@cvg_pair _ _ _ _ (nbhs (-1 : R^o))); [exact: cvg_cst|exact: cvg_id].
Qed.
#[warning=Source code"-HB.no-new-instance"Source code]Source code
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code
TopologicalNmodule_isTopologicalZmodule.Build _ M opp_continuous.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code
TopologicalZmodule_isTopologicalLmodule.Build _ R M scale_continuous.
HBSource code.endSource code.
HBSource code.mixinSource code RecordSource code Uniform_isConvexTvsSource code dSource code (RSource code :Source code numDomainTypeSource code) E
& Uniform d E & GRing.Lmodule R E := {
locally_convex : exists2 BSource code : set_system E,
(forall bSource code, b \in B -> absolutely_convex_set b) & (nbhs_basis 0) B
}.
#[shortUsed by
- mathcomp.analysis.normedtype_theory.normed_module
Source code(type=Used by
- mathcomp.analysis.normedtype_theory.normed_module
Source code"convexTvsType"Used by
- mathcomp.analysis.normedtype_theory.normed_module
Source code)]Used by
- mathcomp.analysis.normedtype_theory.normed_module
Source code
HBUsed by
- mathcomp.analysis.normedtype_theory.normed_module
Source code.structureUsed by
- mathcomp.analysis.normedtype_theory.normed_module
Source code DefinitionUsed by
- mathcomp.analysis.normedtype_theory.normed_module
Source code ConvexTvsUsed by
- mathcomp.analysis.normedtype_theory.normed_module
Source code dUsed by
- mathcomp.analysis.normedtype_theory.normed_module
Source code (RUsed by
- mathcomp.analysis.normedtype_theory.normed_module
Source code :Used by
- mathcomp.analysis.normedtype_theory.normed_module
Source code numDomainTypeUsed by
- mathcomp.analysis.normedtype_theory.normed_module
Source code) :=
{ESource code of Uniform_isConvexTvs d R E
& UniformZmodule d E & TopologicalLmodule d R E}.
HBSource code.mixinSource code RecordSource code isSubConvexSpaceSource code (RSource code :Source code numDomainTypeSource code) (V : convType R)
(S : pred V) U & SubChoice V S U & ConvexSpace R U := {
valconv : forall (tSource code : {i01 R}) (aSource code bSource code : U), val (conv t a b) = conv t (val a) (val b)
}.
#[shortSource code(type=Source code"subConvType"Source code)]Source code
HBSource code.structureSource code DefinitionSource code SubConvexSpaceSource code (RSource code :Source code numDomainTypeSource code) (V : convType R) S :=
{ USource code of SubChoice V S U & ConvexSpace R U & isSubConvexSpace R V S U }.