theorem
MindFormal.Prospect.active_quotient_derivative
{z p : ℝ → ℝ}
{dz dp g : ℝ}
(hz : HasDerivAt z dz 0)
(hp : HasDerivAt p dp 0)
(hp0 : 0 < p 0)
(ha : g < z 0 / p 0)
:
The actual clipped target agrees locally with its positive branch.
theorem
MindFormal.Prospect.support_directions
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
{J : Type u_3}
[Fintype Λ]
(I : EquationInstance N n T Λ J)
(u q : Fin N → ℝ)
(s : MindState (Fin N) n T Λ)
(i : Fin N)
(hactive : I.activity.g < assembledInputs I.drift u q s i / pool I.activity.σ (assembledInputs I.drift u q s))
:
have z := assembledInputs I.drift u q s;
have P := pool I.activity.σ z;
HasDerivAt
(fun (r : ℝ) => normalizedTarget I.activity.σ I.activity.g (fun (k : Fin N) => z k + if k = i then r else 0) i)
((P - z i) / P ^ 2) 0 ∧ 0 < (P - z i) / P ^ 2 ∧ (∀ (j : Fin N),
j ≠ i →
HasDerivAt
(fun (r : ℝ) =>
normalizedTarget I.activity.σ I.activity.g (fun (k : Fin N) => z k + if k = j then r else 0) i)
(-z i / P ^ 2) 0) ∧ -z i / P ^ 2 < 0
Extra own support changes both numerator and the full pool; extra rival support changes only the full pool. These are local branch derivatives.