@@ -6,12 +6,13 @@ Require Import boolp reals ereal.
66Require Import classical_sets posnum topology normedtype sequences.
77
88(***************************************************************************** *)
9- (* This file provides basic elements of a theory of measure illustrated *)
10- (* by a formalization of Boole's inequality. *)
9+ (* This file provides basic elements of a theory of measure. *)
1110(* *)
1211(* {measure set T -> {ereal R}} == type of a measure over sets of elements of *)
1312(* type T where R is expected to be a *)
1413(* a realFieldType or a realType *)
14+ (* *)
15+ (* Theorems: Boole_inequality, generalized_Boole_inequality *)
1516(***************************************************************************** *)
1617
1718Set Implicit Arguments .
@@ -24,7 +25,7 @@ Local Open Scope ring_scope.
2425
2526(* TODO: move to classical_sets *)
2627Definition triviset T (U : nat -> set T) :=
27- forall j i , (i != j)%nat -> U i `&` U j = set0.
28+ forall i j , (i != j)%nat -> U i `&` U j = set0.
2829
2930Module Measurable.
3031
@@ -256,7 +257,7 @@ Definition B_of (A : (set T) ^nat) :=
256257Lemma triviset_B_of (A : (set T) ^nat) :
257258 {homo A : n m / (n <= m)%nat >-> n `<=` m} -> triviset (B_of A).
258259Proof .
259- move=> ndA j i ; wlog : j i / (i < j)%N.
260+ move=> ndA i j ; wlog : i j / (i < j)%N.
260261 move=> h; rewrite neq_ltn => /orP[|] ?; by
261262 [rewrite h // ltn_eqF|rewrite setIC h // ltn_eqF].
262263move=> ij _; move: j i ij; case => // j [_ /=|n].
@@ -362,25 +363,6 @@ Qed.
362363End boole_inequality.
363364Notation le_mu_bigsetU := Boole_inequality.
364365
365- (* NB: see also nondecreasing_series *)
366- Lemma ereal_nondecreasing_series (R : realFieldType) (u_ : {ereal R} ^nat) :
367- (forall n, 0%:E <= u_ n)%E ->
368- nondecreasing_seq (fun n => \sum_(i < n) u_ i)%E.
369- Proof .
370- move=> u_ge0 n m nm; rewrite -(subnKC nm).
371- rewrite -[X in (_ <= X)%E](big_mkord xpredT) /index_iota subn0 iota_add.
372- rewrite big_cat -[in X in (_ <= X + _)%E](subn0 n) big_mkord lee_addl //=.
373- by rewrite sume_ge0.
374- Qed .
375-
376- Lemma series_nneg (R : realType) (u_ : {ereal R} ^nat) k :
377- (forall n, (0%:E <= u_ n)%E) ->
378- (\sum_(i < k.+1) u_ i <= lim (fun n : nat => \sum_(i < n) u_ i))%E.
379- Proof .
380- move/ereal_nondecreasing_series/nondecreasing_seq_ereal_cvg/cvg_lim => -> //.
381- by apply ereal_sup_ub; exists k.+1.
382- Qed .
383-
384366Section generalized_boole_inequality.
385367Variables (R : realType) (T : measurableType).
386368Variable (mu : {measure set T -> {ereal R}}).
@@ -409,7 +391,7 @@ have -> : lim (mu \o B) = ereal_sup ((mu \o B) @` setT).
409391 exact: subset_bigsetU.
410392have BA : forall m, (mu (B m) <= lim (fun n : nat => \sum_(i < n) mu (A i)))%E.
411393 move=> m; rewrite (le_trans (le_mu_bigsetU mu mA m.+1)) // -/(B m).
412- by apply: (@series_nneg _ (mu \o A)) => n; exact: measure_ge0.
394+ by apply: (@ereal_nneg_series_lim_ge _ (mu \o A)) => n; exact: measure_ge0.
413395by apply ub_ereal_sup => /= x [n _ <-{x}]; apply BA.
414396Qed .
415397
0 commit comments