Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

First-order limit of the Hamiltonian integral under a needle variation

Proved
VectorSpaceOpt.needle_hamiltonian_integral_limit

by davidnet · Sep 5, 2026 · Mathlib 0df444a (Lean v4.33.1)

almost-everywherefirst-variationlebesgue-pointneedle-variationoptimal-control

Let t0<t1t_0<t_1t0​<t1​ and let (u0,x0)(u_0,x_0)(u0​,x0​) be an admissible pair on [t0,t1][t_0,t_1][t0​,t1​] with u0u_0u0​ essentially bounded. Assume that the dynamics FFF and the running cost ℓ\ellℓ are jointly continuous and differentiable in the state, with jointly continuous state derivatives FxF_xFx​ and ℓx\ell_xℓx​, and that the derivative paths s↦Fx(x0(s),u0(s))s\mapsto F_x(x_0(s),u_0(s))s↦Fx​(x0​(s),u0​(s)) and s↦ℓx(x0(s),u0(s))s\mapsto\ell_x(x_0(s),u_0(s))s↦ℓx​(x0​(s),u0​(s)) are integrable on [t0,t1][t_0,t_1][t0​,t1​]. Let λ\lambdaλ be continuous on [t0,t1][t_0,t_1][t0​,t1​] and fix a value v∈Rmv\in\mathbb R^mv∈Rm. For t∈(t0,t1)t\in(t_0,t_1)t∈(t0​,t1​) and ε>0\varepsilon>0ε>0 write uεu_\varepsilonuε​ for the right needle

uε(s)={v,s∈[t,t+ε],u0(s),s∉[t,t+ε].u_\varepsilon(s)=\begin{cases}v,&s\in[t,t+\varepsilon],\\ u_0(s),&s\notin[t,t+\varepsilon].\end{cases}uε​(s)={v,u0​(s),​s∈[t,t+ε],s∈/[t,t+ε].​

Then for almost every t∈(t0,t1)t\in(t_0,t_1)t∈(t0​,t1​) the following holds. Whenever (xε)(x_\varepsilon)(xε​) is a family of states and KKK is a constant such that, for all sufficiently small ε>0\varepsilon>0ε>0, the pair (uε,xε)(u_\varepsilon,x_\varepsilon)(uε​,xε​) is admissible and

sup⁡s∈[t0,t1]∥xε(s)−x0(s)∥≤Kε,\sup_{s\in[t_0,t_1]}\|x_\varepsilon(s)-x_0(s)\|\le K\varepsilon ,s∈[t0​,t1​]sup​∥xε​(s)−x0​(s)∥≤Kε,

one has

lim⁡ε↓01ε(∫t0t1[H(xε,uε,λ)−H(x0,u0,λ)]ds−∫t0t1[⟨λ,Fx(x0,u0)(xε−x0)⟩+ℓx(x0,u0)(xε−x0)]ds)=H(x0(t),v,λ(t))−H(x0(t),u0(t),λ(t)),\lim_{\varepsilon\downarrow 0}\frac{1}{\varepsilon}\Bigl(\int_{t_0}^{t_1}\bigl[H(x_\varepsilon,u_\varepsilon,\lambda)-H(x_0,u_0,\lambda)\bigr]ds-\int_{t_0}^{t_1}\bigl[\langle\lambda,F_x(x_0,u_0)(x_\varepsilon-x_0)\rangle+\ell_x(x_0,u_0)(x_\varepsilon-x_0)\bigr]ds\Bigr)=H(x_0(t),v,\lambda(t))-H(x_0(t),u_0(t),\lambda(t)),ε↓0lim​ε1​(∫t0​t1​​[H(xε​,uε​,λ)−H(x0​,u0​,λ)]ds−∫t0​t1​​[⟨λ,Fx​(x0​,u0​)(xε​−x0​)⟩+ℓx​(x0​,u0​)(xε​−x0​)]ds)=H(x0​(t),v,λ(t))−H(x0​(t),u0​(t),λ(t)),

where H(x,u,λ)=⟨λ,F(x,u)⟩+ℓ(x,u)H(x,u,\lambda)=\langle\lambda,F(x,u)\rangle+\ell(x,u)H(x,u,λ)=⟨λ,F(x,u)⟩+ℓ(x,u) is the Hamiltonian and every integrand is evaluated at the time sss.

This is the localized constant-control replacement in Luenberger's proof of Theorem 1, made quantitative for measurable controls. On the needle the integrand averages to the Hamiltonian jump at Lebesgue points of s↦H(x0(s),u0(s),λ(s))s\mapsto H(x_0(s),u_0(s),\lambda(s))s↦H(x0​(s),u0​(s),λ(s)); off the needle the integrand is the Taylor remainder of HHH in the state, which is uniformly o(∥xε−x0∥)=o(ε)o(\|x_\varepsilon-x_0\|)=o(\varepsilon)o(∥xε​−x0​∥)=o(ε) by continuity of FxF_xFx​ and ℓx\ell_xℓx​ on a compact set; and the linearized term on the needle is O(ε2)O(\varepsilon^2)O(ε2) at Lebesgue points of the derivative paths. The exceptional null set of times depends only on the reference pair, λ\lambdaλ and vvv, not on the family (xε)(x_\varepsilon)(xε​). Combined with the adjoint identity for the cost difference, this gives the first-order cost expansion of a needle variation.

Formalization Note. The null set is quantified first; the family xεx_\varepsilonxε​, the constant KKK and the eventual admissibility and closeness hypotheses are quantified inside it. Only continuity of λ\lambdaλ is assumed; the adjoint equation and the terminal condition are not needed for this limit.

Preamble
import Definitions.Def_VectorSpaceOpt_optimal_control

open Set Filter MeasureTheory
open scoped RealInnerProductSpace Topology

open VectorSpaceOpt
Formal statement
theorem VectorSpaceOpt.needle_hamiltonian_integral_limit
    {n m : ℕ} (t₀ t₁ : ℝ) (ht : t₀ < t₁)
    (F : OCState n → OCControl m → OCState n)
    (ell : OCState n → OCControl m → ℝ)
    (Fx : OCState n → OCControl m → (OCState n →L[ℝ] OCState n))
    (ellx : OCState n → OCControl m → (OCState n →L[ℝ] ℝ))
    (Omega : Set (OCControl m)) (xInit : OCState n)
    (u₀ : ℝ → OCControl m) (x₀ : ℝ → OCState n)
    (hFx : ∀ x u, HasFDerivAt (fun y => F y u) (Fx x u) x)
    (hellx : ∀ x u, HasFDerivAt (fun y => ell y u) (ellx x u) x)
    (hFCont : Continuous (Function.uncurry F))
    (hellCont : Continuous (Function.uncurry ell))
    (hFxCont : Continuous (Function.uncurry Fx))
    (hellxCont : Continuous (Function.uncurry ellx))
    (hFxPathInt : IntervalIntegrable (fun t => Fx (x₀ t) (u₀ t)) volume t₀ t₁)
    (hellxPathInt : IntervalIntegrable (fun t => ellx (x₀ t) (u₀ t)) volume t₀ t₁)
    (hu₀Bound : ∃ C : ℝ, ∀ᵐ t ∂volume.restrict (Icc t₀ t₁), ‖u₀ t‖ ≤ C)
    (hadm : IsAdmissibleControlPair t₀ t₁ F Omega xInit ell u₀ x₀)
    (lambda : ℝ → OCState n)
    (hlambdaCont : ContinuousOn lambda (Icc t₀ t₁))
    (v : OCControl m) :
    ∀ᵐ t ∂volume.restrict (Ioo t₀ t₁),
      ∀ (xPert : ℝ → ℝ → OCState n) (K : ℝ),
        (∀ᶠ ε : ℝ in 𝓝[>] (0 : ℝ),
          IsAdmissibleControlPair t₀ t₁ F Omega xInit ell
            (fun s => if s ∈ Icc t (t + ε) then v else u₀ s) (xPert ε) ∧
          ∀ s ∈ Icc t₀ t₁, ‖xPert ε s - x₀ s‖ ≤ K * ε) →
        Tendsto
          (fun ε : ℝ =>
            ((∫ s in t₀..t₁,
                (controlHamiltonian F ell (xPert ε s)
                    (if s ∈ Icc t (t + ε) then v else u₀ s) (lambda s) -
                  controlHamiltonian F ell (x₀ s) (u₀ s) (lambda s))) -
              ∫ s in t₀..t₁,
                (⟪lambda s, Fx (x₀ s) (u₀ s) (xPert ε s - x₀ s)⟫ +
                  ellx (x₀ s) (u₀ s) (xPert ε s - x₀ s))) / ε)
          (𝓝[>] (0 : ℝ))
          (𝓝 (controlHamiltonian F ell (x₀ t) v (lambda t) -
            controlHamiltonian F ell (x₀ t) (u₀ t) (lambda t))) := by
  sorry
Source
D. G. Luenberger, Optimization by Vector Space Methods (Wiley, 1969), §9.6, proof of Theorem 1, p. 264: the control equal to ū on a short interval [t′,t″] and to u₀ elsewhere, and the estimate J(u₀) − J(u) > ε(t″ − t′) + o(‖u − u₀‖) derived from equation (9); Proposition 1, p. 262, for the state remainder. https://sites.science.oregonstate.edu/~show/old/142_Luenberger.pdf . The almost-everywhere form replaces the source's continuity of piecewise-continuous controls by the Lebesgue differentiation theorem at Lebesgue points of the Hamiltonian path.

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me