MindFormal v1.0.0One Mind

MindFormal.Tools.A641Awareness.FactorRisk

def MindFormal.A641Awareness.FactorRisk.conjunction {Ω : Type u_1} {D : Type u_2} [Fintype D] (Z : D → Ω → Bool) (ω : Ω) :
Equations
Instances For
    theorem MindFormal.A641Awareness.FactorRisk.conjunction_indicator {Ω : Type u_1} {D : Type u_2} [Fintype D] (Z : D → Ω → Bool) :
    conjunction Z = (⋂ (d : D), Z d ⁻¹' {true}).indicator 1
    theorem MindFormal.A641Awareness.FactorRisk.bit_memLp {Ω : Type u_1} {D : Type u_2} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] (Z : D → Ω → Bool) (hZ : ∀ (d : D), Measurable (Z d)) (d : D) :
    MeasureTheory.MemLp (fun (ω : Ω) => bit (Z d ω)) 2 μ
    def MindFormal.A641Awareness.FactorRisk.factor {Ω : Type u_1} {D : Type u_2} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] (Z : D → Ω → Bool) (hZ : ∀ (d : D), Measurable (Z d)) (d : D) :
    Equations
    Instances For
      noncomputable def MindFormal.A641Awareness.FactorRisk.variance {Ω : Type u_1} {D : Type u_2} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] (Z : D → Ω → Bool) (hZ : ∀ (d : D), Measurable (Z d)) (hm : m ≤ mΩ) (d : D) :
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        noncomputable def MindFormal.A641Awareness.FactorRisk.q {Ω : Type u_1} {D : Type u_2} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} (Z : D → Ω → Bool) (d : D) :
        Ω → ℝ
        Equations
        Instances For

          Eventwise conditional independence of the finite binary factors. This definition works on an arbitrary probability space; it requires no regular conditional probability kernel or standard-Borel ambient space.

          Equations
          Instances For
            theorem MindFormal.A641Awareness.FactorRisk.posterior_product {Ω : Type u_1} {D : Type u_2} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] [Fintype D] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] (Z : D → Ω → Bool) (hZ : ∀ (d : D), Measurable (Z d)) (hm : m ≤ mΩ) (hc : ConditionalIndependent Z) :
            ↑↑(ConditionalRisk.posterior hm (target Z hZ)) =ᵐ[μ] fun (ω : Ω) => ∏ d : D, q Z d ω

            The all-positive event is one of the conditional independence tests.

            theorem MindFormal.A641Awareness.FactorRisk.factor_moment {Ω : Type u_1} {D : Type u_2} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] (Z : D → Ω → Bool) (hZ : ∀ (d : D), Measurable (Z d)) (hm : m ≤ mΩ) {π : ℝ} (hπ : ∀ (d : D), μ.real (Z d ⁻¹' {true}) = π) (d : D) :
            ∫ (ω : Ω), q Z d ω ^ 2 ∂μ = π - variance Z hZ hm d
            theorem MindFormal.A641Awareness.FactorRisk.target_moment {Ω : Type u_1} {D : Type u_2} [mΩ : MeasurableSpace Ω] [Fintype D] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] (Z : D → Ω → Bool) (hZ : ∀ (d : D), Measurable (Z d)) {π : ℝ} (hπ : ∀ (d : D), μ.real (Z d ⁻¹' {true}) = π) (hi : ProbabilityTheory.iIndepFun Z μ) :
            theorem MindFormal.A641Awareness.FactorRisk.native_risk {Ω : Type u_1} {D : Type u_2} {m : MeasurableSpace Ω} [mΩ : MeasurableSpace Ω] [Fintype D] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] (Z : D → Ω → Bool) (hZ : ∀ (d : D), Measurable (Z d)) (hm : m ≤ mΩ) {π : ℝ} (hπ : ∀ (d : D), μ.real (Z d ⁻¹' {true}) = π) (hi : ProbabilityTheory.iIndepFun Z μ) (hc : ConditionalIndependent Z) {R : D → Type u_3} [(d : D) → MeasurableSpace (R d)] (channel : (d : D) → Ω → R d) (hchannel : ∀ (d : D), Measurable (channel d)) (hind : ProbabilityTheory.iIndepFun channel μ) (post : (d : D) → R d → ℝ) (hpost : ∀ (d : D), Measurable (post d)) (hq : ∀ (d : D), q Z d =ᵐ[μ] post d ∘ channel d) (read : ↥(MeasureTheory.Lp ℝ 2 μ)) (hr : MeasureTheory.AEStronglyMeasurable (↑↑read) μ) :
            ‖target Z hZ - read‖ ^ 2 = π ^ Fintype.card D - ∏ d : D, (π - variance Z hZ hm d) + ‖read - ConditionalRisk.posterior hm (target Z hZ)‖ ^ 2

            AS6.13 for arbitrary independent channel spaces. The measurable factor map includes all repetitions of that factor. The equality identifies the conditional mean of each bit with that channel's posterior; no loss or successful native read is supplied as a premise.