Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 3.2, p. 16: a Lipschitz viscosity subsolution of (4.1) satisfies H(x,DV(x))≤0H(x,DV(x))\le 0H(x,DV(x))≤0 a.e. in X∘X^\circX∘

Open
SemilinearHJ.Verification.viscSub_imp_aeSubsol

by tianyipeng · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

hamilton-jacobistate-constraintsviscosity-solutions

Let X⊂RnX\subset\mathbb R^nX⊂Rn be an mmm-dimensional polytope with relative interior X∘X^\circX∘, let Ψ:X→R+n\Psi:X\to\mathbb R^n_+Ψ:X→R+n​ be Lipschitz continuous, let r>0r>0r>0, and let X0⊆XX_0\subseteq XX0​⊆X be compact. Let HHH be the maximized Hamiltonian (3.4),

H(x,u)=max⁡v∈TX∩Br(⟨u,v⟩−⟨Ψ(x),[v]+⟩).H(x,u)=\max_{v\in TX\cap B_r}\Big(\langle u,v\rangle-\langle\Psi(x),[v]_+\rangle\Big).H(x,u)=v∈TX∩Br​max​(⟨u,v⟩−⟨Ψ(x),[v]+​⟩).

If V:X→RV:X\to\mathbb RV:X→R is Lipschitz continuous and is a viscosity subsolution of (4.1) in the sense of Definition 1, then VVV satisfies the first line of (3.9):

H(x,DV(x))≤0for almost every x∈X∘.H(x,DV(x))\le0\qquad\text{for almost every }x\in X^\circ.H(x,DV(x))≤0for almost every x∈X∘.

Here "almost every" refers to mmm-dimensional Hausdorff measure on X∘X^\circX∘, and DV(x)DV(x)DV(x) is the derivative of VVV relative to XXX, identified with a vector of TXTXTX. Being a viscosity subsolution includes V=0V=0V=0 on X0X_0X0​.

This is the step "In particular, VVV is differentiable almost everywhere in X∘X^\circX∘ and satisfies (3.9)" in the proof of Theorem 3.2 (p. 16). It combines Rademacher's theorem on the affine hull of XXX with the fact that a viscosity subsolution satisfies the equation classically at every point of differentiability. Together with Theorem 4.2, equation (4.7) and the converse statement aeSubsol_imp_viscSub, it yields Theorem 3.2.

Formalization Note "H(x,DV(x))≤0H(x,DV(x))\le0H(x,DV(x))≤0 a.e." is encoded by AESubsol: for μm\mu^mμm-a.e. x∈X∘x\in X^\circx∈X∘ there is w∈TXw\in TXw∈TX with VVV having derivative ⟨w,⋅⟩\langle w,\cdot\rangle⟨w,⋅⟩ at xxx relative to XXX and H(x,w)≤0H(x,w)\le0H(x,w)≤0. On X0∩X∘X_0\cap X^\circX0​∩X∘ the conclusion still holds a.e., because there the relative gradient vanishes at a.e. point and H(x,0)=0H(x,0)=0H(x,0)=0. Functions are defined on all of Rn\mathbb R^nRn, and only their values on XXX matter.

Preamble
import Mathlib
import Definitions.Def_SemilinearHJ_Verification_Setting
Formal statement
namespace SemilinearHJ.Verification

open scoped ENNReal MeasureTheory

theorem viscSub_imp_aeSubsol {n : ℕ} (X : Set (E n)) (hX : IsPolytope X)
    (Ψ : E n → E n) (hΨL : ∃ K : NNReal, LipschitzOnWith K Ψ X) (hΨ0 : ∀ x ∈ X, ∀ i, 0 ≤ Ψ x i)
    (r : ℝ) (hr : 0 < r)
    (X0 : Set (E n)) (hX0c : IsCompact X0) (hX0X : X0 ⊆ X)
    (V : E n → ℝ) (hVL : ∃ K : NNReal, LipschitzOnWith K V X) (hV : IsViscSub X Ψ r X0 V) :
    AESubsol X Ψ r V := by sorry

end SemilinearHJ.Verification
Source
Sandholm, Tran & Arigapudi, Hamilton-Jacobi Equations with Semilinear Costs and State Constraints, with Applications to Large Deviations in Games, author's manuscript (July 4, 2018; Math. Oper. Res. doi:10.1287/moor.2020.1114), https://people.math.wisc.edu/~htran24/hjld.pdf, p. 16, Section 4.2, proof of Theorem 3.2

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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me