Skip to content

Commit d2bd7b1

Browse files
renamed ConvexTvs
Co-authored-by: Reynald Affeldt <reynald.affeldt@aist.go.jp>
1 parent e9a1231 commit d2bd7b1

3 files changed

Lines changed: 52 additions & 35 deletions

File tree

CHANGELOG_UNRELEASED.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,21 @@
88

99
### Renamed
1010

11+
- in `tvs.v`:
12+
+ definition `tvsType` -> `convextvsType`
13+
+ HB class `Tvs` -> `ConvexTvs`
14+
+ HB mixin `Uniform_isTvs` -> `Uniform_isConvexTvs`
15+
+ HB factory `PreTopologicalLmod_isTvs` -> `PreTopologicalLmod_isConvexTvs`
16+
+ Section `Tvs_numDomain` -> `ConvexTvs_numDomain`
17+
+ Section `Tvs_numField` -> `ConvexTvs_numField`
18+
+ Section `prod_Tvs` -> `prod_ConvexTvs`
19+
20+
21+
- in `normed_module.v`
22+
+ HB mixin ` PseudoMetricNormedZmod_Tvs_isNormedModule` ->
23+
` PseudoMetricNormedZmod_ConvexTvs_isNormedModule`
24+
25+
1126
### Generalized
1227

1328
### Deprecated

theories/normedtype_theory/normed_module.v

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ Local Open Scope ring_scope.
7676

7777
(** Modules with a norm depending on a numDomain *)
7878

79-
HB.mixin Record PseudoMetricNormedZmod_Tvs_isNormedModule K V
80-
& PseudoMetricNormedZmod K V & Tvs K V := {
79+
HB.mixin Record PseudoMetricNormedZmod_ConvexTvs_isNormedModule K V
80+
& PseudoMetricNormedZmod K V & ConvexTvs K V := {
8181
normrZ : forall (l : K) (x : V), `| l *: x | = `| l | * `| x |;
8282
}.
8383

8484
#[short(type="normedModType")]
8585
HB.structure Definition NormedModule (K : numDomainType) :=
86-
{T of PseudoMetricNormedZmod K T & Tvs K T
87-
& PseudoMetricNormedZmod_Tvs_isNormedModule K T}.
86+
{T of PseudoMetricNormedZmod K T & ConvexTvs K T
87+
& PseudoMetricNormedZmod_ConvexTvs_isNormedModule K T}.
8888

8989
HB.factory Record PseudoMetricNormedZmod_Lmodule_isNormedModule (K : numFieldType) V
9090
& PseudoMetricNormedZmod K V & GRing.Lmodule K V := {
@@ -142,9 +142,9 @@ HB.instance Definition _ :=
142142
PreTopologicalNmodule_isTopologicalNmodule.Build V add_continuous.
143143
HB.instance Definition _ :=
144144
TopologicalNmodule_isTopologicalLmodule.Build K V scale_continuous.
145-
HB.instance Definition _ := Uniform_isTvs.Build K V locally_convex_set.
145+
HB.instance Definition _ := Uniform_isConvexTvs.Build K V locally_convex_set.
146146
HB.instance Definition _ :=
147-
PseudoMetricNormedZmod_Tvs_isNormedModule.Build K V normrZ.
147+
PseudoMetricNormedZmod_ConvexTvs_isNormedModule.Build K V normrZ.
148148

149149
HB.end.
150150

@@ -154,7 +154,7 @@ Section standard_topology_normedMod.
154154
Variable R : numFieldType.
155155

156156
HB.instance Definition _ :=
157-
PseudoMetricNormedZmod_Tvs_isNormedModule.Build R R^o (@normrM _).
157+
PseudoMetricNormedZmod_ConvexTvs_isNormedModule.Build R R^o (@normrM _).
158158

159159
End standard_topology_normedMod.
160160

@@ -1631,7 +1631,7 @@ Lemma prod_norm_scale (l : K) (x : U * V) : `| l *: x | = `|l| * `| x |.
16311631
Proof. by rewrite prod_normE /= !normrZ maxr_pMr. Qed.
16321632

16331633
HB.instance Definition _ :=
1634-
PseudoMetricNormedZmod_Tvs_isNormedModule.Build K (U * V)%type
1634+
PseudoMetricNormedZmod_ConvexTvs_isNormedModule.Build K (U * V)%type
16351635
prod_norm_scale.
16361636

16371637
End prod_NormedModule.

theories/normedtype_theory/tvs.v

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,19 @@ From mathcomp Require Import pseudometric_normed_Zmodule.
4141
(* UniformLmodule K == HB class, join of UniformNmodule and Lmodule *)
4242
(* with a uniformly continuous scaling operation *)
4343
(* K is a numFieldType. *)
44-
(* tvsType R == interface type for a locally convex *)
45-
(* tvs on a numDomain R *)
46-
(* A tvs is constructed over a uniform space. *)
47-
(* The HB class is Tvs. *)
48-
(* PreTopologicalLmod_isTvs == factory allowing the construction of a tvs *)
49-
(* from an Lmodule which is also a topological *)
50-
(* space *)
44+
(* convextvsType R == interface type for a locally convex *)
45+
(* tvs on a numDomain R. *)
46+
(* A convex tvs is constructed over a uniform *)
47+
(* space. *)
48+
(* The HB class is ConvexTvs. *)
49+
(* PreTopologicalLmod_isConvexTvs == factory allowing the construction of a *)
50+
(* convex tvs from an Lmodule which is also a *)
51+
(* topological space. *)
5152
(* ``` *)
5253
(* HB instances: *)
53-
(* - The type R^o (R : numFieldType) is endowed with the structure of Tvs. *)
54-
(* - The product of two Tvs is endowed with the structure of Tvs. *)
54+
(* - The type R^o (R : numFieldType) is endowed with the structure of *)
55+
(* ConvexTvs. *)
56+
(* - The product of two Tvs is endowed with the structure of ConvexTvs. *)
5557
(******************************************************************************)
5658

5759
Set SsrOldRewriteGoalsOrder. (* change Set to Unset when porting the file, then remove the line when requiring MathComp >= 2.6 *)
@@ -306,15 +308,15 @@ HB.instance Definition _ :=
306308

307309
HB.end.
308310

309-
HB.mixin Record Uniform_isTvs (R : numDomainType) E
311+
HB.mixin Record Uniform_isConvexTvs (R : numDomainType) E
310312
& Uniform E & GRing.Lmodule R E := {
311313
locally_convex : exists2 B : set_system E,
312314
(forall b, b \in B -> convex_set b) & basis B
313315
}.
314316

315-
#[short(type="tvsType")]
316-
HB.structure Definition Tvs (R : numDomainType) :=
317-
{E of Uniform_isTvs R E & Uniform E & TopologicalLmodule R E}.
317+
#[short(type="convextvsType")]
318+
HB.structure Definition ConvexTvs (R : numDomainType) :=
319+
{E of Uniform_isConvexTvs R E & Uniform E & TopologicalLmodule R E}.
318320

319321
Section properties_of_topologicalLmodule.
320322
Context (R : numDomainType) (E : preTopologicalLmodType R) (U : set E).
@@ -352,15 +354,15 @@ Unshelve. all: by end_near. Qed.
352354

353355
End properties_of_topologicalLmodule.
354356

355-
HB.factory Record PreTopologicalLmod_isTvs (R : numDomainType) E
357+
HB.factory Record PreTopologicalLmod_isConvexTvs (R : numDomainType) E
356358
& Topological E & GRing.Lmodule R E := {
357359
add_continuous : continuous (fun x : E * E => x.1 + x.2) ;
358360
scale_continuous : continuous (fun z : R^o * E => z.1 *: z.2) ;
359361
locally_convex : exists2 B : set_system E,
360362
(forall b, b \in B -> convex_set b) & basis B
361363
}.
362364

363-
HB.builders Context R E & PreTopologicalLmod_isTvs R E.
365+
HB.builders Context R E & PreTopologicalLmod_isConvexTvs R E.
364366

365367
Definition entourage : set_system (E * E) :=
366368
fun P => exists (U : set E), nbhs (0 : E) U /\
@@ -449,8 +451,8 @@ HB.instance Definition _ := Nbhs_isUniform_mixin.Build E
449451
nbhsE.
450452
HB.end.
451453

452-
Section Tvs_numDomain.
453-
Context (R : numDomainType) (E : tvsType R) (U : set E).
454+
Section ConvexTvs_numDomain.
455+
Context (R : numDomainType) (E : convextvsType R) (U : set E).
454456

455457
Lemma nbhs0N : nbhs 0 U -> nbhs 0 (-%R @` U).
456458
Proof. exact/nbhs0N_subproof/scale_continuous. Qed.
@@ -461,11 +463,11 @@ Proof. exact/nbhsT_subproof/add_continuous. Qed.
461463
Lemma nbhsB (z x : E) : nbhs z U -> nbhs (x + z) (+%R x @` U).
462464
Proof. exact/nbhsB_subproof/add_continuous. Qed.
463465

464-
End Tvs_numDomain.
466+
End ConvexTvs_numDomain.
465467

466-
Section Tvs_numField.
468+
Section ConvexTvs_numField.
467469

468-
Lemma nbhs0Z (R : numFieldType) (E : tvsType R) (U : set E) (r : R) :
470+
Lemma nbhs0Z (R : numFieldType) (E : convextvsType R) (U : set E) (r : R) :
469471
r != 0 -> nbhs 0 U -> nbhs 0 ( *:%R r @` U ).
470472
Proof.
471473
move=> r0 U0; have /= := scale_continuous (r^-1, 0) U.
@@ -474,7 +476,7 @@ near=> x => //=; exists (r^-1 *: x); last by rewrite scalerA divff// scale1r.
474476
by apply: (BU (r^-1, x)); split => //=;[exact: nbhs_singleton|near: x].
475477
Unshelve. all: by end_near. Qed.
476478

477-
Lemma nbhsZ (R : numFieldType) (E : tvsType R) (U : set E) (r : R) (x :E) :
479+
Lemma nbhsZ (R : numFieldType) (E : convextvsType R) (U : set E) (r : R) (x :E) :
478480
r != 0 -> nbhs x U -> nbhs (r *:x) ( *:%R r @` U ).
479481
Proof.
480482
move=> r0 U0; have /= := scale_continuous ((r^-1, r *: x)) U.
@@ -483,7 +485,7 @@ near=> z; exists (r^-1 *: z); last by rewrite scalerA divff// scale1r.
483485
by apply: (BU (r^-1,z)); split; [exact: nbhs_singleton|near: z].
484486
Unshelve. all: by end_near. Qed.
485487

486-
End Tvs_numField.
488+
End ConvexTvs_numField.
487489

488490
Section standard_topology.
489491
Variable R : numFieldType.
@@ -537,12 +539,12 @@ HB.instance Definition _ :=
537539
HB.instance Definition _ :=
538540
TopologicalNmodule_isTopologicalLmodule.Build R R^o standard_scale_continuous.
539541
HB.instance Definition _ :=
540-
Uniform_isTvs.Build R R^o standard_locally_convex_set.
542+
Uniform_isConvexTvs.Build R R^o standard_locally_convex_set.
541543

542544
End standard_topology.
543545

544-
Section prod_Tvs.
545-
Context (K : numFieldType) (E F : tvsType K).
546+
Section prod_ConvexTvs.
547+
Context (K : numFieldType) (E F : convextvsType K).
546548

547549
Local Lemma prod_add_continuous :
548550
continuous (fun x : (E * F) * (E * F) => x.1 + x.2).
@@ -598,6 +600,6 @@ HB.instance Definition _ := PreTopologicalNmodule_isTopologicalNmodule.Build
598600
HB.instance Definition _ := TopologicalNmodule_isTopologicalLmodule.Build
599601
K (E * F)%type prod_scale_continuous.
600602
HB.instance Definition _ :=
601-
Uniform_isTvs.Build K (E * F)%type prod_locally_convex.
603+
Uniform_isConvexTvs.Build K (E * F)%type prod_locally_convex.
602604

603-
End prod_Tvs.
605+
End prod_ConvexTvs.

0 commit comments

Comments
 (0)