Samplinglib
Lean gate not recorded for this source state main · 0e31a3cda412

QuadraticRegularizationFirstOrder: mathematical reading route

Read the statements and derivations in source order. Every result has its own optional Lean statement and proof. Source assumptions, library reuse and unproved boundaries are kept explicit.

  1. Quadratic regularization preserves first-order smoothness
ASTIS mathematical exposition

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.

\[\begin{gathered}W(x)=f(x)+\frac\delta2\|x-u\|^2,\qquad\nabla W(x)=\nabla f(x)+\delta(x-u),\\W((1-t)x+ty)\le(1-t)W(x)+tW(y)-\frac\delta2t(1-t)\|x-y\|^2\quad(0\le t\le1),\\\|\nabla W(x)-\nabla W(y)\|\le(\beta+\delta)\|x-y\|.\end{gathered}\]

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.

\[W(x)-\frac\delta2\|x\|^2=f(x)-\delta\langle u,x\rangle+\frac\delta2\|u\|^2.\]
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.

\[DW(x)[v]=Df(x)[v]+\delta\langle x-u,v\rangle.\]
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.

\[\nabla W(x)=\nabla f(x)+\delta(x-u).\]
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.

\[\begin{aligned}\|\nabla W(x)-\nabla W(y)\|&\le\|\nabla f(x)-\nabla f(y)\|+\delta\|x-y\|\\&\le(\beta+\delta)\|x-y\|.\end{aligned}\]
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)

Exact module and namespace context

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.QuadraticRegularizationFirstOrder

Exact module and namespace context

Scope 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

    ASTIS prose is not a quotation or a source-equivalence certificate. Definitions and aliases are explained as constructions, not counted as new mathematical proofs.