MindFormal v1.0.0One Mind

MindFormal.Tools.QuantalIdentification

noncomputable def MindFormal.Quantal.maximizers {A : Type u_1} [Fintype A] (u : A → ℝ) :

All maximizers of a finite score vector, retaining exact ties.

Equations
Instances For
    noncomputable def MindFormal.Quantal.winner {A : Type u_1} [Fintype A] [Nonempty A] [LinearOrder A] (u : A → ℝ) :
    A

    A fixed priority selects among exact ties. Gaussian errors make ties null, but identification below does not need to assume or discard ties.

    Equations
    Instances For
      theorem MindFormal.Quantal.winner_max {A : Type u_1} [Fintype A] [Nonempty A] [LinearOrder A] (u : A → ℝ) (b : A) :
      u b ≤ u (winner u)
      theorem MindFormal.Quantal.winner_eq_iff {A : Type u_1} [Fintype A] [Nonempty A] [LinearOrder A] (u : A → ℝ) (a : A) :
      winner u = a ↔ (∀ (b : A), u b ≤ u a) ∧ ∀ (b : A), (∀ (c : A), u c ≤ u b) → a ≤ b
      theorem MindFormal.Quantal.winner_of_strict {A : Type u_1} [Fintype A] [Nonempty A] [LinearOrder A] (u : A → ℝ) (a : A) (h : ∀ (b : A), b ≠ a → u b < u a) :
      winner u = a
      theorem MindFormal.Quantal.winner_offset {A : Type u_1} [Fintype A] [Nonempty A] [LinearOrder A] (u : A → ℝ) (c : ℝ) :
      (winner fun (a : A) => u a + c) = winner u

      A common score offset preserves the fixed-priority winner pointwise.

      theorem MindFormal.Quantal.winner_measurable {A : Type u_1} [Fintype A] [Nonempty A] [LinearOrder A] [MeasurableSpace A] (u : A → ℝ) :
      Measurable fun (e : A → ℝ) => winner fun (a : A) => u a + e a

      A winner with a fixed learned score vector is a measurable read of the finite error vector. The proof retains the exact priority tie regions.

      def MindFormal.Quantal.response {A : Type u_1} [Fintype A] [Nonempty A] [LinearOrder A] (μ : MeasureTheory.Measure (A → ℝ)) (u : A → ℝ) (a : A) :

      The specified random-utility response, including its error law.

      Equations
      Instances For
        theorem MindFormal.Quantal.response_probability {A : Type u_1} [Fintype A] [Nonempty A] [LinearOrder A] (μ : MeasureTheory.Measure (A → ℝ)) [MeasureTheory.IsProbabilityMeasure μ] (u : A → ℝ) :
        (∀ (a : A), 0 ≤ response μ u a) ∧ ∑ a : A, response μ u a = 1

        The constructed finite response is a probability, including all tie regions under its fixed priority.

        theorem MindFormal.Quantal.contrast_gain_nonneg {A : Type u_1} [Fintype A] [Nonempty A] [LinearOrder A] (u v e : A → ℝ) :
        0 ≤ u (winner fun (a : A) => u a + e a) - v (winner fun (a : A) => u a + e a) - (u (winner fun (a : A) => v a + e a) - v (winner fun (a : A) => v a + e a))

        Coupled maximizers have nonnegative score-contrast gain pointwise.

        theorem MindFormal.Quantal.switch_region {A : Type u_1} [Fintype A] [Nonempty A] [LinearOrder A] (u v : A → ℝ) {a b : A} (gap : u b - v b < u a - v a) :
        ∃ (S : Set (A → ℝ)), IsOpen S ∧ S.Nonempty ∧ ∀ e ∈ S, (winner fun (c : A) => u c + e c) = a ∧ (winner fun (c : A) => v c + e c) = b

        A strict increase in one contrast gives a nonempty open error region where the coupled winners differ in that direction.

        theorem MindFormal.Quantal.response_identifies {A : Type u_1} [Fintype A] [Nonempty A] [LinearOrder A] (μ : MeasureTheory.Measure (A → ℝ)) [MeasureTheory.IsProbabilityMeasure μ] [μ.IsOpenPosMeasure] (u v : A → ℝ) :
        response μ u = response μ v ↔ ∀ (a b : A), u a - u b = v a - v b

        Any full-support finite error distribution identifies every score contrast. A coupling gives nonnegative contrast gain everywhere and strictly positive gain on an open switching region when a contrast differs. Equality of choice laws contradicts that gain. No convexity or identification premise is supplied, and exact ties retain the declared priority.

        theorem MindFormal.Quantal.gaussian_response_identifies {A : Type u_1} [Fintype A] [Nonempty A] [LinearOrder A] (variance : A → NNReal) (positive : ∀ (a : A), 0 < variance a) (u v : A → ℝ) :
        response (MeasureTheory.Measure.pi fun (a : A) => ProbabilityTheory.gaussianReal 0 (variance a)) u = response (MeasureTheory.Measure.pi fun (a : A) => ProbabilityTheory.gaussianReal 0 (variance a)) v ↔ ∀ (a b : A), u a - u b = v a - v b

        OM2's Gaussian quantal identification on every finite nonempty menu. The primitive errors are independent centered Gaussians with a specified positive variance for each action. Their joint full support is proved from Gaussian/Lebesgue equivalence, so the response-identification step is closed.