Proof of Theorem 3.2, p. 16: a Lipschitz viscosity subsolution of (4.1) satisfies a.e. in
OpenSemilinearHJ.Verification.viscSub_imp_aeSubsolLet be an -dimensional polytope with relative interior , let be Lipschitz continuous, let , and let be compact. Let be the maximized Hamiltonian (3.4),
If is Lipschitz continuous and is a viscosity subsolution of (4.1) in the sense of Definition 1, then satisfies the first line of (3.9):
Here "almost every" refers to -dimensional Hausdorff measure on , and is the derivative of relative to , identified with a vector of . Being a viscosity subsolution includes on .
This is the step "In particular, is differentiable almost everywhere in and satisfies (3.9)" in the proof of Theorem 3.2 (p. 16). It combines Rademacher's theorem on the affine hull of 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 " a.e." is encoded by AESubsol: for -a.e. there is with having derivative at relative to and . On the conclusion still holds a.e., because there the relative gradient vanishes at a.e. point and . Functions are defined on all of , and only their values on matter.
import Mathlib import Definitions.Def_SemilinearHJ_Verification_Setting
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