MindFormal v1.0.0One Mind

MindFormal.Run.MarkedRows

theorem MindFormal.MarkedMass.ofLaw_integral {Ω : Type u_1} {R : Type u_2} [MeasurableSpace Ω] [Fintype R] [MeasurableSpace R] [MeasurableSingletonClass R] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (mark : Ω → R) (hm : Measurable mark) (f : R → ℝ) :
∫ (ω : Ω), f (mark ω) ∂μ = ∑ r : R, (ofLaw μ mark hm).mass r * f r

Integrating any finite mark read agrees with summing its constructed joint masses. No acceptance or player independence is assumed.

theorem MindFormal.MarkedMass.ofLaw_accepted {Ω : Type u_1} {R : Type u_2} [MeasurableSpace Ω] [Fintype R] [MeasurableSpace R] [MeasurableSingletonClass R] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (mark : Ω → R) (hm : Measurable mark) (ok : R → Bool) :
(ofLaw μ mark hm).accepted ok = ∫ (ω : Ω), if ok (mark ω) = true then 1 else 0 ∂μ

Accepted mass is exactly the expectation of the finite flag.

noncomputable def MindFormal.MarkedRows.row {X : Type u_1} {S : Type u_2} {R : Type u_3} [MeasurableSpace S] (ν : MeasureTheory.Measure S) (mark : X × S → R) (ok : R → Bool) (x : X) :

Conditional event mass, computed by averaging the actual record constructor over fresh source. The state is left intact.

Equations
Instances For
    theorem MindFormal.MarkedRows.indicator_measurable {X : Type u_1} {S : Type u_2} {R : Type u_3} [MeasurableSpace X] [MeasurableSpace S] [MeasurableSpace R] [MeasurableSingletonClass R] [Finite R] {mark : X × S → R} (hm : Measurable mark) (ok : R → Bool) :
    Measurable fun (p : X × S) => if ok (mark p) = true then 1 else 0
    theorem MindFormal.MarkedRows.row_measurable {X : Type u_1} {S : Type u_2} {R : Type u_3} [MeasurableSpace X] [MeasurableSpace S] [MeasurableSpace R] [MeasurableSingletonClass R] [Finite R] (ν : MeasureTheory.Measure S) [MeasureTheory.SFinite ν] {mark : X × S → R} (hm : Measurable mark) (ok : R → Bool) :
    Measurable (row ν mark ok)
    theorem MindFormal.MarkedRows.row_bound {X : Type u_1} {S : Type u_2} {R : Type u_3} [MeasurableSpace S] (ν : MeasureTheory.Measure S) [MeasureTheory.IsProbabilityMeasure ν] (mark : X × S → R) (ok : R → Bool) (x : X) :
    ‖row ν mark ok x‖ ≤ 1
    theorem MindFormal.MarkedRows.accepted_eq_integral {X : Type u_1} {S : Type u_2} {R : Type u_3} [MeasurableSpace X] [MeasurableSpace S] [MeasurableSpace R] [MeasurableSingletonClass R] [Fintype R] (ν : MeasureTheory.Measure S) [MeasureTheory.IsProbabilityMeasure ν] (π : MeasureTheory.Measure X) [MeasureTheory.IsProbabilityMeasure π] {mark : X × S → R} (hm : Measurable mark) (ok : R → Bool) :
    (MarkedMass.ofLaw (π.prod ν) mark hm).accepted ok = ∫ (x : X), row ν mark ok x ∂π

    The completed marked flag mass equals the integral of its conditional state row, by product integration on the very same source space.

    theorem MindFormal.MarkedRows.price_eq_ratio {X : Type u_1} {S : Type u_2} {R : Type u_3} [MeasurableSpace X] [MeasurableSpace S] [MeasurableSpace R] [MeasurableSingletonClass R] [Fintype R] (ν : MeasureTheory.Measure S) [MeasureTheory.IsProbabilityMeasure ν] (π : MeasureTheory.Measure X) [MeasureTheory.IsProbabilityMeasure π] {mark : X × S → R} (hm : Measurable mark) (ok : R → Bool) {C : Type u_4} [DecidableEq C] (read : R → C) (c : C) :
    (MarkedMass.ofLaw (π.prod ν) mark hm).price ok read c = KernelPoisson.freeRatio π (row ν mark fun (r : R) => ok r && decide (read r = c)) (row ν mark ok)

    Native free-mark normalization is the ratio of its two conditional state-row integrals, including correlated outcomes and no-act marks.