MindFormal v1.0.0One Mind

MindFormal.Tools.EncounterIncidence.Expectation

Conditional expectations on event and nonevent episodes. Products remain inside their integrals; no independence or stationary existence is assumed.

noncomputable def MindFormal.EncounterIncidence.conditionalPresence {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) (C : Ω → ℝ) (A : Set Ω) :
Equations
Instances For
    noncomputable def MindFormal.EncounterIncidence.incidence {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) (C : Ω → ℝ) (A : Set Ω) :
    Equations
    Instances For
      theorem MindFormal.EncounterIncidence.conditionalPresence_eq {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) (C : Ω → ℝ) (A : Set Ω) :
      conditionalPresence μ C A = (∫ (ω : Ω) in A, C ω ∂μ) / μ.real A
      theorem MindFormal.EncounterIncidence.conditionalPresence_nonneg {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) {C : Ω → ℝ} (A : Set Ω) (hC : ∀ (ω : Ω), 0 ≤ C ω) :
      theorem MindFormal.EncounterIncidence.conditional_partition {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] {C : Ω → ℝ} {A : Set Ω} (hA : MeasurableSet A) (hC : MeasureTheory.Integrable C μ) (hp : 0 < μ.real A) (hp1 : μ.real A < 1) :
      ∫ (ω : Ω) in A, C ω ∂μ = μ.real A * conditionalPresence μ C A ∧ ∫ (ω : Ω) in Aᶜ, C ω ∂μ = (1 - μ.real A) * conditionalPresence μ C Aᶜ ∧ ∫ (ω : Ω), C ω ∂μ = μ.real A * conditionalPresence μ C A + (1 - μ.real A) * conditionalPresence μ C Aᶜ
      structure MindFormal.EncounterIncidence.StationaryMoments {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) (C V H Q : Ω → ℝ) (A : Set Ω) (d₀ d₁ : ℝ) :

      The other-content and covariance terms are retained as joint moments. The balance is the source's explicitly assumed stationary specialization, not an assertion that an arbitrary input stream has such a regime.

      Instances For
        noncomputable def MindFormal.EncounterIncidence.jointCovariance {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) (H V : Ω → ℝ) :
        Equations
        Instances For
          noncomputable def MindFormal.EncounterIncidence.learningScale {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) (C H : Ω → ℝ) :
          Equations
          Instances For
            noncomputable def MindFormal.EncounterIncidence.learnedResidual {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) (C V H Q : Ω → ℝ) (d₀ : ℝ) :
            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              theorem MindFormal.EncounterIncidence.mean_value_decomposition {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) {C V H Q : Ω → ℝ} {A : Set Ω} {d₀ d₁ : ℝ} (M : StationaryMoments μ C V H Q A d₀ d₁) (hC : 0 < ∫ (ω : Ω), C ω ∂μ) :
              ∫ (ω : Ω), V ω ∂μ = learnedResidual μ C V H Q d₀ + d₁ * learningScale μ C H * incidence μ C A
              theorem MindFormal.EncounterIncidence.calibrated_mean {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) {C V H Q : Ω → ℝ} {A : Set Ω} {d₀ d₁ : ℝ} (M : StationaryMoments μ C V H Q A d₀ d₁) (hC : 0 < ∫ (ω : Ω), C ω ∂μ) (hd₁ : 0 < d₁) :
              (∫ (ω : Ω), V ω ∂μ - learnedResidual μ C V H Q d₀) / (d₁ * learningScale μ C H) = incidence μ C A