Full-coefficient adapters for TR1.5--6 and TR1.21--23. All coordinates, the complete pool, both relation writers and the moving surprise remain.
noncomputable def
MindFormal.A630TwoRaces.gainAt
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
[Fintype Λ]
(d : MindDriftData (Fin N) n T Λ)
(u : Fin N → ℝ)
(s : MindState (Fin N) n T Λ)
:
Equations
- MindFormal.A630TwoRaces.gainAt d u s = d.gain fun (a : T) (b : Fin n) => |MindFormal.assembledResidual d u s a b|
Instances For
theorem
MindFormal.A630TwoRaces.onset_writers
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
[Fintype Λ]
(d : MindDriftData (Fin N) n T Λ)
(u q q' : Fin N → ℝ)
(s : MindState (Fin N) n T Λ)
:
(∀ (i j : Fin N),
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) * (d.drive (u i) (q' i) (mindValue s i) - d.drive (u i) (q i) (mindValue s i)) * gainAt d u s) ∧ ∀ (i : Fin N) (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))))
theorem
MindFormal.A630TwoRaces.fixed_state_focus
{N : ℕ}
{σ g : ℝ}
(hσ : 0 < σ)
(K : Fin N → ℝ)
(hK : ∀ (j : Fin N), 0 ≤ K j)
(i : Fin N)
{d : ℝ}
(hd : 0 ≤ d)
:
have K' := Function.update K i (K i + d);
pool σ K' = pool σ K + d ∧ (0 ≤ normalizedTarget σ g K' i - normalizedTarget σ g K i ∧ normalizedTarget σ g K' i - normalizedTarget σ g K i ≤ d * (pool σ K - K i) / (pool σ K * (pool σ K + d))) ∧ ∀ (j : Fin N),
j ≠ i →
-K j * d / (pool σ K * (pool σ K + d)) ≤ normalizedTarget σ g K' j - normalizedTarget σ g K j ∧ normalizedTarget σ g K' j - normalizedTarget σ g K j ≤ 0
theorem
MindFormal.A630TwoRaces.full_drift_balance
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
{J : Type u_3}
[Fintype Λ]
[Fintype T]
{I : EquationInstance N n T Λ J}
(A : GroupsWorld.DeterministicAdmission I)
(u q : Fin N → ℝ)
(s : MindState (Fin N) n T Λ)
:
assembledDrift I.drift u q s = 0 ↔ (∀ (i : Fin N), mindActivity s i = normalizedTarget I.activity.σ I.activity.g (assembledInputs I.drift u q s) i) ∧ (∀ (i : Fin N) (l : Λ), mindTrace s i l = mindActivity s i) ∧ (∀ (i j : Fin N), rowBracket I.drift u q s i j = 0) ∧ ∀ (i : Fin N) (b : Fin n) (a : T),
I.presence (mindTrace s i) * I.response
(fun (b' : Fin n) =>
I.drift.reward u b' - (∑ j : Fin N, I.presence (mindTrace s j) * mindValue s j b' a) / I.τ a)
b = 0
theorem
MindFormal.A630TwoRaces.positive_relation_row
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
{J : Type u_3}
[Fintype Λ]
[Fintype T]
{I : EquationInstance N n T Λ J}
(A : GroupsWorld.DeterministicAdmission I)
(u q : Fin N → ℝ)
(s : MindState (Fin N) n T Λ)
(hs : PhysicalMindState s)
(i : Fin N)
(hi : 0 < mindActivity s i)
:
theorem
MindFormal.A630TwoRaces.injective_value_balance
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
{J : Type u_3}
[Fintype Λ]
[Fintype T]
{I : EquationInstance N n T Λ J}
(A : GroupsWorld.DeterministicAdmission I)
(s : MindState (Fin N) n T Λ)
(a : T)
(r : Fin n → ℝ)
(hp : ∃ (i : Fin N), 0 < I.presence (mindTrace s i))
(hk : Function.Injective I.response)
:
theorem
MindFormal.A630TwoRaces.value_writer_sign
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
{J : Type u_3}
[Fintype Λ]
[Fintype T]
{I : EquationInstance N n T Λ J}
(A : GroupsWorld.DeterministicAdmission I)
(u q : Fin N → ℝ)
(s : MindState (Fin N) n T Λ)
(i : Fin N)
(b : Fin n)
(a : T)
(hi : 0 < I.presence (mindTrace s i))
:
theorem
MindFormal.A630TwoRaces.zero_relation_row
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
{J : Type u_3}
[Fintype Λ]
[Fintype T]
{I : EquationInstance N n T Λ J}
(A : GroupsWorld.DeterministicAdmission I)
(u q : Fin N → ℝ)
(s : MindState (Fin N) n T Λ)
(i : Fin N)
(hi : mindActivity s i = 0)
:
theorem
MindFormal.A630TwoRaces.native_value_balance
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
{J : Type u_3}
[Fintype Λ]
[Fintype T]
{I : EquationInstance N n T Λ J}
(A : GroupsWorld.DeterministicAdmission I)
(u q : Fin N → ℝ)
(s : MindState (Fin N) n T Λ)
(hr : ∀ (i : Fin N) (l : Λ), mindTrace s i l = mindActivity s i)
(a : T)
(hp : ∃ (i : Fin N), 0 < I.presence (mindTrace s i))
(hk : Function.Injective I.response)
: