MindFormal v1.0.0One Mind

MindFormal.Tools.A654StandardsWhole.RecordPrice

theorem MindFormal.A654StandardsWhole.conditioned_integral {R : Type u_1} [MeasurableSpace R] (ρ : MeasureTheory.Measure R) (complete : Set R) (hc : MeasurableSet complete) (f : R → ℝ) :
∫ (r : R), f r ∂ρ[|complete] = (∫ (r : R), complete.indicator f r ∂ρ) / ρ.real complete
theorem MindFormal.A654StandardsWhole.expectation_from_event {R : Type u_1} [MeasurableSpace R] (ρ : MeasureTheory.Measure R) [MeasureTheory.IsProbabilityMeasure ρ] (f : R → ℝ) (hf : Measurable f) (bounds : ∀ (r : R), f r ∈ Set.Icc 0 1) {reference error δ : ℝ} (href : reference ∈ Set.Icc 0 1) (he : 0 ≤ error) (good : Set R) (hg : MeasurableSet good) (hbad : ρ.real goodᶜ ≤ δ) (enclosure : ∀ r ∈ good, |f r - reference| ≤ error) :
|∫ (r : R), f r ∂ρ - reference| ≤ error + δ
noncomputable def MindFormal.A654StandardsWhole.completeObservable {R : Type u_1} {Q : Type u_2} (complete : Set R) (f : Q → R → ℝ) :
Option Q → R → ℝ

All finite observables are sampled together with the same completion flag. Counts are normalized by the sample count before the ratio is formed.

Equations
Instances For
    theorem MindFormal.A654StandardsWhole.complete_sampling {Ξ : Type u_1} {R : Type u_2} {I : Type u_3} {Q : Type u_4} [MeasurableSpace Ξ] [MeasurableSpace R] [Fintype I] [Nonempty I] [Fintype Q] (ν : MeasureTheory.Measure Ξ) [MeasureTheory.IsProbabilityMeasure ν] (ρ : MeasureTheory.Measure R) [MeasureTheory.IsProbabilityMeasure ρ] (Z : I → Ξ → R) (hm : ∀ (i : I), Measurable (Z i)) (hind : ProbabilityTheory.iIndepFun Z ν) (law : ∀ (i : I), ProbabilityTheory.HasLaw (Z i) ρ ν) (complete : Set R) (hc : MeasurableSet complete) (positive : 0 < ρ.real complete) (f : Q → R → ℝ) (hf : ∀ (q : Q), Measurable (f q)) (bounds : ∀ (q : Q) (r : R), f q r ∈ Set.Icc 0 1) {ε : ℝ} (hε : 0 ≤ ε) (small : ε < ρ.real complete) :
    ∃ (good : Set Ξ), MeasurableSet good ∧ 1 - min 1 ((↑(Fintype.card Q) + 1) * 2 * Real.exp (-2 * ↑(Fintype.card I) * ε ^ 2)) ≤ ν.real good ∧ ∀ ω ∈ good, |empirical Z (completeObservable complete f none) ω - ρ.real complete| < ε ∧ 0 < empirical Z (completeObservable complete f none) ω ∧ ∀ (q : Q), |empirical Z (completeObservable complete f (some q)) ω - ∫ (r : R), complete.indicator (f q) r ∂ρ| < ε ∧ |empirical Z (completeObservable complete f (some q)) ω / empirical Z (completeObservable complete f none) ω - (∫ (r : R), complete.indicator (f q) r ∂ρ) / ρ.real complete| ≤ 2 * ε / (ρ.real complete - ε)