MindFormal v1.0.0One Mind

MindFormal.Tools.StationaryWriterRows.Regression

theorem MindFormal.StationaryWriterRows.four_atom_gram (p gain : Bool × Bool → ℝ) (hp : ∀ (z : Bool × Bool), 0 < p z) (hg : ∀ (z : Bool × Bool), 0 < gain z) (a b c : ℝ) (ha : a ≠ 0) (hb : b ≠ 0) (hc : c ≠ 0) :
(((cueDesign a b c).conjTranspose * Matrix.diagonal fun (z : Bool × Bool) => p z * gain z) * cueDesign a b c).PosDef

The four positive-probability cue/outcome atoms, with positive gain on each atom, have a positive-definite complete context/cue/outcome Gram. The weights are probability times gain; there is no unweighted sampling step.

theorem MindFormal.StationaryWriterRows.four_combinations_full_rank {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) (cue outcome : Ω → Bool) (hfour : ∀ (z : Bool × Bool), 0 < μ {ω : Ω | (cue ω, outcome ω) = z}) (a b c : ℝ) (ha : a ≠ 0) (hb : b ≠ 0) (hc : c ≠ 0) (v : Fin 3 → ℝ) :
(∀ᵐ (ω : Ω) ∂μ, a * v 0 + (if cue ω = true then b else 0) * v 1 + (if outcome ω = true then c else 0) * v 2 = 0) ↔ v = 0

The full-rank condition uses all four cue/outcome combinations, also on an arbitrary probability space and with arbitrarily correlated cases.

theorem MindFormal.StationaryWriterRows.indicator_regression {Ω : Type u_1} {I : Type u_2} [MeasurableSpace Ω] [Fintype I] [DecidableEq I] (μ : MeasureTheory.Measure Ω) (R : RowData Ω I) (i : I) (outcome : Ω → Bool) (U X : ℝ) (hX : 0 < X) (_hM : ∀ (ω : Ω), 0 < R.M ω) (hC : ∀ (ω : Ω) (j : I), R.C ω j = R.x ω j) (hxi : ∀ (ω : Ω), R.x ω i = X * if outcome ω = true then 1 else 0) (hei : ∀ (ω : Ω), R.e ω = U * if outcome ω = true then 1 else 0) (hG : (R.G μ).PosDef) :
have w := Pi.single i (U / X); (∀ (ω : Ω), R.e ω - ∑ j : I, R.x ω j * w j = 0) ∧ (R.G μ).mulVecLin w = R.f μ ∧ ∀ (v : I → ℝ), (R.G μ).mulVecLin v = R.f μ ↔ v = w

The stipulated regression profile has the actual receiver as a predictor. This is a separate coefficient comparison, with beta=0 only as a boundary diagnostic, and makes no replacement of the native II process.