Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 1.15 (p. 18) — a convex function is almost everywhere continuously differentiable

Proved
ShorNonsmooth.AlmostDiff.convex_ae_continuously_differentiable

by mikedeng1 · Oct 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

convex-analysisp2o-batch-b23ap2o-gran-per-chapterp2o-plan-bookp2o-v1rademacher

Let f:En→Rf : E_n \to \mathbb{R}f:En​→R be convex. Then

  1. fff is differentiable at almost every point of EnE_nEn​ (Lebesgue measure), and
  2. the gradient ∇f\nabla f∇f is continuous on the set M={x:f is differentiable at x}M = \{x : f \text{ is differentiable at } x\}M={x:f is differentiable at x}.

The book cites this as "Rademeister's theorem [12]" (Rademacher). Together the two parts give conditions (b) and (c) of almost differentiability for convex functions; part 2 is the classical fact that the gradient of a convex function is continuous where it exists.

Formalization Note "Almost everywhere continuously differentiable" is read as the conjunction of a.e. differentiability and continuity of the gradient restricted to the set of points of differentiability, which is how the proof uses it.

Preamble
import Mathlib
Formal statement
namespace ShorNonsmooth.AlmostDiff

/-- Shor (1985), p. 18, proof of Theorem 1.15, first sentence (Rademacher's theorem, cited from
[12]): a convex function on `E_n` is almost everywhere continuously differentiable, i.e. it is
differentiable at almost every point (Lebesgue measure), and its gradient is continuous on the set
of points where it is differentiable. -/
theorem convex_ae_continuously_differentiable {n : ℕ}
    (f : EuclideanSpace ℝ (Fin n) → ℝ) (hf : ConvexOn ℝ Set.univ f) :
    (∀ᵐ x ∂(MeasureTheory.volume : MeasureTheory.Measure (EuclideanSpace ℝ (Fin n))),
        DifferentiableAt ℝ f x) ∧
      ContinuousOn (gradient f) {x | DifferentiableAt ℝ f x} := by sorry

end ShorNonsmooth.AlmostDiff
Source
Shor, Minimization Methods for Non-Differentiable Functions, Springer 1985, p. 18, proof of Theorem 1.15, first sentence
Human review
  • Endorsed by Shuze Chen · Oct 2, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 2, 2026

    Confirmed by the mission captain (proposal self-audit).

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