Module mathcomp.analysis.lebesgue_integral_theory.simple_functions
From HB Require Import structures.From mathcomp Require Import boot order ssralg ssrnum ssrint interval.
From mathcomp Require Import interval_inference archimedean finmap.
From mathcomp Require Import boolp classical_sets functions cardinality fsbigop.
From mathcomp Require Import reals real_interval topology ereal.
From mathcomp Require Import normedtype sequences esum measure.
From mathcomp Require Import real_measure numfun realfun.
Reserved Notation "{ 'nnfun' aT >-> T }"
(at level 0, format "{ 'nnfun' aT >-> T }").
Reserved Notation "[ 'nnfun' 'of' f ]"
(at level 0, format "[ 'nnfun' 'of' f ]").
Reserved Notation "{ 'nnsfun' aT >-> T }"
(at level 0, format "{ 'nnsfun' aT >-> T }").
Reserved Notation "[ 'nnsfun' 'of' f ]"
(at level 0, format "[ 'nnsfun' 'of' f ]").
Reserved Notation "{ 'sfun' aT >-> T }"
(at level 0, format "{ 'sfun' aT >-> T }").
Reserved Notation "[ 'sfun' 'of' f ]"
(at level 0, format "[ 'sfun' 'of' f ]").
Unset SsrOldRewriteGoalsOrder.
Set Implicit Arguments.
Unset Strict Implicit.
Unset Printing Implicit Defensive.
Import Order.TTheory GRing.Theory Num.Def Num.Theory.
Import numFieldNormedType.Exports.
Local Open Scope classical_set_scope.
Local Open Scope ring_scope.
- mathcomp.analysis.lebesgue_integral_theory.measurable_fun_approximation
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_dominated_convergence
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_differentiation
Source code.
Import MeasurableR.
HBSource code.structureSource code DefinitionSource code SimpleFunSource code dSource code (aTSource code :Source code sigmaRingTypeSource code d) (rT : realType) :=
{fSource code of @isMeasurableFun d _ aT rT f & @FiniteImage aT rT f}.
End HBSimple.
Notation "{ 'sfun' aT >-> T }"Source code := (@HBSimple.SimpleFun.type _ aT T) : form_scope.
Notation "[ 'sfun' 'of' f ]"Source code := [the {sfun _ >-> _} of f] : form_scope.
- mathcomp.analysis.lebesgue_integral_theory.counting_lebesgue
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_Rintegral
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_definition
- mathcomp.analysis.lebesgue_integral_theory.giry
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_monotone_convergence
- mathcomp.analysis.lebesgue_integral_theory.radon_nikodym
- mathcomp.analysis.lebesgue_integral_theory.measurable_fun_approximation
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_dominated_convergence
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_fubini
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_nonneg
- mathcomp.analysis.probability_theory.independence
- mathcomp.analysis.probability_theory.uniform_distribution
- mathcomp.analysis.kernel
- mathcomp.analysis.hoelder
Source code.
Import HBSimple.
HBSource code.structureSource code DefinitionSource code NonNegSimpleFunSource code
dSource code (aTSource code :Source code sigmaRingTypeSource code d) (rT : realType) :=
{fSource code of @SimpleFun d _ _ f & @NonNegFun aT rT f}.
End HBNNSimple.
Notation "{ 'nnsfun' aT >-> T }"Source code := (@HBNNSimple.NonNegSimpleFun.type _ aT%type T) : form_scope.
Notation "[ 'nnsfun' 'of' f ]"Source code := [the {nnsfun _ >-> _} of f] : form_scope.
Context {dSource code} {aTSource code : sigmaRingType d} {rTSource code : realType}.
Import MeasurableR.
Definition sfun
Source code : {pred _ -> _} := [predI @mfun _ _ aT rT & fimfun].
Definition sfun_key
Source code : pred_key sfun
Proof.
Source code := KeyedPred sfun_key.
Lemma sub_sfun_mfunSource code : {subset sfun <= mfun}
Proof.
Proof.
Context {dSource code} {aTSource code : measurableType d} {rTSource code : realType}.
Notation TSource code := {sfun aT >-> rT}.
Notation sfunSource code := (@sfun _ aT rT).
Context (fSource code : aT -> rT) (fPSource code : f \in sfun).
Import MeasurableR.
Definition sfun_Sub1_subproof
Source code :=
@isMeasurableFun.Build d _ aT rT f (set_mem (sub_sfun_mfun fP)).
#[local]Source code HBSource code.instanceSource code DefinitionSource code _Source code :=Source code sfun_Sub1_subproofSource code.
Definition sfun_Sub2_subproof
Source code :=
@FiniteImage.Build aT rT f (set_mem (sub_sfun_fimfun fP)).
Import HBSimple.
#[local]Source code HBSource code.instanceSource code DefinitionSource code _Source code :=Source code sfun_Sub2_subproofSource code.
Definition sfun_Sub
Source code := [sfun of f].
End Sub.
Lemma sfun_rectSource code (KSource code : T -> Type) :
(forall fSource code (PfSource code : f \in sfun), K (sfun_Sub Pf)) -> forall uSource code : T, K u.
Proof.
have -> : Pf1 = set_mem (sub_sfun_mfun Pf) by [].
have -> : Pf2 = set_mem (sub_sfun_fimfun Pf) by [].
exact: Ksub.
Qed.
Import HBSimple.
Lemma sfun_valPSource code fSource code (PfSource code : f \in sfun) : sfun_Sub Pf = f :> (_ -> _).
Proof.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code isSubSource code.Build _ _ T sfun_rect sfun_valP.
Lemma sfuneqPSource code (fSource code gSource code : {sfun aT >-> rT}) : f = g <-> f =1 g.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code [ChoiceSource code of {sfun aT >-> rT} by <:].
Import MeasurableR.
HBSource code.instanceSource code DefinitionSource code _Source code xSource code :Source code @FImFunSource code aT rT (cst x) := FImFun.on (cst x).
Definition cst_sfun
Source code xSource code : {sfun aT >-> rT} := cst x.
Lemma cst_sfunESource code xSource code : @cst_sfun x =1 cst x
Proof.
End sfun.
Lemma fctDSource code (TSource code : Type) (KSource code : pzRingType) (fSource code gSource code : T -> K) : f + g = f \+ g.
Proof.
Proof.
- mathcomp.analysis.hoelder
Source code (TSource code : Type) (KSource code : pzRingType) (fSource code gSource code : T -> K) : f * g = f \* g.
Proof.
k *: f = k \*: f.
Proof.
Definition fctWE
measure_eq : forall {d : measure_display} {T : measurableType d} {R : realType}, {measure set T -> \bar R}%R -> {measure set T -> \bar R}%R -> Prop measure_eq is not universe polymorphic Arguments measure_eq {d}%_measure_display_scope {T R} _ _ measure_eq is transparent Expands to: Constant mathcomp.analysis.lebesgue_integral_theory.giry.measure_eq Declared in library mathcomp.analysis.lebesgue_integral_theory.giry, line 44, characters 11-21
Source code := (fctD, fctN, fctM, fctZ).
Context dSource code (aTSource code : measurableType d) (rTSource code : realType).
Lemma sfun_subring_closedSource code : subring_closed (@sfun d aT rT).
Proof.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code GRingSource code.isSubringClosed.Build _ sfun
sfun_subring_closed.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code [SubChoice_isSubComPzRingSource code of {sfun aT >-> rT} by <:].
Implicit Types (f g : {sfun aT >-> rT}).
Import HBSimple.
Lemma sfun0Source code : (0 : {sfun aT >-> rT}) =1 cst 0
Proof.
Proof.
Proof.
Proof.
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_dominated_convergence
Source code fSource code gSource code : f - g =1 f \- g
Proof.
Proof.
(\sum_(iSource code <- r | P i) f i) x = \sum_(iSource code <- r | P i) f i x.
Proof.
(\sum_(iSource code <- r | P i) f i) x = \sum_(iSource code <- r | P i) f i x.
Proof.
Import MeasurableR.
HBSource code.instanceSource code DefinitionSource code _Source code fSource code gSource code :=Source code MeasurableFunSource code.copy (f \+ g) (f + g).
HBSource code.instanceSource code DefinitionSource code _Source code fSource code gSource code :=Source code MeasurableFunSource code.copy (\- f) (- f).
HBSource code.instanceSource code DefinitionSource code _Source code fSource code gSource code :=Source code MeasurableFunSource code.copy (f \- g) (f - g).
HBSource code.instanceSource code DefinitionSource code _Source code fSource code gSource code :=Source code MeasurableFunSource code.copy (f \* g) (f * g).
Import HBSimple.
HBSource code.instanceSource code DefinitionSource code _Source code (DSource code :Source code setSource code aT) (mD : measurable D) :
@FImFun aT rT (mindic _ mD) := FImFun.on (mindic _ mD).
Definition indic_sfun
giry_measurable : forall [d : measure_display] [T : measurableType d] [R : realType], set (set (giry T R)) giry_measurable is not universe polymorphic Arguments giry_measurable [d]%_measure_display_scope [T R] _ giry_measurable is transparent Expands to: Constant mathcomp.analysis.lebesgue_integral_theory.giry.giry_measurable Declared in library mathcomp.analysis.lebesgue_integral_theory.giry, line 68, characters 11-26
Source code (DSource code : set aT) (mDSource code : measurable D) : {sfun aT >-> rT} :=
mindic rT mD.
HBSource code.instanceSource code DefinitionSource code _Source code kSource code fSource code :=Source code MeasurableFunSource code.copy (k \o* f) (f * cst_sfun k).
Definition scale_sfun
giry_display : measure_display giry_display is not universe polymorphic giry_display is opaque Expands to: Constant mathcomp.analysis.lebesgue_integral_theory.giry.giry_display Declared in library mathcomp.analysis.lebesgue_integral_theory.giry, line 81, characters 11-23
Source code kSource code fSource code : {sfun aT >-> rT} := k \o* f.
End ring.
Lemma preimage_nnfun0Used by
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_Rintegral
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_definition
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_fubini
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_nonneg
- mathcomp.analysis.kernel
Source code TSource code (RSource code : realDomainType) (fSource code : {nnfun T >-> R}) tSource code :
t < 0 -> f @^-1` [set t] = set0.
Proof.
Lemma preimage_cstMUsed by
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_definition
Source code TSource code (RSource code : realFieldType) (xSource code ySource code : R) (fSource code : T -> R) :
x != 0 -> (cst x \* f) @^-1` [set y] = f @^-1` [set y / x].
Proof.
Context {dSource code} {TSource code : sigmaRingType d} {RSource code : realType}.
Import HBSimple.
Lemma simple_boundedUsed by
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_differentiation
Source code (fSource code : {sfun T >-> R}) : bounded_fun f.
Proof.
exists (fine (\big[maxe/-oo%E]_(iSource code <- r) `|i|%:E)).
split; rewrite ?num_real// => x mx z _; apply/ltW/(le_lt_trans _ mx).
have ? : f z \in r by have := imageT f z; rewrite fr.
rewrite -[leLHS]/(fine `|f z|%:E) fine_le//.
rewrite -(big_map (EFin \o normr) xpredT idfun)/= bigmaxe_fin_num//.
rewrite -size_eq0 -lt0n -has_predT; apply/hasP.
by exists `|f z|%:E => //=; apply/mapP; exists (f z).
by move=> /= y /mapP[s sr/= ->]; rewrite leNye.
exact: (bigmax_sup_seq _ _ _ _ _ _ _ (lexx _)).
Qed.
End simple_bounded.
Context dSource code (TSource code : measurableType d) (RSource code : realType).
Import HBNNSimple.
Import MeasurableR.
Lemma cst_nnfun_subproofSource code (xSource code : {nonneg R}) : forall tSource code : T, 0 <= cst x%:num t.
Proof.
(cst_nnfun_subproof x).
Definition cst_nnsfun
giry_join : forall {d : measure_display} {T : measurableType d} {R : realType}, giry (giry T R) R -> giry T R giry_join is not universe polymorphic Arguments giry_join {d}%_measure_display_scope {T R} M giry_join is transparent Expands to: Constant mathcomp.analysis.lebesgue_integral_theory.giry.giry_join Declared in library mathcomp.analysis.lebesgue_integral_theory.giry, line 279, characters 11-20
Used by
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_nonneg
Source code (rSource code : {nonneg R}) : {nnsfun T >-> R} := cst r%:num.
Definition nnsfun0
giry_bind : forall [d1 d2 : measure_display] [T1 : measurableType d1] [T2 : measurableType d2] [R : realType], giry T1 R -> forall [f : T1 -> giry T2 R], measurable_fun (T:=T1) (U:=giry_giry__canonical__measurable_structure_SigmaRing T2 R) [set: T1] f -> giry T2 R giry_bind is not universe polymorphic Arguments giry_bind [d1 d2]%_measure_display_scope [T1 T2 R] mu [f]%_function_scope mf giry_bind is transparent Expands to: Constant mathcomp.analysis.lebesgue_integral_theory.giry.giry_bind Declared in library mathcomp.analysis.lebesgue_integral_theory.giry, line 347, characters 11-20
Used by
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_definition
- mathcomp.analysis.lebesgue_integral_theory.measurable_fun_approximation
Source code : {nnsfun T >-> R} := cst_nnsfun 0%:nng.
Lemma indic_nnfun_subproofSource code (DSource code : set T) : forall xSource code, 0 <= (\1_D) x :> R.
Proof.
HBSource code.instanceSource code DefinitionSource code _Source code DSource code :=Source code @isNonNegFunSource code.Build T R \1_D
(indic_nnfun_subproof D).
HBSource code.instanceSource code DefinitionSource code _Source code DSource code (mDSource code :Source code measurableSource code D) :
@NonNegFun T R (mindic R mD) := NonNegFun.on (mindic R mD).
End nnsfun_functions.
Variables (TSource code : Type) (RSource code : numDomainType) (fSource code gSource code : {nnfun T >-> R}).
Lemma add_nnfun_subproofSource code : @isNonNegFun T R (f \+ g).
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code add_nnfun_subproofSource code.
Lemma mul_nnfun_subproofSource code : @isNonNegFun T R (f \* g).
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code mul_nnfun_subproofSource code.
Lemma max_nnfun_subproofSource code : @isNonNegFun T R (f \max g).
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code max_nnfun_subproofSource code.
End nnfun_bin.
Context dSource code (TSource code : measurableType d) (RSource code : realType).
Variables fSource code gSource code : {nnsfun T >-> R}.
Import HBNNSimple.
Import MeasurableR.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code MeasurableFunSource code.on (f \+ g).
Definition add_nnsfun
Used by
- mathcomp.analysis.lebesgue_integral_theory.measurable_fun_approximation
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_nonneg
Source code : {nnsfun T >-> R} := f \+ g.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code MeasurableFunSource code.on (f \* g).
Definition mul_nnsfun
Source code : {nnsfun T >-> R} := f \* g.
HBSource code.instanceSource code DefinitionSource code _Source code :=Source code MeasurableFunSource code.on (f \max g).
Definition max_nnsfun
Source code : {nnsfun T >-> R} := f \max g.
Definition indic_nnsfun
Used by
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_definition
- mathcomp.analysis.lebesgue_integral_theory.measurable_fun_approximation
Source code ASource code (mASource code : measurable A) : {nnsfun T >-> R} := mindic R mA.
End nnsfun_bin.
Arguments mul_nnsfun {d T R} _ _.
Arguments max_nnsfun {d T R} _ _.
Definition scale_nnsfun
Used by
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_definition
- mathcomp.analysis.lebesgue_integral_theory.measurable_fun_approximation
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_nonneg
Source code dSource code (TSource code : measurableType d) (RSource code : realType)
(fSource code : {nnsfun T >-> R}) (kSource code : R) (k0Source code : 0 <= k) :=
mul_nnsfun (cst_nnsfun T (NngNum k0)) f.
Definition proj_nnsfun
Used by
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_definition
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_nonneg
Source code dSource code (TSource code : measurableType d) (RSource code : realType)
(fSource code : {nnsfun T >-> R}) (ASource code : set T) (mASource code : measurable A) :=
mul_nnsfun f (indic_nnsfun R mA).
Import HBNNSimple.
Lemma mrestrictUsed by
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_definition
Source code dSource code (TSource code : measurableType d) (RSource code : realType) (fSource code : {nnsfun T >-> R})
ASource code (mASource code : measurable A) : f \_ A = proj_nnsfun f mA.
End mrestrict.
Context dSource code (TSource code : measurableType d) (RSource code : realType) (DSource code : set T).
Variable fSource code : {nnsfun T >-> R}^nat.
Definition sum_nnsfun
Used by
- mathcomp.analysis.lebesgue_integral_theory.measurable_fun_approximation
Source code nSource code := \big[add_nnsfun/nnsfun0]_(iSource code < n) f i.
Import HBNNSimple.
Lemma sum_nnsfunEUsed by
- mathcomp.analysis.lebesgue_integral_theory.measurable_fun_approximation
Source code nSource code tSource code : sum_nnsfun n t = \sum_(iSource code < n) (f i t).
Proof.
Definition bigmax_nnsfun
dyadic_itv : forall R : realType, nat -> nat -> interval R dyadic_itv is not universe polymorphic Arguments dyadic_itv R (n k)%_nat_scope dyadic_itv is transparent Expands to: Constant mathcomp.analysis.lebesgue_integral_theory.measurable_fun_approximation.dyadic_itv Declared in library mathcomp.analysis.lebesgue_integral_theory.measurable_fun_approximation, line 46, characters 11-21
Used by
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_monotone_convergence
Source code nSource code := \big[max_nnsfun/nnsfun0]_(iSource code < n) f i.
Lemma bigmax_nnsfunEUsed by
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_monotone_convergence
Source code nSource code tSource code : bigmax_nnsfun n t = \big[maxr/0]_(iSource code < n) (f i t).
Proof.
End nnsfun_iter.
Local Open Scope ereal_scope.
Context dSource code (TSource code : measurableType d) (RSource code : realType).
Variable fSource code : {nnsfun T >-> R}.
Import HBNNSimple.
Lemma nnsfun_coverUsed by
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_definition
Source code : \big[setU/set0]_(iSource code \in range f) (f @^-1` [set i]) = setT.
Proof.
Lemma nnsfun_coverTSource code : \big[setU/set0]_(iSource code \in [set: R]) f @^-1` [set i] = setT.
Proof.
End nnsfun_cover.
Local Open Scope ereal_scope.
Context dSource code (TSource code : measurableType d) (RSource code : realType).
Variable mSource code : {measure set T -> \bar R}.
Lemma measure_fsbigUsed by
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_definition
Source code (ISource code : choiceType) (ASource code : set I) (FSource code : I -> set T) :
finite_set A ->
(forall iSource code, A i -> measurable (F i)) -> trivIset A F ->
m (\big[setU/set0]_(iSource code \in A) F i) = \sum_(iSource code \in A) m (F i).
Proof.
Import HBNNSimple.
Import MeasurableR.
Lemma additive_nnsfunrUsed by
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_definition
Source code (gSource code fSource code : {nnsfun T >-> R}) xSource code :
\sum_(iSource code \in range g) m (f @^-1` [set x] `&` (g @^-1` [set i])) =
m (f @^-1` [set x] `&` \big[setU/set0]_(iSource code \in range g) (g @^-1` [set i])).
Proof.
- by move=> i Ai; apply: measurableI.
- exact/trivIset_setIl/trivIset_preimage1.
- by rewrite !fsbig_finite//= big_distrr.
Qed.
Lemma additive_nnsfunlUsed by
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_definition
Source code (gSource code fSource code : {nnsfun T >-> R}) xSource code :
\sum_(iSource code \in range g) m (g @^-1` [set i] `&` (f @^-1` [set x])) =
m (\big[setU/set0]_(iSource code \in range g) (g @^-1` [set i]) `&` f @^-1` [set x]).
Proof.
End measure_fsbig.
Local Open Scope ereal_scope.
Let mulef_ge0Source code (RSource code : realDomainType) xSource code (fSource code : R -> \bar R) :
0 <= f x -> ((x < 0)%R -> f x = 0) -> 0 <= x%:E * f x.
Proof.
Lemma nnfun_muleindic_ge0Used by
- mathcomp.analysis.lebesgue_integral_theory.radon_nikodym
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_fubini
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_nonneg
- mathcomp.analysis.probability_theory.independence
- mathcomp.analysis.probability_theory.uniform_distribution
- mathcomp.analysis.kernel
Source code dSource code (TSource code : sigmaRingType d) (RSource code : realDomainType)
(fSource code : {nnfun T >-> R}) rSource code zSource code : 0 <= r%:E * (\1_(f @^-1` [set r]) z)%:E.
Proof.
Lemma mulemu_ge0Used by
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_definition
- mathcomp.analysis.kernel
Source code dSource code (TSource code : sigmaRingType d) (RSource code : realType)
(muSource code : {measure set T -> \bar R}) xSource code (ASource code : R -> set T) :
((x < 0)%R -> A x = set0) -> 0 <= x%:E * mu (A x).
Global Arguments mulemu_ge0 {d T R mu x} A.
Import HBNNSimple.
Lemma nnsfun_mulemu_ge0Used by
- mathcomp.analysis.lebesgue_integral_theory.lebesgue_integral_definition
- mathcomp.analysis.lebesgue_integral_theory.giry
Source code dSource code (TSource code : sigmaRingType d) (RSource code : realType)
(muSource code : {measure set T -> \bar R}) (fSource code : {nnsfun T >-> R}) xSource code :
0 <= x%:E * mu (f @^-1` [set x]).
Proof.
End mulem_ge0.