MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch17.EquilibriumTests

def MindFormal.Games.gamePayoff {A : Type u_1} {C : Type u_2} [Fintype A] [Fintype C] [DecidableEq A] (p : A → C → ℝ) (u : A → (A → C) → ℝ) (i : A) (a : C) :

Expected payoff against the actual independent opponents. Summing over the whole product also integrates the irrelevant own coordinate to one.

Equations
Instances For
    def MindFormal.Games.ProductLaw {A : Type u_1} {C : Type u_2} [Fintype A] (μ : (A → C) → ℝ) (p : A → C → ℝ) :

    This test is applied to the joint native free-act law, with absence included in an enlarged game or separately proved to have zero mass.

    Equations
    Instances For
      def MindFormal.Games.NashTest {A : Type u_1} {C : Type u_2} [Fintype A] [Fintype C] (μ : (A → C) → ℝ) (p payoff : A → C → ℝ) :

      The expected pure payoffs must come from the declared game against the actual opponents; an acquired value vector is not substituted here.

      Equations
      Instances For
        theorem MindFormal.Games.nash_iff_zero_regret {A : Type u_1} {C : Type u_2} [Fintype A] [Fintype C] [Nonempty C] (μ : (A → C) → ℝ) (p payoff : A → C → ℝ) (hp : ∀ (i : A), FiniteDecision.Probability (p i)) :
        NashTest μ p payoff ↔ ProductLaw μ p ∧ ∀ (i : A), Finset.univ.sup' ⋯ (payoff i) - FiniteDecision.mean (p i) (payoff i) = 0

        OM2.2: product play and zero payoff regret are precisely the Nash test, because every mixed deviation is a convex combination of pure ones.

        theorem MindFormal.Games.quantal_response_calibration {A : Type u_1} {C : Type u_2} (response : A → (C → ℝ) → C → ℝ) (p learned payoff : A → C → ℝ) (learnedResponse : ∀ (i : A), p i = response i (learned i)) (responseIdentifies : ∀ (i : A) (u v : C → ℝ), response i u = response i v ↔ ∀ (a b : C), u a - u b = v a - v b) :
        (∀ (i : A), p i = response i (payoff i)) ↔ ∀ (i : A) (a b : C), learned i a - learned i b = payoff i a - payoff i b

        OM2.3's exact contrast calibration for a specified response family. The named response-identification hypothesis is where Gaussian strict convexity, or the corresponding theorem for another family, is needed.

        theorem MindFormal.Games.game_nash_iff_zero_regret {A : Type u_1} {C : Type u_2} [Fintype A] [Fintype C] [Nonempty C] [DecidableEq A] (μ : (A → C) → ℝ) (p : A → C → ℝ) (u : A → (A → C) → ℝ) (hp : ∀ (i : A), FiniteDecision.Probability (p i)) :
        NashTest μ p (gamePayoff p u) ↔ ProductLaw μ p ∧ ∀ (i : A), Finset.univ.sup' ⋯ (gamePayoff p u i) - FiniteDecision.mean (p i) (gamePayoff p u i) = 0

        The Nash criterion with expected payoffs computed from the declared game and actual opponents, rather than a supplied learned value array.

        theorem MindFormal.Games.self_confirmation_feedback {C : Type u_2} [Fintype C] {V : Type u_3} {W : Type u_4} [AddCommGroup V] [Module ℝ V] [AddCommGroup W] [Module ℝ W] (L : V →ₗ[ℝ] W) (belief actual : V) (p : C → ℝ) (payoff : V → C → ℝ) :
        FiniteDecision.BestReply p (payoff belief) ∧ L belief = L actual ↔ FiniteDecision.BestReply p (payoff belief) ∧ belief - actual ∈ L.ker

        Self-confirmation is payoff optimality under a belief whose declared linear feedback matches reality. The unobserved freedom is precisely the feedback kernel; it is not an assertion of correct off-path beliefs.

        noncomputable def MindFormal.Games.obedienceGain {A : Type u_1} {C : Type u_2} [Fintype A] [Fintype C] [DecidableEq A] (μ : (A → C) → ℝ) (u : A → (A → C) → ℝ) (i : A) (a b : C) :

        An actual recommendation's unnormalized obedience payoff, so a zero-probability recommendation requires no division.

        Equations
        Instances For
          theorem MindFormal.Games.correlated_obedience_iff {A : Type u_1} {C : Type u_2} [Fintype A] [Fintype C] [DecidableEq A] (μ : (A → C) → ℝ) (u : A → (A → C) → ℝ) (i : A) :
          (∀ (a b : C), 0 ≤ obedienceGain μ u i a b) ↔ ∀ (f : C → C), 0 ≤ ∑ a : C, obedienceGain μ u i a (f a)

          OM2.6: all recommendation-conditioned inequalities suffice for every deterministic deviation, and each inequality is recovered by changing just that recommendation. The actual joint law need not be a product.

          theorem MindFormal.Games.nash_current_segment {A : Type u_1} {C : Type u_2} [Fintype A] [Fintype C] [Nonempty C] [Nonempty A] {H : ℝ} {N n : A → ℕ} {T : A → Type u_3} {Λ : A → Type u_4} [(a : A) → Fintype (T a)] [(a : A) → Fintype (Λ a)] {Memory : Type u_5} {Source : Type u_6} {R : Type u_7} [MeasurableSpace Memory] [MeasurableSpace Source] [Fintype R] [MeasurableSpace R] [MeasurableSingletonClass R] [DecidableEq C] [DecidableEq A] (program : CurrentSegmentProgram A H N n T Λ Memory Source) (ν : MeasureTheory.Measure Source) [MeasureTheory.IsProbabilityMeasure ν] (π : MeasureTheory.Measure program.State) [MeasureTheory.IsProbabilityMeasure π] (mark : program.Record → R) (hm : Measurable mark) (free : R → Bool) (act : R → A → C) (p : A → C → ℝ) (u : A → (A → C) → ℝ) (hp : ∀ (i : A), FiniteDecision.Probability (p i)) :
          NashTest ((program.markedLaw ν π mark hm).price free act) p (gamePayoff p u) ↔ ProductLaw ((program.markedLaw ν π mark hm).price free act) p ∧ ∀ (i : A), Finset.univ.sup' ⋯ (gamePayoff p u i) - FiniteDecision.mean (p i) (gamePayoff p u i) = 0

          OM2's Nash criterion applied to the joint free-act law actually read from the current-state segment. Product structure remains a test, never an assumed consequence of settling. Payoffs use the declared game.

          theorem MindFormal.Games.obedience_current_segment {A : Type u_1} {C : Type u_2} [Fintype A] [Fintype C] [Nonempty A] {H : ℝ} {N n : A → ℕ} {T : A → Type u_3} {Λ : A → Type u_4} [(a : A) → Fintype (T a)] [(a : A) → Fintype (Λ a)] {Memory : Type u_5} {Source : Type u_6} {R : Type u_7} [MeasurableSpace Memory] [MeasurableSpace Source] [Fintype R] [MeasurableSpace R] [MeasurableSingletonClass R] [DecidableEq C] [DecidableEq A] (program : CurrentSegmentProgram A H N n T Λ Memory Source) (ν : MeasureTheory.Measure Source) [MeasureTheory.IsProbabilityMeasure ν] (π : MeasureTheory.Measure program.State) [MeasureTheory.IsProbabilityMeasure π] (mark : program.Record → R) (hm : Measurable mark) (free : R → Bool) (act : R → A → C) (u : A → (A → C) → ℝ) (i : A) :
          (∀ (a b : C), 0 ≤ obedienceGain ((program.markedLaw ν π mark hm).price free act) u i a b) ↔ ∀ (f : C → C), 0 ≤ ∑ a : C, obedienceGain ((program.markedLaw ν π mark hm).price free act) u i a (f a)

          OM2's correlated obedience test on that same constructed joint law. Every deterministic recommendation-dependent deviation is covered; no independence or automatic equilibrium conclusion is introduced. Positive free mass is needed to interpret the normalized law as a probability, as proved by Settled.free_read_current_segment.