Theorem (2.1)(1) — the max function is locally Lipschitz
ProvedClarkeGradients.MaxFunctions.maxFunction_lipschitzOnBoundedLet be a nonempty sequentially compact topological space and satisfy
- (a) is upper semicontinuous in ;
- (b) is locally Lipschitz in , uniformly for : for every bounded there is one constant with for all and all .
Then the max function is locally Lipschitz (Lipschitz on every bounded set).
This is the first assertion of Theorem (2.1); the rest of that theorem is about and , which are meaningful only because is locally Lipschitz.
Formalization Note Only hypotheses (a) and (b) of Theorem (2.1) are assumed, since the paper's proof of (1) uses only these, the sequential compactness of , and (which the paper uses implicitly in "max" and makes explicit here as [Nonempty U]). The max is ⨆ u, g x u.
import Mathlib import Definitions.Def_ClarkeGradients_Shared_LipschitzOnBounded import Definitions.Def_ClarkeGradients_MaxFunctions_maxFunction
namespace ClarkeGradients.MaxFunctions
/-- Clarke (1975), Theorem (2.1), assertion (1): if `U` is a nonempty sequentially compact
space, `g(x, u)` is upper semicontinuous in `(x, u)` (hypothesis (a)) and `g` is locally
Lipschitz in `x` uniformly for `u ∈ U` (hypothesis (b)), then `f(x) = max_u g(x, u)` is
locally Lipschitz. -/
theorem maxFunction_lipschitzOnBounded
{n : ℕ} {U : Type*} [TopologicalSpace U] [SeqCompactSpace U] [Nonempty U]
(g : EuclideanSpace ℝ (Fin n) → U → ℝ)
(ha : UpperSemicontinuous (fun p : EuclideanSpace ℝ (Fin n) × U => g p.1 p.2))
(hb : ∀ B : Set (EuclideanSpace ℝ (Fin n)), Bornology.IsBounded B →
∃ K : NNReal, ∀ u : U, LipschitzOnWith K (fun y => g y u) B) :
Shared.LipschitzOnBounded (maxFunction g) := by sorry
end ClarkeGradients.MaxFunctions
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
This statement uses , imported from another file with its code not shown; its name suggests "Lipschitz on every bounded set". It also uses , defined by
as a real supremum. That supremum takes the default value when the set is not bounded above.
The data are:
- a natural number ;
- a type carrying a topology, which is sequentially compact (every sequence in has a convergent subsequence) and nonempty;
- a function , where is Euclidean space.
The hypotheses are:
- (a) The map is upper semicontinuous on the product space . That is, for every point and every real , we have on some neighbourhood of .
- (b) For every bounded set there is a single constant such that, for every and all ,
The constant may depend on but not on .
The conclusion is . The statement does not separately assume that the supremum defining is finite or attained.
Degenerate cases:
- Case . is a single point, so (b) holds automatically, and (a) reduces to upper semicontinuity of . The conclusion is then whatever says about a function on a one-point space.
- One-point . Here .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.