MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch17.ReplayAccounting

noncomputable def MindFormal.Replay.eligibility {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (i j : Fin N) (t : ℝ) :
Equations
Instances For
    noncomputable def MindFormal.Replay.surprise {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (ell : T → Fin n → ℝ) (t : ℝ) :
    Equations
    Instances For
      noncomputable def MindFormal.Replay.values {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (ell : T → Fin n → ℝ) (i j : Fin N) (t : ℝ) :
      Equations
      Instances For
        noncomputable def MindFormal.Replay.score {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (χ : ℝ) (ell : T → Fin n → ℝ) (i j : Fin N) (t : ℝ) :
        Equations
        Instances For
          theorem MindFormal.Replay.credit_at_integrable {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (ell : T → Fin n → ℝ) (k : Fin N) {H : ℝ} (hH : 0 ≤ H) :
          IntervalIntegrable (fun (t : ℝ) => G.p t k * surprise G ell t) MeasureTheory.volume 0 H
          theorem MindFormal.Replay.credit_integrable {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (ell : T → Fin n → ℝ) (i j : Fin N) {H : ℝ} (hH : 0 ≤ H) :
          theorem MindFormal.Replay.value_accounting {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (ell : T → Fin n → ℝ) (i j : Fin N) {H : ℝ} (hH : 0 ≤ H) :
          values G ell i j H = (values G ell i j 0 + ∫ (t : ℝ) in 0..H, eligibility G i j t * surprise G ell t) + Transactions.ownershipNoise G ell i j H

          III integrated on the complete history, including the actual own innovations.

          theorem MindFormal.Replay.score_accounting {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {Ω : Type u_3} {J : Type u_4} [MeasurableSpace Ω] [Fintype J] (E : StateExperiment Ω N n T Λ J) (ω : Ω) (χ : ℝ) (ell : T → Fin n → ℝ) (i j : Fin N) {H : ℝ} (hH : 0 ≤ H) :
          have G := E.supportHistory ω; score G χ ell i j H = (χ * (expConv G.data.activity.ν (G.x 0 i) (fun (t : ℝ) => G.target i t - E.supportInnovation ω i t) H - expConv G.data.activity.ν (G.x 0 j) (fun (t : ℝ) => G.target j t - E.supportInnovation ω j t) H) + values G ell i j 0 + ∫ (t : ℝ) in 0..H, eligibility G i j t * surprise G ell t) + Transactions.ownershipNoise G ell i j H + χ * (E.supportInnovation ω i H - E.supportInnovation ω j H)

          SA1, with the signed innovation/regulator convolution written by parts. This representation does not differentiate the Brownian path.

          noncomputable def MindFormal.Replay.scoreExpansion {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {Ω : Type u_3} {J : Type u_4} [MeasurableSpace Ω] [Fintype J] (E : StateExperiment Ω N n T Λ J) (ω : Ω) (χ : ℝ) (ell : T → Fin n → ℝ) (i j : Fin N) (H : ℝ) :

          The complete right side of SA1, using the regulator-inclusive innovation's ordinary integration-by-parts form. This is a scalar read, not a certificate or an additional state/process interface.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            theorem MindFormal.Replay.paired_score_accounting {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {Ω : Type u_3} {J : Type u_4} [MeasurableSpace Ω] [Fintype J] (E : Bool → StateExperiment Ω N n T Λ J) (ω : Ω) (χ : ℝ) (ell : T → Fin n → ℝ) (i j : Fin N) {H : ℝ} (hH : 0 ≤ H) :
            (∀ (b : Bool), score ((E b).supportHistory ω) χ ell i j H = scoreExpansion (E b) ω χ ell i j H) ∧ score ((E true).supportHistory ω) χ ell i j H - score ((E false).supportHistory ω) χ ell i j H = scoreExpansion (E true) ω χ ell i j H - scoreExpansion (E false) ω χ ell i j H
            theorem MindFormal.Replay.receipt {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G F : PhysicalGlobalData N n T Λ) (ell : T → Fin n → ℝ) (i j : Fin N) {H : ℝ} (hH : 0 ≤ H) :
            values G ell i j H - values F ell i j H = (values G ell i j 0 - values F ell i j 0 + ∫ (t : ℝ) in 0..H, (eligibility G i j t - eligibility F i j t) * surprise F ell t + eligibility G i j t * (surprise G ell t - surprise F ell t)) + (Transactions.ownershipNoise G ell i j H - Transactions.ownershipNoise F ell i j H)

            SA3 pays both changed eligibility and changed surprise response.

            theorem MindFormal.Replay.receipt_score {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G F : PhysicalGlobalData N n T Λ) (χ : ℝ) (ell : T → Fin n → ℝ) (i j : Fin N) {H m : ℝ} (hH : 0 ≤ H) (credit : m ≤ (∫ (t : ℝ) in 0..H, eligibility G i j t * surprise G ell t) - ∫ (t : ℝ) in 0..H, eligibility F i j t * surprise F ell t) (opposition : |χ * (G.x H i - G.x H j - (F.x H i - F.x H j)) + (values G ell i j 0 - values F ell i j 0) + (Transactions.ownershipNoise G ell i j H - Transactions.ownershipNoise F ell i j H)| < m) :
            score F χ ell i j H < score G χ ell i j H

            The complete receipt contribution, together with its opposing terms, has a strict sign only after the latter have been paid.

            theorem MindFormal.Replay.receipt_score_iff {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G F : PhysicalGlobalData N n T Λ) (χ : ℝ) (ell : T → Fin n → ℝ) (i j : Fin N) {H : ℝ} (hH : 0 ≤ H) :
            score F χ ell i j H < score G χ ell i j H ↔ 0 < (χ * (G.x H i - G.x H j - (F.x H i - F.x H j)) + (values G ell i j 0 - values F ell i j 0) + ∫ (t : ℝ) in 0..H, (eligibility G i j t - eligibility F i j t) * surprise F ell t + eligibility G i j t * (surprise G ell t - surprise F ell t)) + (Transactions.ownershipNoise G ell i j H - Transactions.ownershipNoise F ell i j H)

            The receipt read moves toward the first action exactly when the complete two-term credit plus all remaining contributions is positive.