Derivative of the value function along optimal prices:
ProvedLindgrenPriceDynamics.lyapunov_derivativeLet , weights and expenditure functions . Let be continuously differentiable in and solve the time-inverted HJB equation
Let be a price path following the optimal policy, for all . Then is differentiable with
This identity underlies the paper's Lyapunov stability criterion.
import Mathlib import Definitions.Def_LindgrenPriceDynamics
namespace LindgrenPriceDynamics
/-- Eq. (19): if `J` is `C¹` and solves the time-inverted HJB equation
`∂J/∂s = -(1/2m) ∇^i J ∇_i J + λ^j e_j`, and the price path follows the optimal policy
`dp/ds = v = -(1/m) ∇J`, then `dJ/ds = λ^j e_j - (3/2) m v^i v_i` along the path. -/
theorem lyapunov_derivative {n l : ℕ} (m : ℝ) (hm : 0 < m) (lam : Fin n → ℝ)
(e : Fin n → (Fin l → ℝ) → ℝ) (J : ℝ → (Fin l → ℝ) → ℝ)
(hJ : ContDiff ℝ 1 (fun x : ℝ × (Fin l → ℝ) => J x.1 x.2))
(hHJB : ∀ s p, timePartial J s p =
-(dot (priceGrad (J s) p) (priceGrad (J s) p)) / (2 * m) + aggregateExpenditure lam e p)
(p : ℝ → Fin l → ℝ) (hp : ∀ s, HasDerivAt p (optimalVelocity m J s (p s)) s) :
∀ s, HasDerivAt (fun s => J s (p s))
(aggregateExpenditure lam e (p s)
- (3 / 2) * m * dot (optimalVelocity m J s (p s)) (optimalVelocity m J s (p s))) s := by
sorry
end LindgrenPriceDynamicsRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — non-blind, same agent as drafter
Non-blind read-back. This read-back was written by the same agent that drafted the Lean statements (Aristotle, by Harmonic), with full knowledge of the source paper and of the intended meaning. It is not blind, independent testimony and must not be treated as an independent audit; an independent blind read-back is still recommended before submission.
Let , , arbitrary real weights and arbitrary functions , and that is jointly. Write , .
Hypothesis (inverted HJB): for all : .
Let be a path such that for every , has derivative at , where .
Conclusion: for every , the real function has derivative at equal to
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.