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
- MindFormal.CompanionFoundations.drive d u q s i = d.drive (u i) (q i) (MindFormal.mindValue s i)
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
- MindFormal.CompanionFoundations.prediction s i = ∑ j : C, MindFormal.mindRelation s i j * MindFormal.mindActivity s j
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
- MindFormal.CompanionFoundations.gain d u s = d.gain fun (a : T) (b : Fin n) => |MindFormal.assembledResidual d u s a b|
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)
:
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)
:
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)
:
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.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₁)
:
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.