MindFormal v1.0.0One Mind

MindFormal.Run.FiniteStageLaw

def MindFormal.MarkedMass.cell {R : Type u_1} {B : Type u_2} [DecidableEq B] (free : R → Bool) (act : R → B) (b : B) :
R → Bool

Restrict the same completed mark law to a free encounter with the specified act profile. Zero-mass profiles are retained.

Equations
Instances For
    theorem MindFormal.MarkedMass.cell_nonnegative {R : Type u_1} {B : Type u_2} [Fintype R] [DecidableEq B] (M : MarkedMass R) (free : R → Bool) (act : R → B) (b : B) :
    0 ≤ M.accepted (cell free act b)

    Every free act cell has nonnegative mass in the declared finite law.

    noncomputable def MindFormal.MarkedMass.recordChannel {R : Type u_1} {B : Type u_2} {D : Type u_3} [Fintype R] [DecidableEq B] [DecidableEq D] (M : MarkedMass R) (free : R → Bool) (act : R → B) (record : R → D) (nullRecord : D) (b : B) (d : D) :

    A finite conditional record law from the same joint mark law. The declared null record specifies its version on null conditioning cells; it is not evidence about an unobserved counterfactual experiment.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      theorem MindFormal.MarkedMass.recordChannel_probability {R : Type u_1} {B : Type u_2} {D : Type u_3} [Fintype R] [Fintype D] [DecidableEq B] [DecidableEq D] (M : MarkedMass R) (free : R → Bool) (act : R → B) (record : R → D) (nullRecord : D) (b : B) :
      FiniteDecision.Probability (M.recordChannel free act record nullRecord b)

      Conditional records form a probability law in every cell, including the declared Dirac version when the conditioning cell has zero mass.

      theorem MindFormal.MarkedMass.recordChannel_joint {R : Type u_1} {B : Type u_2} {D : Type u_3} [Fintype R] [DecidableEq B] [DecidableEq D] (M : MarkedMass R) (free : R → Bool) (act : R → B) (record : R → D) (nullRecord : D) (b : B) (d : D) :
      M.price free (fun (r : R) => (act r, record r)) (b, d) = M.price free act b * M.recordChannel free act record nullRecord b d

      The channel disintegrates the free joint act/record law, including null act cells. Thus acts and feedback are not supplied independently.

      structure MindFormal.StageInstrument (R : Type u_1) (A : Type u_2) (C : Type u_3) (D : Type u_4) :
      Type (max (max (max u_1 u_2) u_3) u_4)

      OM2's finite stage instrument. C is the declared full outcome alphabet; the native application uses Option C so no-act remains present. Records and acts are reads of one mark, with a declared null-cell version.

      • free : R → Bool
      • act : R → A → C
      • record : R → A → D
      • nullRecord : D
      Instances For
        structure MindFormal.StageFlow (R : Type u_1) (A : Type u_2) (C : Type u_3) (D : Type u_4) [Fintype R] :
        Type (max (max (max u_1 u_2) u_3) u_4)

        A free stage flow constructed from a single joint completed law. Positive free mass is precisely OM1.1's normalization hold.

        Instances For
          noncomputable def MindFormal.StageFlow.joint {R : Type u_1} {A : Type u_2} {C : Type u_3} {D : Type u_4} [Fintype R] [Fintype A] [DecidableEq C] (S : StageFlow R A C D) :
          (A → C) → ℝ

          The free joint-act law retains dependence between players.

          Equations
          Instances For
            noncomputable def MindFormal.StageFlow.marginal {R : Type u_1} {A : Type u_2} {C : Type u_3} {D : Type u_4} [Fintype R] [DecidableEq C] (S : StageFlow R A C D) (i : A) :
            C → ℝ

            Actual marginal act probabilities, not an externally chosen profile.

            Equations
            Instances For
              theorem MindFormal.StageFlow.joint_probability {R : Type u_1} {A : Type u_2} {C : Type u_3} {D : Type u_4} [Fintype R] [Fintype A] [Fintype C] [DecidableEq A] [DecidableEq C] (S : StageFlow R A C D) :

              Positive free mass normalizes the actual joint-act law.

              theorem MindFormal.StageFlow.marginal_probability {R : Type u_1} {A : Type u_2} {C : Type u_3} {D : Type u_4} [Fintype R] [Fintype C] [DecidableEq C] (S : StageFlow R A C D) (i : A) :

              Every actual marginal is normalized by that same positive free mass.

              noncomputable def MindFormal.StageFlow.channel {R : Type u_1} {A : Type u_2} {C : Type u_3} {D : Type u_4} [Fintype R] [Fintype A] [DecidableEq C] [DecidableEq D] (S : StageFlow R A C D) (i : A) :
              (A → C) → D → ℝ

              Conditional player record given the complete act profile, from the same free marked flow used for joint acts.

              Equations
              Instances For
                theorem MindFormal.StageFlow.channel_probability {R : Type u_1} {A : Type u_2} {C : Type u_3} {D : Type u_4} [Fintype R] [Fintype A] [Fintype D] [DecidableEq C] [DecidableEq D] (S : StageFlow R A C D) (i : A) (s : A → C) :

                Every player channel row is a probability law, with its declared version on null act profiles.

                theorem MindFormal.StageFlow.channel_joint {R : Type u_1} {A : Type u_2} {C : Type u_3} {D : Type u_4} [Fintype R] [Fintype A] [DecidableEq C] [DecidableEq D] (S : StageFlow R A C D) (i : A) (s : A → C) (d : D) :
                S.marks.price S.instrument.free (fun (r : R) => (S.instrument.act r, S.instrument.record r i)) (s, d) = S.joint s * S.channel i s d

                The actual free joint act/record mass is the actual act mass times the constructed conditional record row.

                @[reducible, inline]
                abbrev MindFormal.StageFlow.Opponents {A : Type u_2} {C : Type u_3} (i : A) :
                Type (max u_3 u_2)

                Opponents' profiles have no redundant own-action coordinate.

                Equations
                Instances For
                  def MindFormal.StageFlow.insert {A : Type u_2} {C : Type u_3} [DecidableEq A] (i : A) (a : C) (s : Opponents i) :
                  A → C

                  Insert the declared own act in an opponents' profile.

                  Equations
                  Instances For
                    noncomputable def MindFormal.StageFlow.feedback {R : Type u_1} {A : Type u_2} {C : Type u_3} {D : Type u_4} [Fintype R] [Fintype A] [Fintype C] [DecidableEq A] [DecidableEq C] [DecidableEq D] (S : StageFlow R A C D) (i : A) (a : C) :

                    The stage-game feedback operator L for player i and own act a. Its rows are the constructed conditional record probabilities.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      noncomputable def MindFormal.StageFlow.opponents {R : Type u_1} {A : Type u_2} {C : Type u_3} {D : Type u_4} [Fintype R] [Fintype A] [DecidableEq A] [DecidableEq C] (S : StageFlow R A C D) (i : A) (s : Opponents i) :

                      Independent opponents under the actual marginal profile, used only inside tests that separately require product joint play.

                      Equations
                      Instances For
                        theorem MindFormal.StageFlow.opponents_probability {R : Type u_1} {A : Type u_2} {C : Type u_3} {D : Type u_4} [Fintype R] [Fintype A] [Fintype C] [DecidableEq A] [DecidableEq C] (S : StageFlow R A C D) (i : A) :

                        The product of actual opponent marginals is a probability law; product play is separately required by the tests that use it.

                        theorem MindFormal.StageFlow.feedback_iff {R : Type u_1} {A : Type u_2} {C : Type u_3} {D : Type u_4} [Fintype R] [Fintype A] [Fintype C] [DecidableEq A] [DecidableEq C] [DecidableEq D] (S : StageFlow R A C D) (i : A) (a : C) (belief : Opponents i → ℝ) :
                        (S.feedback i a) belief = (S.feedback i a) (S.opponents i) ↔ belief - S.opponents i ∈ (S.feedback i a).ker

                        OM2.5 on the native finite feedback channel, with its actual opponents' law. Equality of predicted records is exactly the kernel fiber.