Module mathcomp.analysis.measure_theory.probability_measure
From HB Require Import structures.From mathcomp Require Import all_ssreflect_compat all_algebra.
From mathcomp Require Import boolp classical_sets functions cardinality reals.
From mathcomp Require Import interval_inference ereal topology normedtype.
From mathcomp Require Import measurable_structure measure_function dirac_measure.
Set SsrOldRewriteGoalsOrder.
Set Implicit Arguments.
Unset Strict Implicit.
Unset Printing Implicit Defensive.
Import Order.TTheory GRing.Theory Num.Theory.
Local Open Scope classical_set_scope.
Local Open Scope ring_scope.
.
(P : set T -> \bar R) := { sprobability_setT : (P setT <= 1)%E }.
.
:= { of @FiniteMeasure d T R mu & isSubProbability d T R mu }.
.
(R : realType) (P : set T -> \bar R) & isMeasure _ _ _ P :=
{ sprobability_setT : (P setT <= 1)%E }.
.
P & Measure_isSubProbability d T R P.
Let
Proof.
.
.
.
Section mzero_subprobability.
Context ( : measurableType d) ( : realType).
Let
Proof.
.
Measure_isSubProbability.Build _ _ _ (@mzero d T R) mzero_setT.
End mzero_subprobability.
.
(P : set T -> \bar R) := { probability_setT : P setT = 1%E }.
.
{ of @SubProbability d T R P & isProbability d T R P }.
Arguments probability_setT {d T R} s.
.
gen_eqMixin (probability T R).
.
gen_choiceMixin (probability T R).
Section probability_lemmas.
Local Open Scope ereal_scope.
Context ( : measurableType d) ( : realType) ( : probability T R).
Lemma
- mathcomp.analysis.probability_theory.beta_distribution
- mathcomp.analysis.probability_theory.random_variable
- mathcomp.analysis.probability_theory.bernoulli_distribution
Source code
Proof.
Lemma
Proof.
- by rewrite fin_num_measure.
- exact: measurableC.
Qed.
End probability_lemmas.
.
(R : realType) (P : set T -> \bar R) & isMeasure _ _ _ P :=
{ probability_setT : P setT = 1%E }.
.
P & Measure_isProbability d T R P.
Let
Proof.
.
.
.
Section pdirac.
Context ( : measurableType d) ( : realType).
.
Measure_isProbability.Build _ _ _ (@dirac _ T x R) (diracT R x).
End pdirac.
Section mnormalize.
Local Open Scope ereal_scope.
Context ( : measurableType d) ( : realType).
Variables ( : {measure set T -> \bar R}) ( : probability T R).
Definition
caratheodory_display : forall [R T : Type], (set T -> \bar R) -> measure_display caratheodory_display is not universe polymorphic Arguments caratheodory_display [R T]%type_scope _%function_scope caratheodory_display is opaque Expands to: Constant mathcomp.analysis.measure_theory.measure_extension.caratheodory_display Declared in library mathcomp.analysis.measure_theory.measure_extension, line 400, characters 11-31
Used by
- mathcomp.analysis.kernel
Source code
let
if (evidence == 0) || (evidence == +oo) then fun => P U
else fun => mu U * (fine evidence)^-1%:E.
Let
Proof.
Let
Proof.
Let
Proof.
case: ifPn => [_|_]; first exact: measure_semi_sigma_additive.
rewrite [X in X @ _ --> _](_ : _ = (fun => \sum_(0 <= < n) mu (F i)) \*
cst (fine (mu setT))^-1%:E); last first.
by apply/funext => n; rewrite -ge0_sume_distrl.
by apply: cvgeZr => //; exact: measure_semi_sigma_additive.
Qed.
.
mnormalize0 mnormalize_ge0 mnormalize_sigma_additive.
Let
Proof.
.
Measure_isProbability.Build _ _ _ mnormalize mnormalize1.
End mnormalize.
Lemma
( : probability T R) : mnormalize P P' = P.
Proof.
.
isPointed.Build (probability T R) (dirac point).
Section dist_sigma_algebra_instance.
Context ( : measurableType d) ( : realType).
Definition
measurable_cover : forall [d : measure_display] [T : semiRingOfSetsType d], set T -> set (set T) ^nat measurable_cover is not universe polymorphic Arguments measurable_cover [d]%measure_display_scope [T] X%classical_set_scope _ measurable_cover is transparent Expands to: Constant mathcomp.analysis.measure_theory.measure_extension.measurable_cover Declared in library mathcomp.analysis.measure_theory.measure_extension, line 475, characters 11-27
Used by
- mathcomp.analysis.kernel
Source code
[set : probability T R | mu U < r%:E]%E.
Lemma
- mathcomp.analysis.kernel
Source code
Proof.
Lemma
- mathcomp.analysis.kernel
Source code
measurable U -> (1 < r)%R -> mset U r = [set: probability T R].
Proof.
by rewrite /mset/= (le_lt_trans (probability_le1 _ _)).
Qed.
Definition
mu_ext : forall [d : measure_display] [T : semiRingOfSetsType d] [R : realType], (set T -> \bar R) -> set T -> \bar R mu_ext is not universe polymorphic Arguments mu_ext [d]%measure_display_scope [T R] mu%function_scope X%classical_set_scope mu_ext is transparent Expands to: Constant mathcomp.analysis.measure_theory.measure_extension.mu_ext Declared in library mathcomp.analysis.measure_theory.measure_extension, line 493, characters 11-17
Used by
- mathcomp.analysis.kernel
- mathcomp.analysis.probability_theory.poisson_distribution
- mathcomp.analysis.probability_theory.bernoulli_distribution
- mathcomp.analysis.probability_theory.binomial_distribution
Source code
[set mset U r | in `[0%R,1%R] & in measurable].
Definition
measure_extension : forall [d : measure_display] [T : semiRingOfSetsType d] [R : realType], Measure.Exports.measure T R -> set (g_sigma_algebraType d.-measurable) -> \bar R measure_extension is not universe polymorphic Arguments measure_extension [d]%measure_display_scope [T R] mu _%classical_set_scope measure_extension is transparent Expands to: Constant mathcomp.analysis.measure_theory.measure_extension.measure_extension Declared in library mathcomp.analysis.measure_theory.measure_extension, line 717, characters 11-28
Used by
- mathcomp.analysis.kernel
- mathcomp.analysis.probability_theory.poisson_distribution
- mathcomp.analysis.probability_theory.bernoulli_distribution
- mathcomp.analysis.probability_theory.binomial_distribution
Source code
g_sigma_algebraType pset.
End dist_sigma_algebra_instance.