MindFormal v1.0.0One Mind

MindFormal.Tools.A630EncounterLaws.Offset

noncomputable def MindFormal.A630EncounterLaws.fit {C : Type u_1} [Fintype C] [Nonempty C] (learned actual : C → ℝ) :
Equations
Instances For
    theorem MindFormal.A630EncounterLaws.lower_le {C : Type u_1} [Fintype C] [Nonempty C] (d : C → ℝ) (a : C) :
    lower d ≤ d a
    theorem MindFormal.A630EncounterLaws.le_upper {C : Type u_1} [Fintype C] [Nonempty C] (d : C → ℝ) (a : C) :
    d a ≤ upper d
    theorem MindFormal.A630EncounterLaws.half_range {C : Type u_1} [Fintype C] [Nonempty C] (d : C → ℝ) :
    offsetError d ((upper d + lower d) / 2) = (upper d - lower d) / 2 ∧ ∀ (b : ℝ), (upper d - lower d) / 2 ≤ offsetError d b

    The midpoint attains the exact best common-offset error, on every finite nonempty menu, including the single-act case.

    theorem MindFormal.A630EncounterLaws.fit_nonneg {C : Type u_1} [Fintype C] [Nonempty C] (learned actual : C → ℝ) :
    0 ≤ fit learned actual
    theorem MindFormal.A630EncounterLaws.fit_zero_iff {C : Type u_1} [Fintype C] [Nonempty C] (learned actual : C → ℝ) :
    fit learned actual = 0 ↔ ∀ (a b : C), learned a - learned b = actual a - actual b
    theorem MindFormal.A630EncounterLaws.fit_two {C : Type u_1} [Fintype C] [Nonempty C] (learned actual : C → ℝ) (a b : C) (cover : ∀ (c : C), c = a ∨ c = b) :
    fit learned actual = |learned a - learned b - (actual a - actual b)| / 2

    On an arbitrary two-element menu the offset fit is half the absolute error in the single payoff contrast.