MindFormal v1.0.0One Mind

MindFormal.Equations.CompanionFoundations.Query

def MindFormal.CompanionFoundations.raw {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 Λ) :
C → ℝ
Equations
  • One or more equations did not get rendered due to their size.
Instances For
    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) :
    raw d u (Function.update q i 1) s i - raw d u (Function.update q i 0) s i = d.drive (u i) 1 (mindValue s i) - d.drive (u i) 0 (mindValue s i)
    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.