Skip to content

Commit c1f7375

Browse files
committed
deleting instances
1 parent 44b41b4 commit c1f7375

1 file changed

Lines changed: 33 additions & 31 deletions

File tree

theories/tvs.v

Lines changed: 33 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,21 @@ Import numFieldTopology.Exports.
3131
Local Open Scope classical_set_scope.
3232
Local Open Scope ring_scope.
3333

34-
HB.structure Definition PointedNmodule := {M of Pointed M & GRing.Nmodule M}.
35-
HB.structure Definition PointedZmodule := {M of Pointed M & GRing.Zmodule M}.
36-
HB.structure Definition PointedLmodule (K : numDomainType) :=
37-
{M of Pointed M & GRing.Lmodule K M}.
38-
39-
HB.structure Definition FilteredNmodule := {M of Filtered M M & GRing.Nmodule M}.
40-
HB.structure Definition FilteredZmodule := {M of Filtered M M & GRing.Zmodule M}.
41-
HB.structure Definition FilteredLmodule (K : numDomainType) :=
42-
{M of Filtered M M & GRing.Lmodule K M}.
34+
(* HB.structure Definition PointedNmodule := {M of Pointed M & GRing.Nmodule M}. *)
35+
(* HB.structure Definition PointedZmodule := {M of Pointed M & GRing.Zmodule M}. *)
36+
(* HB.structure Definition PointedLmodule (K : numDomainType) := *)
37+
(* {M of Pointed M & GRing.Lmodule K M}. *)
38+
39+
(* HB.structure Definition FilteredNmodule := {M of Filtered M M & GRing.Nmodule M}. *)
40+
(* HB.structure Definition FilteredZmodule := {M of Filtered M M & GRing.Zmodule M}. *)
41+
(* HB.structure Definition FilteredLmodule (K : numDomainType) := *)
42+
(* {M of Filtered M M & GRing.Lmodule K M}. *)
4343
HB.structure Definition NbhsNmodule := {M of Nbhs M & GRing.Nmodule M}.
4444
HB.structure Definition NbhsZmodule := {M of Nbhs M & GRing.Zmodule M}.
4545
HB.structure Definition NbhsLmodule (K : numDomainType) :=
4646
{M of Nbhs M & GRing.Lmodule K M}.
4747

48-
(*HB.structure Definition TopologicalNmodule := {M of Topological M & GRing.Nmodule M}.*)
48+
HB.structure Definition TopologicalNmodule := {M of Topological M & GRing.Nmodule M}.
4949
HB.structure Definition TopologicalZmodule :=
5050
{M of Topological M & GRing.Zmodule M}.
5151
HB.structure Definition TopologicalLmodule (K : numDomainType) :=
@@ -72,37 +72,39 @@ HB.structure Definition Tvs (R : numDomainType) :=
7272
{E of Uniform_isTvs R E & Uniform E & GRing.Lmodule R E}.
7373

7474
Section properties_of_topologicallmodule.
75-
Context (R : numDomainType) (E : TopologicalLmodule.type R) (U : set E).
75+
Context (R : numDomainType) (E : topologicalType)
76+
(Me : GRing.Lmodule R E) (U : set E).
77+
Let ME := GRing.Lmodule.Pack Me.
7678

77-
Lemma nbhsN_subproof (f : continuous (fun z : R^o * E => z.1 *: z.2)) (x : E) :
78-
nbhs x U -> nbhs (- x) (-%R @` U).
79+
Lemma nbhsN_subproof (f : continuous (fun z : R^o * E => z.1 *: (z.2 : ME))) (x : E) :
80+
nbhs x U -> nbhs (-(x:ME)) (-%R @` (U : set ME)).
7981
Proof.
80-
move=> Ux; move: (f (-1, -x) U); rewrite /= scaleN1r opprK => /(_ Ux) [] /=.
81-
move=> [B] B12 [B1 B2] BU; near=> y; exists (- y); rewrite ?opprK// -scaleN1r//.
82+
move=> Ux; move: (f (-1, - (x:ME)) U); rewrite /= scaleN1r opprK => /(_ Ux) [] /=.
83+
move=> [B] B12 [B1 B2] BU; near=> y; exists (- (y:ME)); rewrite ?opprK// -scaleN1r//.
8284
apply: (BU (-1, y)); split => /=; last by near: y.
8385
by move: B1 => [] ? ?; apply => /=; rewrite subrr normr0.
8486
Unshelve. all: by end_near. Qed.
8587

86-
Lemma nbhs0N_subproof (f : continuous (fun z : R^o * E => z.1 *: z.2 : E)) :
87-
nbhs 0 U -> nbhs 0 (-%R @` U).
88+
Lemma nbhs0N_subproof (f : continuous (fun z : R^o * E => z.1 *: (z.2:ME) : E)) :
89+
nbhs (0 :ME) (U : set ME) -> nbhs (0 : ME) (-%R @` (U : set ME)).
8890
Proof. by move => Ux; rewrite -oppr0; exact: nbhsN_subproof. Qed.
8991

90-
Lemma nbhsT_subproof (f : continuous (fun x : E * E => x.1 + x.2)) (x : E) :
91-
nbhs 0 U -> nbhs x (+%R x @` U).
92+
Lemma nbhsT_subproof (f : continuous (fun x : E * E => (x.1 : ME) + (x.2 : ME))) (x : E) :
93+
nbhs (0 : ME) U -> nbhs (x : ME) (+%R (x : ME) @` U).
9294
Proof.
93-
move => U0; have /= := f (x, -x) U; rewrite subrr => /(_ U0).
95+
move => U0; have /= := f (x, -(x : ME)) U; rewrite subrr => /(_ U0).
9496
move=> [B] [B1 B2] BU; near=> x0.
95-
exists (x0 - x); last by rewrite addrCA subrr addr0.
96-
by apply: (BU (x0, -x)); split; [near: x0; rewrite nearE|exact: nbhs_singleton].
97+
exists ((x0 : ME) - (x : ME)); last by rewrite addrCA subrr addr0.
98+
by apply: (BU ((x0 : ME), -(x : ME))); split; [near: x0; rewrite nearE|exact: nbhs_singleton].
9799
Unshelve. all: by end_near. Qed.
98100

99-
Lemma nbhsB_subproof (f : continuous (fun x : E * E => x.1 + x.2)) (z x : E) :
100-
nbhs z U -> nbhs (x + z) (+%R x @` U).
101+
Lemma nbhsB_subproof (f : continuous (fun x : E * E => (x.1 : ME) + (x.2 : ME))) (z x : E) :
102+
nbhs (z : ME) U -> nbhs ((x : ME) + (z : ME)) (+%R (x : ME) @` U).
101103
Proof.
102-
move=> U0; move: (@f (x + z, -x) U); rewrite /= addrAC subrr add0r.
104+
move=> U0; move: (@f ((x : ME) + (z : ME), -(x : ME)) U); rewrite /= addrAC subrr add0r.
103105
move=> /(_ U0)[B] [B1 B2] BU; near=> x0.
104-
exists (x0 - x); last by rewrite addrCA subrr addr0.
105-
by apply: (BU (x0, -x)); split; [near: x0; rewrite nearE|exact: nbhs_singleton].
106+
exists ((x0 : ME) - (x : ME)); last by rewrite addrCA subrr addr0.
107+
by apply: (BU ((x0 : ME), -(x : ME))); split; [near: x0; rewrite nearE|exact: nbhs_singleton].
106108
Unshelve. all: by end_near. Qed.
107109

108110
End properties_of_topologicallmodule.
@@ -118,18 +120,18 @@ HB.factory Record TopologicalLmod_isTvs (R : numDomainType) E
118120
HB.builders Context R E of TopologicalLmod_isTvs R E.
119121

120122
Definition entourage : set_system (E * E) :=
121-
fun P => exists U, nbhs 0 U /\
122-
(forall xy : E * E, (xy.1 - xy.2) \in U -> xy \in P).
123+
fun P => exists (U : set E), nbhs (0 : E) U /\
124+
(forall xy : E * E, (xy.1 - xy.2) \in U -> xy \in P).
123125

124-
Let nbhs0N (U : set E) : nbhs 0 U -> nbhs 0 (-%R @` U).
126+
Let nbhs0N (U : set E) : nbhs (0 : E) U -> nbhs (0 : E) (-%R @` U).
125127
Proof. by apply: nbhs0N_subproof; exact: scale_continuous. Qed.
126128

127129
Lemma nbhsN (U : set E) (x : E) : nbhs x U -> nbhs (-x) (-%R @` U).
128130
Proof.
129131
by apply: nbhsN_subproof; exact: scale_continuous.
130132
Qed.
131133

132-
Let nbhsT (U : set E) (x : E) : nbhs 0 U -> nbhs x (+%R x @`U).
134+
Let nbhsT (U : set E) (x : E) : nbhs (0 : E) U -> nbhs x (+%R x @`U).
133135
Proof. by apply: nbhsT_subproof; exact: add_continuous. Qed.
134136

135137
Let nbhsB (U : set E) (z x : E) : nbhs z U -> nbhs (x + z) (+%R x @`U).

0 commit comments

Comments
 (0)