MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch16.A705SharedDescriptions.DirRisk

19.29.38: squared risks of binary reads against PQ for fair independent bits: the four bit patterns each have probability 1/4; a read equal to the target on an event costs at most the event's complement; a read wrong on an event costs at least that event's probability.

Fair independent bits.

Instances For
    theorem MindFormal.A705SharedDescriptions.FairBits.pattern {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {P Q : Ω → ℝ} (h : FairBits μ P Q) (p q : ℝ) (hp : p = 0 ∨ p = 1) (hq : q = 0 ∨ q = 1) :
    μ.real {ω : Ω | P ω = p ∧ Q ω = q} = 1 / 4
    theorem MindFormal.A705SharedDescriptions.FairBits.meas_pattern {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {P Q : Ω → ℝ} (h : FairBits μ P Q) (p q : ℝ) :
    MeasurableSet {ω : Ω | P ω = p ∧ Q ω = q}
    theorem MindFormal.A705SharedDescriptions.FairBits.PQ01 {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {P Q : Ω → ℝ} (h : FairBits μ P Q) (ω : Ω) :
    P ω * Q ω = 0 ∨ P ω * Q ω = 1
    theorem MindFormal.A705SharedDescriptions.FairBits.zero_mass {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {P Q : Ω → ℝ} (h : FairBits μ P Q) :
    μ.real {ω : Ω | P ω * Q ω = 0} = 3 / 4

    PQ = 0 has probability 3/4.

    theorem MindFormal.A705SharedDescriptions.risk_le_of_good {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {R Z : Ω → ℝ} (hR : Measurable R) (hZ : Measurable Z) (hR01 : ∀ (ω : Ω), R ω = 0 ∨ R ω = 1) (hZ01 : ∀ (ω : Ω), Z ω = 0 ∨ Z ω = 1) {G : Set Ω} (hG : MeasurableSet G) (hgood : ∀ ω ∈ G, R ω = Z ω) :
    ∫ (ω : Ω), (Z ω - R ω) ^ 2 ∂μ ≤ μ.real Gᶜ

    A binary read equal to its binary target on a measurable event costs at most its complement.

    theorem MindFormal.A705SharedDescriptions.risk_ge_of_bad {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {R Z : Ω → ℝ} (hR : Measurable R) (hZ : Measurable Z) (hR01 : ∀ (ω : Ω), R ω = 0 ∨ R ω = 1) (hZ01 : ∀ (ω : Ω), Z ω = 0 ∨ Z ω = 1) {S : Set Ω} (hS : MeasurableSet S) (hbad : ∀ ω ∈ S, R ω ≠ Z ω) :
    μ.real S ≤ ∫ (ω : Ω), (Z ω - R ω) ^ 2 ∂μ

    A binary read wrong on a measurable event costs at least that event's probability.