Pontryagin minimum principle
OpenVectorSpaceOpt.pontryagin_minimum_principleFix a positive-length interval, continuously state-differentiable dynamics and running cost , continuous state derivatives, interval integrability of those derivative coefficients along the optimal path, an a.e. norm bound for the optimal control, and a uniform Lipschitz bound for the dynamics. If is an optimal admissible state-control pair, then there exists an absolutely continuous costate with . Its adjoint equation holds almost everywhere in weak inner-product form, and almost everywhere
The a.e. qualifier is a deliberate correction to the book's false all-times wording for piecewise-continuous controls. The statement includes measurable controls, absolutely continuous states and costate, and joint continuity and interval integrability of the state derivatives needed along the optimal path. The explicit a.e. control bound restores the compact-interval boundedness inherited from the source piecewise-continuous model and supplies local domination for state perturbations.
import Definitions.Def_VectorSpaceOpt_optimal_control open Set MeasureTheory open scoped RealInnerProductSpace
namespace VectorSpaceOpt
/-- Luenberger, Chapter 9, §9.6, Theorem 1, repaired from `∀ t` to an a.e. conclusion. -/
theorem pontryagin_minimum_principle
{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)
(hLip : ∃ M : ℝ, 0 ≤ M ∧ ∀ x y u v,
‖F x u - F y v‖ ≤ M * (‖x - y‖ + ‖u - v‖))
(hopt : IsOptimalControlPair t₀ t₁ F Omega xInit ell u₀ x₀) :
∃ lambda : ℝ → OCState n,
lambda t₁ = 0 ∧
AbsolutelyContinuousOnInterval lambda t₀ t₁ ∧
(∀ᵐ t ∂volume.restrict (Ioo t₀ t₁),
∃ dlambda : OCState n, HasDerivAt lambda dlambda t ∧
∀ h : OCState n,
⟪-dlambda, h⟫ =
⟪lambda t, Fx (x₀ t) (u₀ t) h⟫ + ellx (x₀ t) (u₀ t) h) ∧
(∀ᵐ t ∂volume.restrict (Icc t₀ t₁),
∀ v : OCControl m, v ∈ Omega →
controlHamiltonian F ell (x₀ t) (u₀ t) (lambda t) ≤
controlHamiltonian F ell (x₀ t) v (lambda t)) := by
sorry
end VectorSpaceOptRead-back
What the Lean code literally says, in plain math · gpt-5
For every pair of natural numbers (including ), let the state and control spaces be the real Euclidean spaces and . Fix real numbers ; maps and ; proposed state derivatives and ; an arbitrary set ; an initial state ; and total paths and . Assume, for every state and control , that is the Fréchet derivative at of and is the Fréchet derivative at of ; assume that the four jointly curried maps , , , and are continuous; and assume that and are interval-integrable with respect to Lebesgue volume from to . Assume also that there is a real constant , with no separately stated condition , such that for Lebesgue-almost every in the closed interval , and that there is a real such that, for all states and controls , . Finally assume that is globally optimal in the following fully specified sense: ; is absolutely continuous on ; is strongly measurable modulo a null set for Lebesgue measure restricted to ; for almost every such ; is differentiable with for almost every ; is interval-integrable; and, for every pair of total paths and satisfying those same admissibility conditions—namely , absolute continuity of on , almost-everywhere strong measurability of there, almost everywhere there, almost everywhere on , and interval-integrability of —one has . Then there exists a total path such that , is absolutely continuous on , and, for Lebesgue-almost every , there exists a vector for which is differentiable at with derivative and, for every , . Moreover, for Lebesgue-almost every and every , , where . Each separately stated almost-everywhere condition may have its own exceptional null set. In particular, neither the state equation nor the adjoint identity is asserted at an endpoint, and the control bound, membership in , and Hamiltonian comparison are phrased over the closed interval only almost everywhere, so they need not hold at either singleton endpoint; the exact endpoint assertions are and . No uniqueness or nonzero condition is imposed on , and the theorem imposes no conditions on the paths outside the interval beyond their being total functions. Although is formally arbitrary, if then the optimal-pair hypothesis is unsatisfiable on the positive-length interval, so that instance is vacuous. The zero-dimensional state and control cases remain included.
Confirmed by the mission captain (proposal self-audit).