MindFormal v1.0.0One Mind

MindFormal.Equations.CompanionFoundations.Coefficients

The complete II/III/D4 coefficients. All comparisons in this file are held-state comparisons, not assertions that a native trajectory is clamped to that state.

def MindFormal.CompanionFoundations.drive {C : Type u_1} {T : Type u_2} {Λ : Type u_3} {n : ℕ} (d : MindDriftData C n T Λ) (u q : C → ℝ) (s : MindState C n T Λ) (i : C) :
Equations
Instances For
    def MindFormal.CompanionFoundations.prediction {C : Type u_1} {T : Type u_2} {Λ : Type u_3} {n : ℕ} [Fintype C] (s : MindState C n T Λ) (i : C) :
    Equations
    Instances For
      noncomputable def MindFormal.CompanionFoundations.gain {C : Type u_1} {T : Type u_2} {Λ : Type u_3} {n : ℕ} [Fintype C] [Fintype Λ] (d : MindDriftData C n T Λ) (u : C → ℝ) (s : MindState C n T Λ) :
      Equations
      Instances For
        theorem MindFormal.CompanionFoundations.relation_drift {C : Type u_1} {T : Type u_2} {Λ : Type u_3} {n : ℕ} [Fintype C] [Fintype Λ] (d : MindDriftData C n T Λ) (u q : C → ℝ) (s : MindState C n T Λ) (i j : C) :
        assembledDrift d u q s (Sum.inl (i, j)) = gain d u s * ((1 - d.β) * d.presence (mindTrace s j) * (drive d u q s i - prediction s i) + d.β * mindActivity s i * (d.presence (mindTrace s j) - mindRelation s i j))
        theorem MindFormal.CompanionFoundations.value_drift {C : Type u_1} {T : Type u_2} {Λ : Type u_3} {n : ℕ} [Fintype C] [Fintype Λ] (d : MindDriftData C n T Λ) (u q : C → ℝ) (s : MindState C n T Λ) (i : C) (b : Fin n) (a : T) :
        theorem MindFormal.CompanionFoundations.trace_drift {C : Type u_1} {T : Type u_2} {Λ : Type u_3} {n : ℕ} [Fintype C] [Fintype Λ] (d : MindDriftData C n T Λ) (u q : C → ℝ) (s : MindState C n T Λ) (i : C) (l : Λ) :
        theorem MindFormal.CompanionFoundations.zero_receiver_error {C : Type u_1} {T : Type u_2} {Λ : Type u_3} {n : ℕ} [Fintype C] [Fintype Λ] (d : MindDriftData C n T Λ) (u q : C → ℝ) (s : MindState C n T Λ) (i j : C) (he : drive d u q s i = prediction s i) :
        assembledDrift d u q s (Sum.inl (i, j)) = gain d u s * d.β * mindActivity s i * (d.presence (mindTrace s j) - mindRelation s i j)
        theorem MindFormal.CompanionFoundations.attention_relation_difference {C : Type u_1} {T : Type u_2} {Λ : Type u_3} {n : ℕ} [Fintype C] [Fintype Λ] (d : MindDriftData C n T Λ) (u q₀ q₁ : C → ℝ) (s : MindState C n T Λ) (i j : C) :
        assembledDrift d u q₁ s (Sum.inl (i, j)) - assembledDrift d u q₀ s (Sum.inl (i, j)) = (1 - d.β) * d.presence (mindTrace s j) * gain d u s * (drive d u q₁ s i - drive d u q₀ s i)
        theorem MindFormal.CompanionFoundations.attention_value_difference {C : Type u_1} {T : Type u_2} {Λ : Type u_3} {n : ℕ} [Fintype C] [Fintype Λ] (d : MindDriftData C n T Λ) (u q₀ q₁ : C → ℝ) (s : MindState C n T Λ) (i : C) (b : Fin n) (a : T) :
        assembledDrift d u q₁ s (Sum.inr (Sum.inr (Sum.inl (i, b, a)))) - assembledDrift d u q₀ s (Sum.inr (Sum.inr (Sum.inl (i, b, a)))) = 0
        theorem MindFormal.CompanionFoundations.source_residual_difference {C : Type u_1} {T : Type u_2} {Λ : Type u_3} {n : ℕ} [Fintype C] [Fintype Λ] (d : MindDriftData C n T Λ) (u₀ u₁ : C → ℝ) (s : MindState C n T Λ) (a : T) (b : Fin n) :
        assembledResidual d u₁ s a b - assembledResidual d u₀ s a b = d.reward u₁ b - d.reward u₀ b
        theorem MindFormal.CompanionFoundations.source_relation_difference {C : Type u_1} {T : Type u_2} {Λ : Type u_3} {n : ℕ} [Fintype C] [Fintype Λ] (d : MindDriftData C n T Λ) (u₀ u₁ q₀ q₁ : C → ℝ) (s : MindState C n T Λ) (i j : C) :
        assembledDrift d u₁ q₁ s (Sum.inl (i, j)) - assembledDrift d u₀ q₀ s (Sum.inl (i, j)) = (gain d u₁ s - gain d u₀ s) * ((1 - d.β) * d.presence (mindTrace s j) * (drive d u₀ q₀ s i - prediction s i) + d.β * mindActivity s i * (d.presence (mindTrace s j) - mindRelation s i j)) + gain d u₁ s * (1 - d.β) * d.presence (mindTrace s j) * (drive d u₁ q₁ s i - drive d u₀ q₀ s i)
        theorem MindFormal.CompanionFoundations.source_value_difference {C : Type u_1} {T : Type u_2} {Λ : Type u_3} {n : ℕ} [Fintype C] [Fintype Λ] (d : MindDriftData C n T Λ) (u₀ u₁ q₀ q₁ : C → ℝ) (s : MindState C n T Λ) (i : C) (a : T) (b : Fin n) :
        assembledDrift d u₁ q₁ s (Sum.inr (Sum.inr (Sum.inl (i, b, a)))) - assembledDrift d u₀ q₀ s (Sum.inr (Sum.inr (Sum.inl (i, b, a)))) = d.presence (mindTrace s i) * d.η b * (d.response (fun (b : Fin n) => assembledResidual d u₀ s a b + (d.reward u₁ b - d.reward u₀ b)) b - d.response (assembledResidual d u₀ s a) b)
        theorem MindFormal.CompanionFoundations.drive_from_relation {C : Type u_1} {T : Type u_2} {Λ : Type u_3} {n : ℕ} [Fintype C] [Fintype Λ] (d : MindDriftData C n T Λ) (u q : C → ℝ) (s : MindState C n T Λ) (i j : C) (hm : gain d u s ≠ 0) (hβ : 1 - d.β ≠ 0) (hp : d.presence (mindTrace s j) ≠ 0) :
        drive d u q s i = prediction s i + (assembledDrift d u q s (Sum.inl (i, j)) / gain d u s - d.β * mindActivity s i * (d.presence (mindTrace s j) - mindRelation s i j)) / ((1 - d.β) * d.presence (mindTrace s j))
        theorem MindFormal.CompanionFoundations.zero_presence_relation {C : Type u_1} {T : Type u_2} {Λ : Type u_3} {n : ℕ} [Fintype C] [Fintype Λ] (d : MindDriftData C n T Λ) (u q : C → ℝ) (s : MindState C n T Λ) (i j : C) (hp : d.presence (mindTrace s j) = 0) :
        assembledDrift d u q s (Sum.inl (i, j)) = -gain d u s * d.β * mindActivity s i * mindRelation s i j
        theorem MindFormal.CompanionFoundations.drift_of_source_matching {C : Type u_1} {T : Type u_2} {Λ : Type u_3} {n : ℕ} [Fintype C] [Fintype Λ] (d : MindDriftData C n T Λ) (u₀ u₁ q₀ q₁ : C → ℝ) (s : MindState C n T Λ) (he : ∀ (i : C), drive d u₀ q₀ s i = drive d u₁ q₁ s i) (hk : d.reward u₀ = d.reward u₁) :
        assembledDrift d u₀ q₀ s = assembledDrift d u₁ q₁ s

        S4 is an identity of coefficients at a freely quantified state, before either solution is selected. The pool, every horizon and the self-relation are retained.