theorem
MindFormal.CompanionTransactions.primary_residual
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
{J : Type u_3}
[Fintype Λ]
(I : EquationInstance N n T Λ J)
(u₀ u₁ : Fin N → ℝ)
(s : MindState (Fin N) n T Λ)
(same : ∀ i ∈ I.primary, u₀ i = u₁ i)
:
A primary return is a function of the declared primary ports alone. Holding these ports fixed holds the entire shared TD residual fixed, with all horizon, trace-change and discount terms retained.
theorem
MindFormal.CompanionTransactions.primary_zero
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
{J : Type u_3}
[Fintype Λ]
[Fintype T]
[Fintype J]
(I : EquationInstance N n T Λ J)
(hI : InstanceAdmission I)
(u : Fin N → ℝ)
(ports : ∀ i ∈ I.primary, u i = 0)
:
No declared monetary annotation occurs in the primary-delivery map. Zero actual primary input gives zero primary delivery, rather than an automatic zero of the full TD residual.
theorem
MindFormal.CompanionTransactions.unsensed_attention
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
{J : Type u_3}
[Fintype Λ]
[Fintype T]
[Fintype J]
(I : EquationInstance N n T Λ J)
(hI : InstanceAdmission I)
(s : MindState (Fin N) n T Λ)
(u : Fin N → ℝ)
(i j : Fin N)
(unsensed : i ∉ I.sensed)
(off : ∀ k ∉ I.sensed, u k = 0)
:
I.drive (u i) 0 (mindValue s i) < I.drive (u i) 1 (mindValue s i) ∧ assembledDrift I.drift u (fun (x : Fin N) => 1) s (Sum.inl (i, j)) - assembledDrift I.drift u (fun (x : Fin N) => 0) s (Sum.inl (i, j)) = (1 - I.β) * I.presence (mindTrace s j) * CompanionFoundations.gain I.drift u s * (I.drive 0 1 (mindValue s i) - I.drive 0 0 (mindValue s i))
Held-state binary attention comparison, including an unsensed receiver. The complete II writer retains both receiver drive error and binding. Only the attention difference cancels binding; no activity or learning path is held fixed by the equations.