Quadratic regularization preserves first-order smoothness
AutoSamplingTheory.TechnicalLemmas.Analysis.QuadraticRegularizationFirstOrder.curvature_gradient_and_smoothness · theorem · Teaching coverage
Statement
E is a complete real inner-product space. The real-valued function f on E is everywhere Frechet differentiable and convex on the whole space. Beta and delta are nonnegative real constants (Lean NNReal), and the genuine gradient of f is beta-Lipschitz. The center u is arbitrary. W(x)=f(x)+delta||x-u||²/2 is the actual regularized objective. No second derivative, Hessian field or supplied gradient of W is assumed. Then W is differentiable, delta-strongly convex and (beta+delta)-smooth, with the exact gradient formula below.
All objects and hypotheses
- E is a complete real inner-product space. The real-valued function f on E is everywhere Frechet differentiable and convex on the whole space.
- Beta and delta are nonnegative real constants (Lean NNReal), and the genuine gradient of f is beta-Lipschitz. The center u is arbitrary.
- W(x)=f(x)+delta||x-u||²/2 is the actual regularized objective. No second derivative, Hessian field or supplied gradient of W is assumed.
Mathematical proof
1. Subtract the centered quadratic correction
Subtract delta||x||²/2 from W. Expanding the squared distance leaves f plus a linear functional and a constant. This is convex because f is convex. The Mathlib characterization therefore proves delta-strong convexity, with the delta/2 chord convention.
Corresponding Lean step
strongConvexOn_iff_convex; LinearMap.convexOn; ConvexOn.add; ConvexOn.add_const; norm_sub_sq_real.
2. Differentiate the actual quadratic term
Differentiate the squared norm composed with x↦x-u, multiply by delta/2 and add the derivative of f. The factors two and one-half cancel. This gives the genuine Frechet derivative of W and hence its differentiability.
Corresponding Lean step
HasFDerivAt.norm_sq; HasFDerivAt.const_mul; HasFDerivAt.add; DifferentiableAt.hasFDerivAt.
3. Identify the genuine gradient
Apply the inverse Riesz isometry to the derivative just computed. Linearity preserves addition and scalar multiplication, while the inverse of the functional v↦⟨x-u,v⟩ is x-u. Thus the claimed gradient is computed from W, not supplied as an assumption.
Corresponding Lean step
gradient; InnerProductSpace.toDual; map_add; map_smul; LinearIsometryEquiv.symm_apply_apply.
4. Control differences of the regularized gradient
Subtract the gradient identity at y from the one at x; the center cancels. The triangle inequality, the given beta-Lipschitz estimate for the true gradient of f, and nonnegativity of delta bound the two terms. Add the bounds to obtain beta+delta.
Corresponding Lean step
LipschitzWith.of_dist_le_mul; LipschitzWith.dist_le_mul; norm_add_le; norm_smul; dist_eq_norm.
Lean statement · curvature_gradient_and_smoothness
Differentiability, exact delta-strong convexity, genuine gradient formula and beta+delta gradient Lipschitz continuity.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
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)Lean proof · curvature_gradient_and_smoothness
Subtract delta||x||²/2 from W. Expanding the squared distance leaves f plus a linear functional and a constant. This is convex because f is convex. The Mathlib characterization therefore proves delta-strong convexity, with the delta/2 chord convention. Differentiate the squared norm composed with x↦x-u, multiply by delta/2 and add the derivative of f. The factors two and one-half cancel. This gives the genuine Frechet derivative of W and hence its differentiability. Apply the inverse Riesz isometry to the derivative just computed. Linearity preserves addition and scalar multiplication, while the inverse of the functional v↦⟨x-u,v⟩ is x-u. Thus the claimed gradient is computed from W, not supplied as an assumption. Subtract the gradient identity at y from the one at x; the center cancels. The triangle inequality, the given beta-Lipschitz estimate for the true gradient of f, and nonnegativity of delta bound the two terms. Add the bounds to obtain beta+delta.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
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.QuadraticRegularizationFirstOrderScope and omitted-condition boundaries
- This is the curvature and smoothness component of Chewi Lemma4.2: W is differentiable and delta-strongly convex, its genuine gradient is identified, and that gradient is (beta+delta)-Lipschitz. It does not close the full first-order-oracle or class-uniform complexity reduction.
- Hilbert spaces generalize the source Euclidean space. Completeness supplies Riesz representation for genuine gradients; finite dimension and compactness are unnecessary here. Differentiability plus Lipschitz gradient is the source first-order smoothness contract, with no C2 strengthening.
- Beta=0 and delta=0 are included. At delta=0 the strong-convexity predicate reduces to ordinary convexity. Strict convexity, uniqueness and condition-number division require further positive-modulus hypotheses and are not asserted here.
- The general precision delta is not forced to epsilon/R² in this declaration. A compiled test checks the source parameter inequalities for positive beta,R,epsilon with epsilon<=beta R². Those anonymous arithmetic checks are not a public oracle-cost theorem or complete reduction.
- The earlier regularized-minimum existence/radius/accuracy theorem is separately compiled and reviewed. It is a downstream companion ingredient, not an invoked dependency of this theorem. The existing C2/Hessian shift theorem was searched but is not used.
Source and reuse
ASTIS parents called
Mathlib API called (external library)
- strongConvexOn_iff_convex
- LinearMap.convexOn
- ConvexOn.add
- ConvexOn.add_const
- HasFDerivAt.norm_sq
- HasFDerivAt.const_mul
- LipschitzWith.of_dist_le_mul
- LipschitzWith.dist_le_mul
Mathematical sources
- Chewi Lemma4.2 proof — Regularized curvature and smoothness at first-order regularity; oracle/class conclusion remains separate.
- Actual gradient update and positive-regime parameter checks — Quadratic consumer for every nonnegative precision, including zero; separate epsilon/R² inequalities.
ASTIS prose is not a quotation or a source-equivalence certificate. Definitions and aliases are explained as constructions, not counted as new mathematical proofs.