Plain-English statement
- Quadratic regularization of a differentiable convex objective: actual curvature, gradient and smoothness, including zero regularization.
Read the mathematics first, then descend into Lean
You do not need to know Lean before opening this panel. The page keeps the paper-level theorem, rigorous proof obligations, exact Lean declaration, and proof dependencies as separate layers so a first-time reader can move down one layer at a time.
Proof architecture
Start with the tree when learning: prerequisites sit below the theorem and downstream results sit above it. Switch to the network when you want to understand where this declaration lives in the local formal library. Every mapped node is clickable.
Graph rule: only dependencies found by the ASTIS source scan are drawn. Missing tactic indirection is treated as an under-approximation; the site never invents an edge just to make a prettier graph.
How to read the exact Lean declaration
Read a Lean theorem left-to-right exactly as you would unpack a mathematical sentence: name → ambient types → automatically inferred structures → explicit hypotheses → conclusion → proof. Then read the proof top-to-bottom as transformations of the current goal.
- NameWhat reusable mathematical fact is being created?
- ParametersWhich symbols are arbitrary, and which structures are inferred by typeclass search?
- PropositionAfter the colon, translate the Lean expression back into a paper statement.
- Proof actionsAfter
by, ask what each tactic does to the mathematical goal—not only what syntax it uses.
Syntax used on this page
This glossary is filtered to syntax that actually occurs in the declaration above. Open a symbol only when you meet it, rather than memorizing Lean grammar in advance.
Source voice and ASTIS voice stay separate
When Samplinglib shows a short quotation from Chewi, it is labeled as a source excerpt and linked to the canonical book page. Intuition, expanded proof steps, hidden regularity assumptions, and Lean explanations are ASTIS-authored commentary. A quotation never substitutes for a formal proof, and an ASTIS explanation is never attributed to the textbook author.
Lean statement
theorem curvature_gradient_and_smoothness
{E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E]
{f : E → ℝ} (hd : Differentiable ℝ f) (hc : ConvexOn ℝ univ f)
{β δ : ℝ≥0} (hL : LipschitzWith β (gradient f)) (u : E) :
let W := fun x => f x + (δ : ℝ)/2*‖x-u‖^2
Differentiable ℝ W ∧ StrongConvexOn univ (δ : ℝ) W ∧
(∀ x, gradient W x = gradient f x + (δ : ℝ) • (x-u)) ∧
LipschitzWith (β+δ) (gradient W) := by
let W := fun x => f x + (δ : ℝ)/2*‖x-u‖^2
have hq (x : E) : HasFDerivAt (fun z => (δ : ℝ)/2*‖z-u‖^2)
((δ : ℝ) • innerSL ℝ (x-u)) x := by
convert (((hasFDerivAt_id x).sub_const u).norm_sq).const_mul ((δ : ℝ)/2)
using 1 <;> first | rfl | (ext v; simp; ring)
have hWd : Differentiable ℝ W := fun x => ((hd x).hasFDerivAt.add (hq x)).differentiableAt
have hgrad (x : E) : gradient W x = gradient f x + (δ : ℝ) • (x-u) := by
have hfd : fderiv ℝ W x = fderiv ℝ f x + (δ : ℝ) • innerSL ℝ (x-u) :=
((hd x).hasFDerivAt.add (hq x)).fderiv
rw [gradient, hfd, map_add, map_smul]
congr 1
exact congrArg (fun v : E => (δ : ℝ) • v) ((toDual ℝ E).symm_apply_apply (x-u))
have hstrong : StrongConvexOn univ (δ : ℝ) W := by
apply strongConvexOn_iff_convex.mpr
have ha := (hc.add (((-(δ : ℝ)) • (innerSL ℝ u).toLinearMap).convexOn convex_univ)).add_const
((δ : ℝ)/2*‖u‖^2)
convert! ha using 1
ext x
simp [W, norm_sub_sq_real, real_inner_comm]
ring
refine ⟨hWd,hstrong,hgrad,?_⟩
apply LipschitzWith.of_dist_le_mul
intro x y
rw [dist_eq_norm, hgrad, hgrad]
have he : gradient f x + (δ : ℝ) • (x-u) -
(gradient f y + (δ : ℝ) • (y-u)) =
(gradient f x-gradient f y) + (δ : ℝ) • (x-y) := by
simp only [smul_sub]
abel
rw [he]
have hb := hL.dist_le_mul x y
rw [dist_eq_norm, dist_eq_norm] at hb
calc
_ ≤ ‖gradient f x-gradient f y‖ + ‖(δ : ℝ) • (x-y)‖ := norm_add_le _ _
_ ≤ (β : ℝ)*‖x-y‖ + (δ : ℝ)*‖x-y‖ := by
rw [norm_smul, Real.norm_eq_abs, abs_of_nonneg δ.coe_nonneg]
linarith
_ = ((β+δ : ℝ≥0) : ℝ)*dist x y := by rw [dist_eq_norm]; simp; ring
end AutoSamplingTheory.TechnicalLemmas.Analysis.QuadraticRegularizationFirstOrder
Open AutoSamplingTheory/TechnicalLemmas/Analysis/QuadraticRegularizationFirstOrder.lean:21published source at 0e31a3cda412
Proof architecture
Actual regularized curvature and gradient Lipschitz shift at first-order regularity.
Lean proof walkthrough
- Read the quantified variables and typeclass brackets as part of the mathematical statement; inferred arguments are not missing assumptions.
- `intro` introduces quantified hypotheses into the local proof context.
- `have` creates a named intermediate mathematical fact.
- `calc` records an equality or inequality chain matching a paper calculation.
- `rw` rewrites by an established identity.
- `simp` normalizes through registered definitional and theorem rewrites.
- `apply` reduces the goal to the hypotheses of a reusable theorem.
- `refine` instantiates a reusable theorem while leaving explicit subgoals.
Why the statement has this shape
The declaration is kept at the reusable level recorded by its Registry tags and direct consumers. Explicit measures, spaces, wrappers, and regularity hypotheses expose interfaces that paper notation often infers. A theorem card explains those interfaces but never widens the compiled statement.
Hidden assumptions and non-claims
- Totalized `fderiv` values must not be read as a differentiability theorem.
- Genuine differentiability is localized to the hypotheses shown in the Lean statement.