theorem
MindFormal.CompanionFoundations.raw_attention
{C : Type u_1}
{T : Type u_2}
{Λ : Type u_3}
{n : ℕ}
[Fintype C]
(d : MindDriftData C n T Λ)
(u q : C → ℝ)
(s : MindState C n T Λ)
(i : C)
:
theorem
MindFormal.CompanionFoundations.attention_field
{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)
:
have J₀ := assembledInputs d u (Function.update q i 0) s;
have J₁ := assembledInputs d u (Function.update q i 1) s;
have b := J₁ i - J₀ i;
(∀ (j : C), J₁ j = J₀ j + if j = i then b else 0) ∧ pool d.activity.σ J₁ = pool d.activity.σ J₀ + b ∧ ∀ (j : C),
assembledDrift d u (Function.update q i 1) s (Sum.inr (Sum.inl j)) = d.activity.ν * (max ((J₀ j + if j = i then b else 0) / (pool d.activity.σ J₀ + b) - d.activity.g) 0 - mindActivity s j)
Changing the one declared binary attention coordinate changes only its raw input. If its transformed input changes by b, the full pool changes by b; the numerator and denominator remain inside I's positive-part cutoff.