Skip to content

Commit 198726d

Browse files
committed
make normedtype.v depend on evt.v
1 parent e72b457 commit 198726d

11 files changed

Lines changed: 46 additions & 31 deletions

File tree

_CoqProject

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ theories/topology.v
2828
theories/function_spaces.v
2929
theories/cantor.v
3030
theories/prodnormedzmodule.v
31+
theories/evt.v
3132
theories/normedtype.v
3233
theories/realfun.v
3334
theories/sequences.v

theories/Make

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ topology.v
1616
function_spaces.v
1717
cantor.v
1818
prodnormedzmodule.v
19+
evt.v
1920
normedtype.v
2021
realfun.v
2122
sequences.v

theories/derive.v

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,13 +233,13 @@ Qed.
233233
End diff_locally_converse_tentative.
234234

235235
Definition derive (f : V -> W) a v :=
236-
lim ((fun h => h^-1 *: ((f \o shift a) (h *: v) - f a)) @ 0^').
236+
lim ((fun h => h^-1 *: ((f \o shift a) (h *: v) - f a)) @ (0:R)^').
237237

238238
Local Notation "''D_' v f" := (derive f ^~ v).
239239
Local Notation "''D_' v f c" := (derive f c v). (* printing *)
240240

241241
Definition derivable (f : V -> W) a v :=
242-
cvg ((fun h => h^-1 *: ((f \o shift a) (h *: v) - f a)) @ 0^').
242+
cvg ((fun h => h^-1 *: ((f \o shift a) (h *: v) - f a)) @ (0:R)^').
243243

244244
Class is_derive (a v : V) (f : V -> W) (df : W) := DeriveDef {
245245
ex_derive : derivable f a v;
@@ -356,7 +356,7 @@ Lemma derivemxE m n (f : 'rV[R]_m.+1 -> 'rV[R]_n.+1) (a v : 'rV[R]_m.+1) :
356356
Proof. by move=> /deriveE->; rewrite /jacobian mul_rV_lin1. Qed.
357357

358358
Definition derive1 V (f : R -> V) (a : R) :=
359-
lim ((fun h => h^-1 *: (f (h + a) - f a)) @ 0^').
359+
lim ((fun h => h^-1 *: (f (h + a) - f a)) @ (0:R)^').
360360

361361
Local Notation "f ^` ()" := (derive1 f).
362362

@@ -1125,7 +1125,7 @@ Implicit Types f g : V -> W.
11251125

11261126
Fact der_add f g (x v : V) : derivable f x v -> derivable g x v ->
11271127
(fun h => h^-1 *: (((f + g) \o shift x) (h *: v) - (f + g) x)) @
1128-
0^' --> 'D_v f x + 'D_v g x.
1128+
(0:R)^' --> 'D_v f x + 'D_v g x.
11291129
Proof.
11301130
move=> df dg.
11311131
evar (fg : R -> W); rewrite [X in X @ _](_ : _ = fg) /=; last first.
@@ -1177,7 +1177,7 @@ Qed.
11771177

11781178
Fact der_opp f (x v : V) : derivable f x v ->
11791179
(fun h => h^-1 *: (((- f) \o shift x) (h *: v) - (- f) x)) @
1180-
0^' --> - 'D_v f x.
1180+
(0:R)^' --> - 'D_v f x.
11811181
Proof.
11821182
move=> df; evar (g : R -> W); rewrite [X in X @ _](_ : _ = g) /=; last first.
11831183
by rewrite funeqE => h; rewrite !scalerDr !scalerN -opprD -scalerBr /g.

theories/evt.v

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,24 @@ Local Open Scope ring_scope.
1818

1919
HB.structure Definition PointedNmodule := {M of Pointed M & GRing.Nmodule M}.
2020
HB.structure Definition PointedZmodule := {M of Pointed M & GRing.Zmodule M}.
21+
HB.structure Definition PointedLmodule (K : numDomainType) :=
22+
{M of Pointed M & GRing.Lmodule K M}.
2123
HB.structure Definition FilteredNmodule := {M of Filtered M M & GRing.Nmodule M}.
2224
HB.structure Definition FilteredZmodule := {M of Filtered M M & GRing.Zmodule M}.
25+
HB.structure Definition FilteredLmodule (K : numDomainType) :=
26+
{M of Filtered M M & GRing.Lmodule K M}.
2327
HB.structure Definition NbhsNmodule := {M of Nbhs M & GRing.Nmodule M}.
2428
HB.structure Definition NbhsZmodule := {M of Nbhs M & GRing.Zmodule M}.
29+
HB.structure Definition NbhsLmodule (K : numDomainType) :=
30+
{M of Nbhs M & GRing.Lmodule K M}.
2531
HB.structure Definition TopologicalNmodule := {M of Topological M & GRing.Nmodule M}.
26-
HB.structure Definition TopologicalZmodule := {M of Uniform M & GRing.Zmodule M}.
32+
HB.structure Definition TopologicalZmodule :=
33+
{M of Topological M & GRing.Zmodule M}.
34+
HB.structure Definition TopologicalLmodule (K : numDomainType) :=
35+
{M of Topological M & GRing.Lmodule K M}.
36+
HB.structure Definition UniformZmodule := {M of Uniform M & GRing.Zmodule M}.
37+
HB.structure Definition UniformLmodule (K : numDomainType) :=
38+
{M of Uniform M & GRing.Lmodule K M}.
2739

2840
Definition convex (R : ringType) (M : lmodType R) (A : set M) :=
2941
forall x y lambda, lambda *: x + (1 - lambda) *: y \in A.

theories/exp.v

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,18 +198,18 @@ Lemma pseries_snd_diffs (c : R^nat) K x :
198198
Proof.
199199
move=> Ck CdK CddK xLK; rewrite /pseries.
200200
set s := (fun n : nat => _); set (f := fun x0 => _).
201-
suff hfxs : h^-1 *: (f (h + x) - f x) @[h --> 0^'] --> limn (series s).
201+
suff hfxs : h^-1 *: (f (h + x) - f x) @[h --> (0:R)^'] --> limn (series s).
202202
have F : f^`() x = limn (series s) by apply: cvg_lim hfxs.
203203
have Df : derivable f x 1.
204-
move: hfxs; rewrite /derivable [X in X @ 0^'](_ : _ =
204+
move: hfxs; rewrite /derivable [X in X @ (0:R)^'](_ : _ =
205205
(fun h => h^-1 *: (f (h%:A + x) - f x))) /=; last first.
206206
by apply/funext => i //=; rewrite [i%:A]mulr1.
207207
by move=> /(cvg_lim _) -> //.
208208
by constructor; [exact: Df|rewrite -derive1E].
209209
pose sx := fun n : nat => c n * x ^+ n.
210210
have Csx : cvgn (pseries c x) by apply: is_cvg_pseries_inside Ck _.
211211
pose shx := fun h (n : nat) => c n * (h + x) ^+ n.
212-
suff Cc : limn (h^-1 *: (series (shx h - sx))) @[h --> 0^'] --> limn (series s).
212+
suff Cc : limn (h^-1 *: (series (shx h - sx))) @[h --> (0:R)^'] --> limn (series s).
213213
apply: cvg_sub0 Cc.
214214
apply/cvgrPdist_lt => eps eps_gt0 /=.
215215
near=> h; rewrite sub0r normrN /=.
@@ -229,7 +229,7 @@ suff Cc : limn (h^-1 *: (series (shx h - sx))) @[h --> 0^'] --> limn (series s).
229229
apply: cvg_zero => /=.
230230
suff Cc : limn
231231
(series (fun n => c n * (((h + x) ^+ n - x ^+ n) / h - n%:R * x ^+ n.-1)))
232-
@[h --> 0^'] --> (0 : R).
232+
@[h --> (0:R)^'] --> (0 : R).
233233
apply: cvg_sub0 Cc.
234234
apply/cvgrPdist_lt => eps eps_gt0 /=.
235235
near=> h; rewrite sub0r normrN /=.

theories/ftc.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Implicit Types (f : R -> R) (a : itv_bound R).
3838
Let FTC0 f a : mu.-integrable setT (EFin \o f) ->
3939
let F x := (\int[mu]_(t in [set` Interval a (BRight x)]) f t)%R in
4040
forall x, a < BRight x -> lebesgue_pt f x ->
41-
h^-1 *: (F (h + x) - F x) @[h --> 0%R^'] --> f x.
41+
h^-1 *: (F (h + x) - F x) @[h --> (0:R)%R^'] --> f x.
4242
Proof.
4343
move=> intf F x ax fx.
4444
have locf : locally_integrable setT f.
@@ -294,7 +294,7 @@ Unshelve. all: by end_near. Qed.
294294

295295
Lemma parameterized_integral_cvg_left a b (f : R -> R) : a < b ->
296296
mu.-integrable `[a, b] (EFin \o f) ->
297-
int a x f @[x --> a] --> 0.
297+
int a x f @[x --> a] --> (0:R).
298298
Proof.
299299
move=> ab intf; pose fab := f \_ `[a, b].
300300
have intfab : mu.-integrable `[a, b] (EFin \o fab).

theories/lebesgue_integral.v

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6149,7 +6149,7 @@ Hypotheses (xU : open_nbhs x U) (mU : measurable U) (mUf : measurable_fun U f)
61496149
(fx : {for x, continuous f}).
61506150

61516151
Let continuous_integralB_fin_num :
6152-
\forall t \near 0%R,
6152+
\forall t \near (0:R)%R,
61536153
\int[mu]_(y in ball x t) `|(f y)%:E - (f x)%:E| \is a fin_num.
61546154
Proof.
61556155
move: fx => /cvgrPdist_le /= fx'.
@@ -6172,7 +6172,7 @@ apply: ge0_le_integral => //=; first exact: measurable_ball.
61726172
Unshelve. all: by end_near. Qed.
61736173

61746174
Let continuous_davg_fin_num :
6175-
\forall A \near 0%R, davg f x A \is a fin_num.
6175+
\forall A \near (0:R)%R, davg f x A \is a fin_num.
61766176
Proof.
61776177
have [e /= e0 exf] := continuous_integralB_fin_num.
61786178
move: fx => /cvgrPdist_le fx'.
@@ -6183,7 +6183,7 @@ near=> t; have [t0|t0] := leP t 0%R; first by rewrite davg0.
61836183
by rewrite fin_numM// exf/=.
61846184
Unshelve. all: by end_near. Qed.
61856185

6186-
Lemma continuous_cvg_davg : davg f x r @[r --> 0%R] --> 0.
6186+
Lemma continuous_cvg_davg : davg f x r @[r --> (0:R)%R] --> 0.
61876187
Proof.
61886188
apply/fine_cvgP; split; first exact: continuous_davg_fin_num.
61896189
apply/cvgrPdist_le => e e0.
@@ -6795,7 +6795,7 @@ Local Notation mu := lebesgue_measure.
67956795
Definition nicely_shrinking x E :=
67966796
(forall n, measurable (E n)) /\
67976797
exists Cr : R * {posnum R}^nat, [/\ Cr.1 > 0,
6798-
(Cr.2 n)%:num @[n --> \oo] --> 0,
6798+
(Cr.2 n)%:num @[n --> \oo] --> (0:R),
67996799
(forall n, E n `<=` ball x (Cr.2 n)%:num) &
68006800
(forall n, mu (ball x (Cr.2 n)%:num) <= Cr.1%:E * mu (E n))%E].
68016801

theories/lebesgue_measure.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1816,7 +1816,7 @@ rewrite (_ : [set~ 0] = `]-oo, 0[ `|` `]0, +oo[); last first.
18161816
rewrite in_itv/= -eq_le eq_sym; [move/eqP/negbTE => ->|move/negP/eqP].
18171817
apply/measurable_funU => //; split.
18181818
- apply/measurable_restrictT => //=.
1819-
rewrite (_ : _ \_ _ = cst 0)//; apply/funext => y; rewrite patchE.
1819+
rewrite (_ : _ \_ _ = cst (0:R))//; apply/funext => y; rewrite patchE.
18201820
by case: ifPn => //; rewrite inE/= in_itv/= => y0; rewrite ln0// ltW.
18211821
- have : {in `]0, +oo[%classic, continuous (@ln R)}.
18221822
by move=> x; rewrite inE/= in_itv/= andbT => x0; exact: continuous_ln.

theories/normedtype.v

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ From mathcomp Require Import boolp classical_sets functions.
66
From mathcomp Require Import archimedean.
77
From mathcomp Require Import cardinality set_interval Rstruct.
88
Require Import ereal reals signed topology prodnormedzmodule function_spaces.
9+
Require Import evt.
910

1011
(**md**************************************************************************)
1112
(* # Norm-related Notions *)

theories/realfun.v

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,7 +1511,7 @@ Proof. exact: (@exprn_continuous 2%N). Qed.
15111511
Lemma sqrt_continuous : continuous (@Num.sqrt R).
15121512
Proof.
15131513
move=> x; case: (ltrgtP x 0) => [xlt0 | xgt0 | ->].
1514-
- apply: (near_cst_continuous 0).
1514+
- apply: (near_cst_continuous (0:R)).
15151515
by near do rewrite ltr0_sqrtr//; apply: (cvgr_lt x).
15161516
pose I b : set R := [set` `]0 ^+ 2, b ^+ 2[].
15171517
suff main b : 0 <= b -> {in I b, continuous (@Num.sqrt R)}.
@@ -1545,18 +1545,18 @@ split => [Hd|[g [fxE Cg gxE]]].
15451545
by rewrite -subr_eq0 => /divfK->.
15461546
- apply/continuous_withinNshiftx; rewrite eqxx /=.
15471547
pose g1 h := (h^-1 *: ((f \o shift x) h%:A - f x)).
1548-
have F1 : g1 @ 0^' --> a by case: Hd => H1 <-.
1548+
have F1 : g1 @ (0:R)^' --> a by case: Hd => H1 <-.
15491549
apply: cvg_trans F1; apply: near_eq_cvg; rewrite /g1 !fctE.
15501550
near=> i.
15511551
rewrite ifN; first by rewrite addrK mulrC /= [_%:A]mulr1.
15521552
rewrite -subr_eq0 addrK.
15531553
by near: i; rewrite near_withinE /= near_simpl; near=> x1.
15541554
by rewrite eqxx.
1555-
suff Hf : h^-1 *: ((f \o shift x) h%:A - f x) @[h --> 0^'] --> a.
1555+
suff Hf : h^-1 *: ((f \o shift x) h%:A - f x) @[h --> (0:R)^'] --> a.
15561556
have F1 : 'D_1 f x = a by apply: cvg_lim.
15571557
rewrite -F1 in Hf.
15581558
by constructor.
1559-
have F1 : (g \o shift x) y @[y --> 0^'] --> a.
1559+
have F1 : (g \o shift x) y @[y --> (0:R)^'] --> a.
15601560
by rewrite -gxE; apply/continuous_withinNshiftx.
15611561
apply: cvg_trans F1; apply: near_eq_cvg.
15621562
near=> y.

0 commit comments

Comments
 (0)