Skip to content

Commit dc8008e

Browse files
committed
gen cont under int
1 parent e69653c commit dc8008e

File tree

3 files changed

+128
-232
lines changed

3 files changed

+128
-232
lines changed

theories/lang_syntax_noisy.v

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -317,16 +317,15 @@ set MS12 := (S1 * S2)%R.
317317
set C := ((((y * s1 ^+ 2)%R + (m1 * s2 ^+ 2)%R)%E - m2 * s1 ^+ 2) / DS12)%R.
318318
under eq_integral do rewrite expRD EFinM.
319319
rewrite ge0_integralZr//=; last first.
320-
apply/measurable_EFinP.
321-
apply: measurableT_comp => //.
322-
apply: measurable_funM => //.
323-
apply: measurableT_comp => //.
324-
apply: (@measurableT_comp _ _ _ _ _ _ (fun t : R => t ^+ 2)%R) => //.
325-
exact: measurable_funD.
320+
apply/measurable_EFinP.
321+
apply: measurableT_comp => //.
322+
apply: measurable_funM => //.
323+
apply: measurableT_comp => //.
324+
apply: (@measurableT_comp _ _ _ _ _ _ (fun t : R => t ^+ 2)%R) => //.
325+
exact: measurable_funD.
326326
rewrite /normal_peak /normal_fun.
327327
rewrite [in RHS]EFinM.
328-
rewrite [in RHS]sqr_sqrtr//; last first.
329-
by rewrite addr_ge0// sqr_ge0.
328+
rewrite [in RHS]sqr_sqrtr//; last by rewrite addr_ge0// sqr_ge0.
330329
rewrite muleA; congr *%E; last by rewrite -mulNr.
331330
(* gauss integral *)
332331
have MS12DS12_gt0 : (0 < MS12 / DS12)%R.
@@ -339,14 +338,11 @@ transitivity (((Num.sqrt S1 * Num.sqrt S2 * pi *+ 2)^-1)%:E
339338
congr *%E.
340339
apply: eq_integral => x _.
341340
rewrite -EFinM; congr EFin.
342-
rewrite normal_pdfE; last first.
343-
apply: lt0r_neq0.
344-
by rewrite sqrtr_gt0.
341+
rewrite normal_pdfE; last by rewrite lt0r_neq0// sqrtr_gt0.
345342
rewrite mulrA mulVf// ?mul1r//.
346343
rewrite lt0r_neq0// invr_gt0 sqrtr_gt0 pmulrn_lgt0// mulr_gt0// ?pi_gt0//.
347-
rewrite exprn_even_gt0//=.
348-
by rewrite lt0r_neq0// sqrtr_gt0.
349-
rewrite ge0_integralZl//; last 3 first.
344+
by rewrite exprn_even_gt0//= lt0r_neq0// sqrtr_gt0.
345+
rewrite ge0_integralZl//=; last 3 first.
350346
apply/measurable_EFinP.
351347
exact: measurable_normal_pdf.
352348
move=> x _.

theories/lebesgue_integral_theory/lebesgue_integral_under.v

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,11 @@ Variable f : R -> Y -> R.
4141
Variable B : set Y.
4242
Hypothesis mB : measurable B.
4343

44-
Variable a u v : R.
44+
Variable u v : R.
4545
Let I : set R := `]u, v[.
4646

47-
Hypothesis Ia : I a.
4847
Hypothesis int_f : forall x, I x -> mu.-integrable B (EFin \o (f x)).
49-
Hypothesis cf : {ae mu, forall y, B y -> continuous (f ^~ y)}.
48+
Hypothesis cf : {ae mu, forall y, B y -> {in I, continuous (f ^~ y)}}.
5049

5150
Variable g : Y -> R.
5251

@@ -56,13 +55,14 @@ Hypothesis g_ub : forall x, I x -> {ae mu, forall y, B y -> `|f x y| <= g y}.
5655
Let F x := (\int[mu]_(y in B) f x y)%R.
5756

5857
Lemma continuity_under_integral :
59-
continuous_at a (fun l => \int[mu]_(x in B) f l x).
58+
{in I, continuous (fun l => \int[mu]_(x in B) f l x)}.
6059
Proof.
60+
move=> a /set_mem Ia.
6161
have [Z [mZ Z0 /subsetCPl ncfZ]] := cf.
62-
have BZ_cf x : x \in B `\` Z -> continuous (f ^~ x).
62+
have BZ_cf x : x \in B `\` Z -> {in I, continuous (f ^~ x)}.
6363
by rewrite inE/= => -[Bx nZx]; exact: ncfZ.
6464
have [vu|uv] := lerP v u.
65-
by move: Ia; rewrite /I set_itv_ge// -leNgt bnd_simp.
65+
by move: (Ia); rewrite /I set_itv_ge// -leNgt bnd_simp.
6666
apply/cvg_nbhsP => w wa.
6767
have /near_in_itvoo[e /= e0 aeuv] : a \in `]u, v[ by rewrite inE.
6868
move/cvgrPdist_lt : (wa) => /(_ _ e0)[N _ aue].
@@ -114,7 +114,8 @@ apply: (@dominated_cvg _ _ _ mu _ _
114114
have : x \in B `\` Z.
115115
move: BZUUx; rewrite inE/= => -[Bx nZUUx]; rewrite inE/=; split => //.
116116
by apply: contra_not nZUUx; left.
117-
by move/(BZ_cf x)/(_ a)/cvg_nbhsP; apply; rewrite (cvg_shiftn N).
117+
move/(BZ_cf x)/(_ a); move/mem_set : Ia => /[swap] /[apply].
118+
by move/cvg_nbhsP; apply; rewrite (cvg_shiftn N).
118119
- by apply: (integrableS mB) => //; exact: measurableD.
119120
- move=> n x [Bx ZUUx]; rewrite lee_fin.
120121
move/subsetCPl : (Ug_ub n); apply => //=.
@@ -125,7 +126,8 @@ End continuity_under_integral.
125126

126127
Section differentiation_under_integral.
127128

128-
Definition partial1of2 {R : realType} {T : Type} (f : R -> T -> R) : R -> T -> R := fun x y => (f ^~ y)^`() x.
129+
Definition partial1of2 {R : realType} {T : Type} (f : R -> T -> R) : R -> T -> R
130+
:= fun x y => (f ^~ y)^`() x.
129131

130132
Local Notation "'d1 f" := (partial1of2 f).
131133

0 commit comments

Comments
 (0)