Samplinglib
Lean gate not recorded for this source state main · 0e31a3cda412
Optimisation · §3 · source p. 18

Gradient descent: smooth case

Stable source-facing chapter environment inside the shared Samplinglib reader.

Partially formalizedsource mapFull source closure not claimed
Planned route

Source → theorem map → reusable Lean nodes

01

Source audit

Definitions, theorems, assumptions, proof route, and exact anchors.

02

Upstream alignment

Search Mathlib, Optlib, CvxLean, and shared Samplinglib interfaces; preserve the exact Chewi statement and use a small adapter when conventions differ.

03

Frontier Cells

Only genuinely missing mathematical edges become theorem-sized tasks.

04

Graph placement

Dependencies, consumers, cross-library bridges, and reusable shared interfaces.

Open exact Chewi source ↗

This page establishes a stable source route and truth boundary; it does not claim a completed formalization.

Exercise3.1 · convex smooth gradients

Sinho Chewi, Lectures on Optimization. ASTIS restatement, not quoted prose; no endorsement implied.

arXiv:2605.07006v1 · §3 Exercise3.1 (3.4)-(3.5), using Lemma3.1 and Definition1.12 (1.7) · faithful paraphrase

Complete source statement (ASTIS restatement)

For convex β-smooth f on Euclidean d-space, apply the descent estimate to f minus the tangent plane at x, which is minimized at x, to obtain (3.4). Exchange endpoints to deduce (3.5), then use Cauchy–Schwarz to conclude that the gradient is β-Lipschitz. The exercise explicitly says that second differentiability is unnecessary. Definition1.12 allows β≥0; the reciprocal formula and its suggested step have an unstated positive-denominator domain, recorded separately in the binding.

  • f:ℝᵈ→ℝ is convex, C¹ and β-smooth in the global quadratic upper-model sense of Definition1.12.
  • Definition1.12 has β≥0. Exercise3.1 does not explicitly state β>0 although (3.4) contains 1/(2β).

(1.7) · quadratic upper model

\[f(y)\le f(x)+\langle\nabla f(x),y-x\rangle+\frac\beta2\|y-x\|^2\]

(3.4) · source reciprocal formula

\[f(y)\ge f(x)+\langle\nabla f(x),y-x\rangle+\frac{1}{2\beta}\|\nabla f(y)-\nabla f(x)\|^2\]

(3.5) · cocoercivity

\[\|\nabla f(y)-\nabla f(x)\|^2\le\beta\langle\nabla f(y)-\nabla f(x),y-x\rangle\]

Lipschitz conclusion

\[\|\nabla f(y)-\nabla f(x)\|\le\beta\|y-x\|\]

Read the formalized proofs

Each statement and proof below has its own closed Lean disclosure. ASTIS parents, Mathlib calls and external mathematical sources are distinguished in each proof.

ASTIS mathematical exposition

The Bregman gap controls the gradient difference

AutoSamplingTheory.TechnicalLemmas.Analysis.ConvexSmoothGradient.gradient_gap_sq_le_bregman · theorem · Teaching coverage

Statement

For a positive real β and a C¹ convex real-valued function on a complete real inner-product space satisfying the global β quadratic upper model, every ordered pair x,y satisfies the squared gradient difference bound by 2β times its Bregman gap.

\[\begin{gathered}f(y)\le f(x)+\langle\nabla f(x),y-x\rangle+\frac\beta2\|y-x\|^2\\[4pt]B_f(y,x):=f(y)-f(x)-\langle\nabla f(x),y-x\rangle\\[4pt]\|\nabla f(y)-\nabla f(x)\|^2\le 2\beta B_f(y,x)\end{gathered}\]

All objects and hypotheses

  • E is a complete real inner-product space, f:E→ℝ, and all points range over the entire space E.
  • f is C¹ (ContDiff ℝ 1 f) and convex on E (ConvexOn ℝ Set.univ f). No second derivative is assumed.
  • The genuine gradient is the Riesz representative of the Fréchet derivative. The displayed quadratic upper model holds for every x,y.
  • β is a strictly positive real number. This is the positive denominator domain of source (3.4).

Mathematical proof

1. Subtract the tangent plane

Fix x,y and write d=∇f(y)−∇f(x), z=y−d/β. Convexity and the actual gradient give the supporting-plane lower bound at x. This says f minus its tangent plane at x is minimized at x. The positive β makes the trial step meaningful.

\[f(z)\ge f(x)+\langle\nabla f(x),z-x\rangle.\]
Corresponding Lean step

StrongConvexFirstOrder.firstOrder_lower_bound_of_strongConvexOn at modulus zero; strongConvexOn_zero and hf.differentiable_one.hasGradientAt.

2. Apply the upper model at the tilted gradient step

Apply the original upper model from y to z. Insert z−y=−d/β and z−x=(y−x)−d/β in the two models. Combining the inequalities eliminates f(z). The difference of the two linear terms is ⟨d,d⟩/β.

\[\frac{\|d\|^2}{2\beta}\le f(y)-f(x)-\langle\nabla f(x),y-x\rangle=B_f(y,x).\]
Corresponding Lean step

hu y z; hzx and hzy; inner_sub_left/right, inner_smul_right, norm_smul, real_inner_self_eq_norm_sq.

3. Clear the positive denominator

Multiplication by 2β gives the shared division-free statement. The Lean proof carries out the same field arithmetic with β≠0 and positive reciprocal. The source reciprocal form is only recovered for β>0.

\[\|\nabla f(y)-\nabla f(x)\|^2\le 2\beta B_f(y,x)\]
Corresponding Lean step

mul_le_mul_iff_right₀, inv_pos, field_simp and nlinarith; the reciprocal source form is also compiled in Tests.Shared.ConvexSmoothGradient.

Lean statement · gradient_gap_sq_le_bregman

For a positive real β and a C¹ convex real-valued function on a complete real inner-product space satisfying the global β quadratic upper model, every ordered pair x,y satisfies the squared gradient difference bound by 2β times its Bregman gap.

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 gradient_gap_sq_le_bregman {f : E → ℝ} {β : ℝ}
    (hf : ContDiff ℝ 1 f) (hc : ConvexOn ℝ univ f) (hβ : 0 < β)
    (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
    (x y : E) :
    ‖gradient f y - gradient f x‖ ^ 2 ≤
      2 * β * (f y - f x - inner ℝ (gradient f x) (y - x))

Exact module and namespace context

Lean proof · gradient_gap_sq_le_bregman

Fix x,y and write d=∇f(y)−∇f(x), z=y−d/β. Convexity and the actual gradient give the supporting-plane lower bound at x. This says f minus its tangent plane at x is minimized at x. The positive β makes the trial step meaningful. Apply the original upper model from y to z. Insert z−y=−d/β and z−x=(y−x)−d/β in the two models. Combining the inequalities eliminates f(z). The difference of the two linear terms is ⟨d,d⟩/β. Multiplication by 2β gives the shared division-free statement. The Lean proof carries out the same field arithmetic with β≠0 and positive reciprocal. The source reciprocal form is only recovered for β>0.

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 gradient_gap_sq_le_bregman {f : E → ℝ} {β : ℝ}
    (hf : ContDiff ℝ 1 f) (hc : ConvexOn ℝ univ f) (hβ : 0 < β)
    (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
    (x y : E) :
    ‖gradient f y - gradient f x‖ ^ 2 ≤
      2 * β * (f y - f x - inner ℝ (gradient f x) (y - x)) := by
  let d := gradient f y - gradient f x
  let z := y - β⁻¹ • d
  have hl := StrongConvexFirstOrder.firstOrder_lower_bound_of_strongConvexOn
    (strongConvexOn_zero.mpr hc)
    (fun w _ => (hf.differentiable_one w).hasGradientAt) (mem_univ x) (mem_univ z)
  simp only [zero_div, zero_mul, add_zero] at hl
  have hh := hu y z
  have hzx : z - x = (y - x) - β⁻¹ • d := by dsimp [z]; abel
  rw [hzx, inner_sub_right, inner_smul_right] at hl
  have hzy : z - y = -(β⁻¹ • d) := by dsimp [z]; abel
  rw [hzy, inner_neg_right, inner_smul_right, norm_neg, norm_smul,
    Real.norm_eq_abs, mul_pow, sq_abs] at hh
  have hd : inner ℝ (gradient f y) d - inner ℝ (gradient f x) d = ‖d‖ ^ 2 := by
    rw [← inner_sub_left]
    exact real_inner_self_eq_norm_sq d
  have h := le_trans hl hh
  have hb : β ≠ 0 := ne_of_gt hβ
  apply (mul_le_mul_iff_right₀ (inv_pos.mpr hβ)).mp
  field_simp [hb] at h ⊢
  nlinarith

/-- Convex gradients are cocoercive in the division-free normalization.
The zero-modulus case follows by relaxing the upper model to `β + ε` and
letting positive `ε` tend to zero, without assigning meaning to a zero denominator. -/

Exact module and namespace context

Source assumptions versus formal assumptions

SourceActual LeanDifference kindWhy it matters
Euclidean d-space, all x,y.Complete real inner-product space E, all x,y:E.generalizationThe proof uses only the Riesz gradient, convex first-order support and real inner-product algebra; no dimension-dependent step occurs.
C¹ smoothness; the exercise explicitly removes the section-wide C² assumption.ContDiff ℝ 1 f and ConvexOn ℝ Set.univ f, with the actual quadratic upper model.sameAll regularity needed for the genuine gradient and first-order support follows from C¹; no integrability, Hessian or supplied gradient premise is added.
Definition1.12 allows β≥0; (3.4) displays 1/(2β), with no explicit β>0 in the exercise.β>0; shared scaled Bregman formula equivalent to (3.4) only in this domain.source-implicitThe reciprocal source expression and the trial step need positive β. This does not follow from convex smoothness: affine functions have β=0. We retain the source wording and expose that boundary; zero is established only for the meaningful scaled and Lipschitz conclusions, not by Lean inv_zero.

The complete real inner-product space explicitly generalizes the source Euclidean space. A constrained set is not covered: the trial gradient step must remain in the domain. No Riemannian, stochastic, or companion-paper theorem is claimed. Definition1.12 permits β≥0, but the reciprocal in (3.4) and the suggested step 1/β require β>0; the source does not state that restriction explicitly. The first declaration covers this positive domain. The scaled (3.5) and Lipschitz conclusions are separately established at β=0.

Encoder–denoiser: source-reviewed · implicit-assumption-exposed

Detected semantic differences

  • domains: The formal theorem generalizes Euclidean space to a real Hilbert space. — Module-scoped E is complete and inner-product, with no finite-dimensional assumption. Publication assumptions disclose this; source support is by Euclidean specialization, not identity of unrestricted domains.
  • assumptions: The Bregman declaration is restricted to beta>0. — Definition 1.12 permits zero but (3.4) uses 1/(2 beta). The lesson and bregman-positive-domain binding correctly limit this proof edge. No separately reviewed repaired source statement is supplied or accepted.

A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.

Scope and omitted-condition boundaries

  • The complete real inner-product space explicitly generalizes the source Euclidean space. A constrained set is not covered: the trial gradient step must remain in the domain. No Riemannian, stochastic, or companion-paper theorem is claimed.
  • Definition1.12 permits β≥0, but the reciprocal in (3.4) and the suggested step 1/β require β>0; the source does not state that restriction explicitly. The first declaration covers this positive domain. The scaled (3.5) and Lipschitz conclusions are separately established at β=0.

Source and reuse

ASTIS parents called

Mathlib API called (external library)

  • strongConvexOn_zero; ContDiff.differentiable_one; DifferentiableAt.hasGradientAt
  • inner_sub_left; inner_sub_right; inner_smul_right; norm_smul; real_inner_self_eq_norm_sq; mul_le_mul_iff_right₀; inv_pos

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.

ASTIS mathematical exposition

Convex smooth gradients are cocoercive

AutoSamplingTheory.TechnicalLemmas.Analysis.ConvexSmoothGradient.gradient_cocoercive · theorem · Teaching coverage

Statement

For a nonnegative real β and a C¹ convex real-valued function on a complete real inner-product space satisfying the global β quadratic upper model, every ordered pair x,y satisfies the division-free cocoercivity inequality.

\[\begin{gathered}f(y)\le f(x)+\langle\nabla f(x),y-x\rangle+\frac\beta2\|y-x\|^2\\[4pt]B_f(y,x):=f(y)-f(x)-\langle\nabla f(x),y-x\rangle\\[4pt]\|\nabla f(y)-\nabla f(x)\|^2\le\beta\langle\nabla f(y)-\nabla f(x),y-x\rangle\end{gathered}\]

All objects and hypotheses

  • E is a complete real inner-product space, f:E→ℝ, and all points range over the entire space E.
  • f is C¹ (ContDiff ℝ 1 f) and convex on E (ConvexOn ℝ Set.univ f). No second derivative is assumed.
  • The genuine gradient is the Riesz representative of the Fréchet derivative. The displayed quadratic upper model holds for every x,y.
  • β is a nonnegative real number, including zero.

Mathematical proof

1. Use a strictly positive relaxed modulus

Fix x,y and set d=∇f(y)−∇f(x). For ε>0, the β upper model implies the (β+ε) model because squared norm is nonnegative. Thus the positive-modulus Bregman bound applies even when β=0.

\[\|d\|^2\le2(\beta+\varepsilon)B_f(y,x),\qquad\|d\|^2\le2(\beta+\varepsilon)B_f(x,y).\]
Corresponding Lean step

hu' follows by real arithmetic from hu and sq_nonneg; two calls of gradient_gap_sq_le_bregman.

2. Exchange endpoints and add

The values f(x),f(y) cancel. The two Bregman gaps sum to the gradient-displacement pairing, while reversing the gradient difference preserves its squared norm.

\[B_f(y,x)+B_f(x,y)=\langle d,y-x\rangle,\qquad\|d\|^2\le(\beta+\varepsilon)\langle d,y-x\rangle.\]
Corresponding Lean step

hxy and hyx; norm_sub_rev, inner_neg_right, inner_sub_left and nlinarith.

3. Include the zero boundary by a real limit

Let ε decrease to zero. The right side is affine and continuous in ε, and order is closed in ℝ. This proves the scaled bound for all β≥0. At β=0 the norm square must be zero, so the gradient is constant; no inverse at zero is used.

\[\|\nabla f(y)-\nabla f(x)\|^2\le\beta\langle\nabla f(y)-\nabla f(x),y-x\rangle\]
Corresponding Lean step

Tendsto.add/mul and tendsto_id.mono_left nhdsWithin_le_nhds; ge_of_tendsto with self_mem_nhdsWithin.

Lean statement · gradient_cocoercive

For a nonnegative real β and a C¹ convex real-valued function on a complete real inner-product space satisfying the global β quadratic upper model, every ordered pair x,y satisfies the division-free cocoercivity inequality.

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 gradient_cocoercive {f : E → ℝ} {β : ℝ}
    (hf : ContDiff ℝ 1 f) (hc : ConvexOn ℝ univ f) (hβ : 0 ≤ β)
    (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
    (x y : E) :
    ‖gradient f y - gradient f x‖ ^ 2 ≤
      β * inner ℝ (gradient f y - gradient f x) (y - x)

Exact module and namespace context

Lean proof · gradient_cocoercive

Fix x,y and set d=∇f(y)−∇f(x). For ε>0, the β upper model implies the (β+ε) model because squared norm is nonnegative. Thus the positive-modulus Bregman bound applies even when β=0. The values f(x),f(y) cancel. The two Bregman gaps sum to the gradient-displacement pairing, while reversing the gradient difference preserves its squared norm. Let ε decrease to zero. The right side is affine and continuous in ε, and order is closed in ℝ. This proves the scaled bound for all β≥0. At β=0 the norm square must be zero, so the gradient is constant; no inverse at zero is used.

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 gradient_cocoercive {f : E → ℝ} {β : ℝ}
    (hf : ContDiff ℝ 1 f) (hc : ConvexOn ℝ univ f) (hβ : 0 ≤ β)
    (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
    (x y : E) :
    ‖gradient f y - gradient f x‖ ^ 2 ≤
      β * inner ℝ (gradient f y - gradient f x) (y - x) := by
  have he (ε : ℝ) (hε : 0 < ε) :
      ‖gradient f y - gradient f x‖ ^ 2 ≤
        (β + ε) * inner ℝ (gradient f y - gradient f x) (y - x) := by
    have hu' (a b : E) : f b ≤ f a + inner ℝ (gradient f a) (b - a) +
        (β + ε) / 2 * ‖b - a‖ ^ 2 := by
      have := hu a b
      nlinarith [sq_nonneg ‖b - a‖]
    have hxy := gradient_gap_sq_le_bregman hf hc (add_pos_of_nonneg_of_pos hβ hε) hu' x y
    have hyx := gradient_gap_sq_le_bregman hf hc (add_pos_of_nonneg_of_pos hβ hε) hu' y x
    rw [norm_sub_rev (gradient f x), show x - y = -(y - x) by abel, inner_neg_right] at hyx
    rw [inner_sub_left]
    nlinarith
  have ht : Tendsto (fun ε : ℝ => (β + ε) *
      inner ℝ (gradient f y - gradient f x) (y - x)) (𝓝[>] 0)
      (𝓝 (β * inner ℝ (gradient f y - gradient f x) (y - x))) := by
    simpa using (tendsto_const_nhds.add (tendsto_id.mono_left nhdsWithin_le_nhds :
      Tendsto (fun ε : ℝ => ε) (𝓝[>] 0) (𝓝 0))).mul tendsto_const_nhds
  apply ge_of_tendsto ht
  filter_upwards [self_mem_nhdsWithin] with ε hε
  exact he ε hε

/-- A C¹ convex function with the global quadratic upper model has a
`β`-Lipschitz gradient, including `β = 0`. -/

Exact module and namespace context

Source assumptions versus formal assumptions

SourceActual LeanDifference kindWhy it matters
Euclidean d-space, all x,y.Complete real inner-product space E, all x,y:E.generalizationThe proof uses only the Riesz gradient, convex first-order support and real inner-product algebra; no dimension-dependent step occurs.
C¹ smoothness; the exercise explicitly removes the section-wide C² assumption.ContDiff ℝ 1 f and ConvexOn ℝ Set.univ f, with the actual quadratic upper model.sameAll regularity needed for the genuine gradient and first-order support follows from C¹; no integrability, Hessian or supplied gradient premise is added.
Definition1.12 allows β≥0; (3.4) displays 1/(2β), with no explicit β>0 in the exercise.β≥0; division-free (3.5), with zero handled by positive relaxation and a limit.sameThe reciprocal source expression and the trial step need positive β. This does not follow from convex smoothness: affine functions have β=0. We retain the source wording and expose that boundary; zero is established only for the meaningful scaled and Lipschitz conclusions, not by Lean inv_zero.

The complete real inner-product space explicitly generalizes the source Euclidean space. A constrained set is not covered: the trial gradient step must remain in the domain. No Riemannian, stochastic, or companion-paper theorem is claimed. Definition1.12 permits β≥0, but the reciprocal in (3.4) and the suggested step 1/β require β>0; the source does not state that restriction explicitly. The first declaration covers this positive domain. The scaled (3.5) and Lipschitz conclusions are separately established at β=0.

Encoder–denoiser: source-reviewed · domain-mismatch

Detected semantic differences

  • domains: The formal theorem generalizes Euclidean space to a real Hilbert space. — Module-scoped E is complete and inner-product, with no finite-dimensional assumption. Publication assumptions disclose this; source support is by Euclidean specialization, not identity of unrestricted domains.

A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.

Scope and omitted-condition boundaries

  • The complete real inner-product space explicitly generalizes the source Euclidean space. A constrained set is not covered: the trial gradient step must remain in the domain. No Riemannian, stochastic, or companion-paper theorem is claimed.
  • Definition1.12 permits β≥0, but the reciprocal in (3.4) and the suggested step 1/β require β>0; the source does not state that restriction explicitly. The first declaration covers this positive domain. The scaled (3.5) and Lipschitz conclusions are separately established at β=0.

Source and reuse

ASTIS parents called

Mathlib API called (external library)

  • norm_sub_rev; inner_neg_right; inner_sub_left
  • Tendsto.add; Tendsto.mul; tendsto_id; nhdsWithin_le_nhds; ge_of_tendsto; self_mem_nhdsWithin

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.

ASTIS mathematical exposition

A convex smooth function has a Lipschitz gradient

AutoSamplingTheory.TechnicalLemmas.Analysis.ConvexSmoothGradient.gradient_lipschitz · theorem · Teaching coverage

Statement

For a nonnegative real β and a C¹ convex real-valued function on a complete real inner-product space satisfying the global β quadratic upper model, its genuine gradient is β-Lipschitz everywhere.

\[\begin{gathered}f(y)\le f(x)+\langle\nabla f(x),y-x\rangle+\frac\beta2\|y-x\|^2\\[4pt]B_f(y,x):=f(y)-f(x)-\langle\nabla f(x),y-x\rangle\\[4pt]\|\nabla f(y)-\nabla f(x)\|\le\beta\|y-x\|\end{gathered}\]

All objects and hypotheses

  • E is a complete real inner-product space, f:E→ℝ, and all points range over the entire space E.
  • f is C¹ (ContDiff ℝ 1 f) and convex on E (ConvexOn ℝ Set.univ f). No second derivative is assumed.
  • The genuine gradient is the Riesz representative of the Fréchet derivative. The displayed quadratic upper model holds for every x,y.
  • β:NNReal encodes exactly a nonnegative real number, including zero.

Mathematical proof

1. Combine cocoercivity with Cauchy–Schwarz

Write d=∇f(y)−∇f(x), v=y−x. Multiply the inner-product upper bound by the nonnegative β and combine it with cocoercivity.

\[\|d\|^2\le\beta\langle d,v\rangle\le\beta\|d\|\|v\|.\]
Corresponding Lean step

gradient_cocoercive and real_inner_le_norm; mul_le_mul_of_nonneg_left uses β.coe_nonneg.

2. Cancel only a positive gradient difference

If ‖d‖=0, the desired inequality is immediate. Otherwise ‖d‖>0 and cancellation yields the Lipschitz estimate. This does not divide by β and therefore includes β=0.

\[\|\nabla f(y)-\nabla f(x)\|\le\beta\|y-x\|\]
Corresponding Lean step

lipschitzWith_iff_norm_sub_le; by_cases on the norm, norm_nonneg, mul_le_mul_iff_left₀ and nlinarith.

Lean statement · gradient_lipschitz

For a nonnegative real β and a C¹ convex real-valued function on a complete real inner-product space satisfying the global β quadratic upper model, its genuine gradient is β-Lipschitz everywhere.

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 gradient_lipschitz {f : E → ℝ} {β : NNReal}
    (hf : ContDiff ℝ 1 f) (hc : ConvexOn ℝ univ f)
    (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + (β : ℝ) / 2 * ‖y - x‖ ^ 2) :
    LipschitzWith β (gradient f)

Exact module and namespace context

Lean proof · gradient_lipschitz

Write d=∇f(y)−∇f(x), v=y−x. Multiply the inner-product upper bound by the nonnegative β and combine it with cocoercivity. If ‖d‖=0, the desired inequality is immediate. Otherwise ‖d‖>0 and cancellation yields the Lipschitz estimate. This does not divide by β and therefore includes β=0.

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 gradient_lipschitz {f : E → ℝ} {β : NNReal}
    (hf : ContDiff ℝ 1 f) (hc : ConvexOn ℝ univ f)
    (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + (β : ℝ) / 2 * ‖y - x‖ ^ 2) :
    LipschitzWith β (gradient f) := by
  rw [lipschitzWith_iff_norm_sub_le]
  intro x y
  have h := gradient_cocoercive hf hc β.coe_nonneg hu y x
  have hs := mul_le_mul_of_nonneg_left
    (real_inner_le_norm (gradient f x - gradient f y) (x - y)) β.coe_nonneg
  by_cases hz : ‖gradient f x - gradient f y‖ = 0
  · rw [hz]
    positivity
  · apply (mul_le_mul_iff_left₀ (lt_of_le_of_ne (norm_nonneg _) (Ne.symm hz))).mp
    nlinarith

end AutoSamplingTheory.TechnicalLemmas.Analysis.ConvexSmoothGradient

Exact module and namespace context

Source assumptions versus formal assumptions

SourceActual LeanDifference kindWhy it matters
Euclidean d-space, all x,y.Complete real inner-product space E, all x,y:E.generalizationThe proof uses only the Riesz gradient, convex first-order support and real inner-product algebra; no dimension-dependent step occurs.
C¹ smoothness; the exercise explicitly removes the section-wide C² assumption.ContDiff ℝ 1 f and ConvexOn ℝ Set.univ f, with the actual quadratic upper model.sameAll regularity needed for the genuine gradient and first-order support follows from C¹; no integrability, Hessian or supplied gradient premise is added.
Definition1.12 allows β≥0; (3.4) displays 1/(2β), with no explicit β>0 in the exercise.β:NNReal; Lipschitz bound includes β=0 and uses no reciprocal.sameThe reciprocal source expression and the trial step need positive β. This does not follow from convex smoothness: affine functions have β=0. We retain the source wording and expose that boundary; zero is established only for the meaningful scaled and Lipschitz conclusions, not by Lean inv_zero.

The complete real inner-product space explicitly generalizes the source Euclidean space. A constrained set is not covered: the trial gradient step must remain in the domain. No Riemannian, stochastic, or companion-paper theorem is claimed. Definition1.12 permits β≥0, but the reciprocal in (3.4) and the suggested step 1/β require β>0; the source does not state that restriction explicitly. The first declaration covers this positive domain. The scaled (3.5) and Lipschitz conclusions are separately established at β=0.

Encoder–denoiser: source-reviewed · domain-mismatch

Detected semantic differences

  • domains: The formal theorem generalizes Euclidean space to a real Hilbert space. — Module-scoped E is complete and inner-product, with no finite-dimensional assumption. Publication assumptions disclose this; source support is by Euclidean specialization, not identity of unrestricted domains.

A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.

Scope and omitted-condition boundaries

  • The complete real inner-product space explicitly generalizes the source Euclidean space. A constrained set is not covered: the trial gradient step must remain in the domain. No Riemannian, stochastic, or companion-paper theorem is claimed.
  • Definition1.12 permits β≥0, but the reciprocal in (3.4) and the suggested step 1/β require β>0; the source does not state that restriction explicitly. The first declaration covers this positive domain. The scaled (3.5) and Lipschitz conclusions are separately established at β=0.

Source and reuse

ASTIS parents called

Mathlib API called (external library)

  • lipschitzWith_iff_norm_sub_le; real_inner_le_norm
  • mul_le_mul_of_nonneg_left; mul_le_mul_iff_left₀; norm_nonneg

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.

Which proof edges are actually covered?

  • Local proof component; source adapter/review separate (3.4), on the positive denominator domain
  • Local proof component; source adapter/review separate (3.5), with the β=0 boundary justified
  • Local proof component; source adapter/review separate β-Lipschitz gradient, without a C² assumption

Theorem3.3 · gradient-descent distance contraction

Sinho Chewi, Lectures on Optimization. ASTIS restatement, not quoted prose; no endorsement implied.

arXiv:2605.07006v1 · Section3, Theorem3.3, proof and immediately following distance-rate paragraph · faithful paraphrase

Complete source statement (ASTIS restatement)

In the section’s C² Euclidean setting, an α-strongly convex β-smooth objective gives the displayed contraction of the gradient update x⁺=x−h∇f(x), for all x,y and h≤1/β. Taking y to be a global minimizer x⋆, using h=1/β, κ=β/α and R=‖x₀−x⋆‖, iteration yields the geometric and exponential distance estimates. The following logarithmic complexity conclusion is a separate proof obligation with its own declaration binding. The printed step restriction omits h≥0; its necessary domain is exposed in the bindings without rewriting the source.

  • f:ℝᵈ→ℝ is C² throughout the section, α-strongly convex and β-smooth, with nonnegative curvature parameters.
  • The theorem prints h≤1/β; the rate paragraph uses h=1/β, κ=β/α≥1 and a minimizer x⋆. Positive denominator domains are implicit.

Single-step distance

\[\|y^+-x^+\|\le\sqrt{1-\alpha h}\|y-x\|\]

Distance after N steps, h=1/β

\[\begin{gathered}\|x_N-x_\star\|\le(1-1/\kappa)^{N/2}R,\\(1-1/\kappa)^{N/2}R\le e^{-N/(2\kappa)}R.\end{gathered}\]

Subsequent logarithmic iteration complexity

\[N\ge2\kappa\log(R/\varepsilon)\ \Longrightarrow\ \|x_N-x_\star\|\le\varepsilon\]

Read the formalized proofs

Each statement and proof below has its own closed Lean disclosure. ASTIS parents, Mathlib calls and external mathematical sources are distinguished in each proof.

ASTIS mathematical exposition

A strongly convex gradient step contracts distances

AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentContraction.gradient_step_contraction · theorem · Teaching coverage

Statement

For every pair x,y, the actual step T satisfies the displayed contraction estimate under the stated global curvature and step conditions.

\[\begin{gathered}T(x)=x-h\nabla f(x),\\r=\sqrt{1-\alpha h},\\f(y)\le f(x)+\langle\nabla f(x),y-x\rangle\\{}+\frac\beta2\|y-x\|^2,\\\|T(y)-T(x)\|\le r\|y-x\|.\end{gathered}\]

All objects and hypotheses

  • E is a complete real inner-product space, f:E→ℝ is C¹, and all point quantifiers range over E. The gradient is the genuine Riesz representative of its Fréchet derivative.
  • The real parameters α, β and h are nonnegative and βh≤1.
  • f is α-strongly convex on all E: the convex chord inequality has the subtraction (α/2)t(1−t)‖y−x‖² for t∈[0,1]. The displayed β quadratic upper model holds for all x,y.
  • Write T(x)=x−h∇f(x) and r=√(1−αh), with the nonnegative real square root (zero on negative arguments).

Mathematical proof

1. Use the two compiled curvature inequalities

For arbitrary x,y define v=y−x, d=∇f(y)−∇f(x) and p=⟨d,v⟩. Strong convexity with α≥0 supplies convexity and the lower pairing bound. Cocoercivity supplies the upper gradient-square bound.

\[\begin{gathered}\alpha\|v\|^2\le p,\quad p\ge0,\\\|d\|^2\le\beta p.\end{gathered}\]
Corresponding Lean step

StrongConvexFirstOrder.gradient_inner_lower_bound_of_strongConvexOn; UniformConvexOn.convexOn; ConvexSmoothGradient.gradient_cocoercive.

2. Expand one actual step

Since h≥0 and βh≤1, multiplying the cocoercivity bound by h² gives h²‖d‖²≤h²βp≤hp. Insert this into the exact squared-norm expansion, then use hp≥αh‖v‖².

\[\begin{gathered}\|v-hd\|^2=\|v\|^2-2hp+h^2\|d\|^2,\\\|v-hd\|^2\le\|v\|^2-hp\\\le(1-\alpha h)\|v\|^2.\end{gathered}\]
Corresponding Lean step

norm_sub_sq_real, inner_smul_right, norm_smul; three mul_le_mul_of_nonneg_left applications and nlinarith.

3. Take a square root without adding compatibility

The squared norm is nonnegative. Taking square roots and factoring the nonnegative factor ‖v‖² yields the asserted distance bound. If 1−αh is negative and v≠0, the squared estimate is impossible; hence no nontrivial negative-coefficient case is hidden.

\[\sqrt{(1-\alpha h)\|v\|^2}=r\|v\|.\]
Corresponding Lean step

Real.le_sqrt_of_sq_le; Real.sqrt_mul' with sq_nonneg; Real.sqrt_sq with norm_nonneg.

Lean statement · gradient_step_contraction

For every pair x,y, the actual step T satisfies the displayed contraction estimate under the stated global curvature and step conditions.

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 gradient_step_contraction {f : E → ℝ} {α β h : ℝ}
    (hf : ContDiff ℝ 1 f) (hsc : StrongConvexOn univ α f)
    (hα : 0 ≤ α) (hβ : 0 ≤ β) (hh : 0 ≤ h) (hstep : β * h ≤ 1)
    (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
    (x y : E) :
    ‖(y - h • gradient f y) - (x - h • gradient f x)‖ ≤
      Real.sqrt (1 - α * h) * ‖y - x‖

Exact module and namespace context

Lean proof · gradient_step_contraction

For arbitrary x,y define v=y−x, d=∇f(y)−∇f(x) and p=⟨d,v⟩. Strong convexity with α≥0 supplies convexity and the lower pairing bound. Cocoercivity supplies the upper gradient-square bound. Since h≥0 and βh≤1, multiplying the cocoercivity bound by h² gives h²‖d‖²≤h²βp≤hp. Insert this into the exact squared-norm expansion, then use hp≥αh‖v‖². The squared norm is nonnegative. Taking square roots and factoring the nonnegative factor ‖v‖² yields the asserted distance bound. If 1−αh is negative and v≠0, the squared estimate is impossible; hence no nontrivial negative-coefficient case is hidden.

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 gradient_step_contraction {f : E → ℝ} {α β h : ℝ}
    (hf : ContDiff ℝ 1 f) (hsc : StrongConvexOn univ α f)
    (hα : 0 ≤ α) (hβ : 0 ≤ β) (hh : 0 ≤ h) (hstep : β * h ≤ 1)
    (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
    (x y : E) :
    ‖(y - h • gradient f y) - (x - h • gradient f x)‖ ≤
      Real.sqrt (1 - α * h) * ‖y - x‖ := by
  have hc : ConvexOn ℝ univ f := hsc.convexOn (by intro r; positivity)
  have hm := StrongConvexFirstOrder.gradient_inner_lower_bound_of_strongConvexOn
    hsc (fun z _ => (hf.differentiable_one z).hasGradientAt) (mem_univ x) (mem_univ y)
  have hg := ConvexSmoothGradient.gradient_cocoercive hf hc hβ hu x y
  have hp : 0 ≤ inner ℝ (gradient f y - gradient f x) (y - x) :=
    le_trans (mul_nonneg hα (sq_nonneg _)) hm
  have hg' := mul_le_mul_of_nonneg_left hg (sq_nonneg h)
  have hs := mul_le_mul_of_nonneg_left hstep (mul_nonneg hh hp)
  have hm' := mul_le_mul_of_nonneg_left hm hh
  have hv : (y - h • gradient f y) - (x - h • gradient f x) =
      (y - x) - h • (gradient f y - gradient f x) := by rw [smul_sub]; abel
  have hb : ‖(y - h • gradient f y) - (x - h • gradient f x)‖ ^ 2 ≤
      (1 - α * h) * ‖y - x‖ ^ 2 := by
    rw [hv, norm_sub_sq_real, inner_smul_right,
      real_inner_comm (gradient f y - gradient f x), norm_smul,
      Real.norm_eq_abs, mul_pow, sq_abs]
    nlinarith
  simpa only [Real.sqrt_mul' _ (sq_nonneg _), Real.sqrt_sq (norm_nonneg _)] using
    Real.le_sqrt_of_sq_le hb

/-- The actual Nth gradient-descent iterate has geometric, then exponential,
distance control about a supplied global minimizer. -/

Exact module and namespace context

Source assumptions versus formal assumptions

SourceActual LeanDifference kindWhy it matters
C² on Euclidean d-space.C¹ on a complete real inner-product space.generalizationOnly genuine first derivatives, Riesz representation, first-order curvature and inner-product algebra are used; no Hessian, integration or finite dimension is required.
The source prints h≤1/β.h≥0, β≥0 and βh≤1.mathematically-necessaryThe source prints h≤1/β without stating h≥0. Nonnegative step is essential: f(t)=t²/2, α=β=1 and h=−1 gives T(t)=2t, contradicting the claimed factor √2 for distinct points. The reciprocal formula additionally needs β>0. The stray gradient before y−x in the middle proof display is a transcription typo, resolved by the preceding expansion and Proposition1.6. The β=0 division-free case is an explicit extension, not a totalized reciprocal interpretation.
Nonnegative curvature moduli; the rate uses κ=β/α≥1.α≥0, β≥0; factor sqrt(1−αh) raised to a natural power.generalizationNo unnecessary α≤β premise on a singleton Hilbert space; a negative coefficient forces all relevant distances to be zero. For positive compatible moduli and h=1/β the source condition-number formula is recovered.

C¹ on a complete real inner-product space is an explicit extension of the section’s C² Euclidean setting. The source reciprocal restriction is recovered for β>0; the division-free statement also includes β=0 and h=0. If 1−αh<0, the squared bound forces every pairwise distance to vanish, so the norm result remains valid on a singleton space without an unjustified α≤β assumption. No constrained-domain, Riemannian or stochastic method is covered; this is shared optimization background, not companion-paper progress. The source prints h≤1/β without stating h≥0. Nonnegative step is essential: f(t)=t²/2, α=β=1 and h=−1 gives T(t)=2t, contradicting the claimed factor √2 for distinct points. The reciprocal formula additionally needs β>0. The stray gradient before y−x in the middle proof display is a transcription typo, resolved by the preceding expansion and Proposition1.6. The source specializes to h=1/β and κ=β/α. For 0<α≤β, r^N=(1−1/κ)^(N/2) and the exponential factor is exp(−N/(2κ)). This unit does not formalize the subsequent logarithmic iteration-complexity statement or the improved step of Exercise3.2.

Encoder–denoiser: accepted · possible-source-error

Detected semantic differences

  • domains: Disclosed extension from Euclidean C2 objectives to complete real Hilbert C1 objectives. — The formal hypotheses retain the global curvature and upper model; the original setting is a specialization.
  • quantifiers: The literal source omits h≥0; current binding explicitly records the gap. — Counterexample to unrestricted printed h: f(t)=t²/2, α=β=1, h=-1, x=0, y=1 gives updated distance 2>sqrt(2). This is the already exposed gap, not a new repair proposal.
  • scopes: A stray gradient before the displacement in the source proof display is read as y-x. — The preceding exact squared-norm expansion determines the pairing. The candidate module and lesson explicitly use this displacement.

Proposed source repair — not the original theorem

In the source C2 Euclidean setting, let f be alpha-convex and beta-smooth. For every x,y and step size 0 <= h <= 1/beta, with T(z)=z-h grad f(z), ||T(y)-T(x)|| <= sqrt(1-alpha h)||y-x||. The source positive reciprocal and ordinary square-root domains remain unchanged; this proposal only makes the missing nonnegative-step restriction explicit.

In Theorem3.3 replace the printed step restriction h<=1/beta with 0<=h<=1/beta. Retain the pinned source statement separately; do not overwrite it.

Classification: mathematically-necessary · Status: accepted

The literal all-real-step statement fails for every negative h on f(t)=t^2/2 with alpha=beta=1. The proof needs h>=0 when multiplying the curvature and step bounds.

Minimality: Only add h>=0; include h=0 because T is then identity and the factor is 1. No strict positivity of h, no additional smoothness, and no dimension restriction is proposed. Existing reciprocal/square-root source domains are not redefined. Removing h>=0 admits the explicit quadratic counterexample.

Evidence: {"counterexample": "f(t)=t^2/2 on R, alpha=beta=1, h=-1, x=0,y=1: h<=1/beta but 2>sqrt(2). For every h<0, (1-h)^2-(1-h)=h(h-1)>0.", "url": "https://arxiv.org/html/2605.07006v1#S3"}

A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.

Scope and omitted-condition boundaries

  • C¹ on a complete real inner-product space is an explicit extension of the section’s C² Euclidean setting. The source reciprocal restriction is recovered for β>0; the division-free statement also includes β=0 and h=0. If 1−αh<0, the squared bound forces every pairwise distance to vanish, so the norm result remains valid on a singleton space without an unjustified α≤β assumption. No constrained-domain, Riemannian or stochastic method is covered; this is shared optimization background, not companion-paper progress.
  • The source prints h≤1/β without stating h≥0. Nonnegative step is essential: f(t)=t²/2, α=β=1 and h=−1 gives T(t)=2t, contradicting the claimed factor √2 for distinct points. The reciprocal formula additionally needs β>0. The stray gradient before y−x in the middle proof display is a transcription typo, resolved by the preceding expansion and Proposition1.6.
  • The source specializes to h=1/β and κ=β/α. For 0<α≤β, r^N=(1−1/κ)^(N/2) and the exponential factor is exp(−N/(2κ)). This unit does not formalize the subsequent logarithmic iteration-complexity statement or the improved step of Exercise3.2.

Source and reuse

ASTIS parents called

Mathlib API called (external library)

  • UniformConvexOn.convexOn; ContDiff.differentiable_one; DifferentiableAt.hasGradientAt
  • norm_sub_sq_real; inner_smul_right; norm_smul; mul_le_mul_of_nonneg_left; Real.le_sqrt_of_sq_le; Real.sqrt_mul'; Real.sqrt_sq

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.

ASTIS mathematical exposition

Gradient descent approaches a global minimizer

AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentContraction.gradient_descent_distance_bound · theorem · Teaching coverage

Statement

For any actual global minimizer x⋆, any initial point x₀ and every natural N (including zero), the actual Nth iterate satisfies the geometric and exponential distance estimates.

\[\begin{gathered}T(x)=x-h\nabla f(x),\\r=\sqrt{1-\alpha h},\quad R=\|x_0-x_\star\|,\\f(y)\le f(x)+\langle\nabla f(x),y-x\rangle\\{}+\frac\beta2\|y-x\|^2,\\\|T^N(x_0)-x_\star\|\le r^N R,\\r^N R\le e^{-\alpha hN/2}R.\end{gathered}\]

All objects and hypotheses

  • E is a complete real inner-product space, f:E→ℝ is C¹, and all point quantifiers range over E. The gradient is the genuine Riesz representative of its Fréchet derivative.
  • The real parameters α, β and h are nonnegative and βh≤1.
  • f is α-strongly convex on all E: the convex chord inequality has the subtraction (α/2)t(1−t)‖y−x‖² for t∈[0,1]. The displayed β quadratic upper model holds for all x,y.
  • Write T(x)=x−h∇f(x) and r=√(1−αh), with the nonnegative real square root (zero on negative arguments).
  • x⋆ is a supplied global minimizer: f(x⋆)≤f(y) for every y∈E. N is a natural number, T^N denotes function iteration (T⁰ is the identity), and R=‖x₀−x⋆‖. No minimizer existence theorem is claimed.

Mathematical proof

1. Derive the fixed point from the actual minimum

Write x⋆ for the supplied global minimizer, x₀ for the initial point, N∈ℕ for the iteration count, R=‖x₀−x⋆‖, T(x)=x−h∇f(x), and r=√(1−αh). A global minimum on the whole space is a local minimum. Fermat’s theorem sets its Fréchet derivative to zero, so the Riesz gradient vanishes.

\[\nabla f(x_\star)=0,\qquad T(x_\star)=x_\star.\]
Corresponding Lean step

IsMinOn.isLocalMin with Filter.univ_mem; IsLocalMin.fderiv_eq_zero; gradient and map_zero simplification.

2. Iterate the Lipschitz map

The single-step result means T is r-Lipschitz. Its Nth iterate is r^N-Lipschitz, and x⋆ stays fixed under every iterate. Apply the iterated bound to x₀ and x⋆. N=0 is included.

\[\|T^N(x_0)-x_\star\|\le r^N R.\]
Corresponding Lean step

gradient_step_contraction; lipschitzWith_iff_norm_sub_le; Real.toNNReal; LipschitzWith.iterate.dist_le_mul; Function.IsFixedPt.iterate.

3. Compare with the exponential

The real inequality 1−a≤e^(−a), applied with a=αh, implies r≤e^(−αh/2). Both sides are nonnegative, so taking natural powers and multiplying by R≥0 preserves order. The exponential product identity gives the final formula.

\[\begin{gathered}1-\alpha h\le e^{-\alpha h},\\r\le e^{-\alpha h/2},\\r^NR\le e^{-\alpha hN/2}R.\end{gathered}\]
Corresponding Lean step

Real.add_one_le_exp; Real.sqrt_le_left; Real.exp_add; pow_le_pow_left₀; Real.exp_nat_mul.

Lean statement · gradient_descent_distance_bound

For any actual global minimizer x⋆, any initial point x₀ and every natural N (including zero), the actual Nth iterate satisfies the geometric and exponential distance estimates.

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 gradient_descent_distance_bound {f : E → ℝ} {α β h : ℝ}
    (hf : ContDiff ℝ 1 f) (hsc : StrongConvexOn univ α f)
    (hα : 0 ≤ α) (hβ : 0 ≤ β) (hh : 0 ≤ h) (hstep : β * h ≤ 1)
    (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
    {xstar : E} (hmin : IsMinOn f univ xstar) (x₀ : E) (N : ℕ) :
    ‖(fun x => x - h • gradient f x)^[N] x₀ - xstar‖ ≤
        Real.sqrt (1 - α * h) ^ N * ‖x₀ - xstar‖ ∧
      Real.sqrt (1 - α * h) ^ N * ‖x₀ - xstar‖ ≤
        Real.exp (-(α * h * N) / 2) * ‖x₀ - xstar‖

Exact module and namespace context

Lean proof · gradient_descent_distance_bound

Write x⋆ for the supplied global minimizer, x₀ for the initial point, N∈ℕ for the iteration count, R=‖x₀−x⋆‖, T(x)=x−h∇f(x), and r=√(1−αh). A global minimum on the whole space is a local minimum. Fermat’s theorem sets its Fréchet derivative to zero, so the Riesz gradient vanishes. The single-step result means T is r-Lipschitz. Its Nth iterate is r^N-Lipschitz, and x⋆ stays fixed under every iterate. Apply the iterated bound to x₀ and x⋆. N=0 is included. The real inequality 1−a≤e^(−a), applied with a=αh, implies r≤e^(−αh/2). Both sides are nonnegative, so taking natural powers and multiplying by R≥0 preserves order. The exponential product identity gives the final formula.

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 gradient_descent_distance_bound {f : E → ℝ} {α β h : ℝ}
    (hf : ContDiff ℝ 1 f) (hsc : StrongConvexOn univ α f)
    (hα : 0 ≤ α) (hβ : 0 ≤ β) (hh : 0 ≤ h) (hstep : β * h ≤ 1)
    (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
    {xstar : E} (hmin : IsMinOn f univ xstar) (x₀ : E) (N : ℕ) :
    ‖(fun x => x - h • gradient f x)^[N] x₀ - xstar‖ ≤
        Real.sqrt (1 - α * h) ^ N * ‖x₀ - xstar‖ ∧
      Real.sqrt (1 - α * h) ^ N * ‖x₀ - xstar‖ ≤
        Real.exp (-(α * h * N) / 2) * ‖x₀ - xstar‖ := by
  let T : E → E := fun x => x - h • gradient f x
  have hg : gradient f xstar = 0 := by
    simp [gradient, (hmin.isLocalMin Filter.univ_mem).fderiv_eq_zero]
  have hfix : Function.IsFixedPt T xstar := by simp [Function.IsFixedPt, T, hg]
  have hl : LipschitzWith (Real.toNNReal (Real.sqrt (1 - α * h))) T := by
    rw [lipschitzWith_iff_norm_sub_le]
    intro x y
    simpa only [Real.coe_toNNReal _ (Real.sqrt_nonneg _)] using
      gradient_step_contraction hf hsc hα hβ hh hstep hu y x
  constructor
  · have hi := (hl.iterate N).dist_le_mul x₀ xstar
    simpa only [dist_eq_norm, (hfix.iterate N).eq, NNReal.coe_pow, Real.coe_toNNReal _ (Real.sqrt_nonneg _), T] using hi
  · have he : Real.sqrt (1 - α * h) ≤ Real.exp (-(α * h) / 2) := by
      apply (Real.sqrt_le_left (Real.exp_nonneg _)).mpr
      have hx := Real.add_one_le_exp (-(α * h))
      rw [pow_two, ← Real.exp_add, show -(α * h) / 2 + -(α * h) / 2 = -(α * h) by ring]
      simpa only [sub_eq_add_neg, add_comm] using hx
    have hp := pow_le_pow_left₀ (Real.sqrt_nonneg _) he N
    have hr := mul_le_mul_of_nonneg_right hp (norm_nonneg (x₀ - xstar))
    rw [← Real.exp_nat_mul, show (N : ℝ) * (-(α * h) / 2) =
      -(α * h * N) / 2 by ring] at hr
    exact hr

end AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentContraction

Exact module and namespace context

Source assumptions versus formal assumptions

SourceActual LeanDifference kindWhy it matters
C² on Euclidean d-space.C¹ on a complete real inner-product space.generalizationOnly genuine first derivatives, Riesz representation, first-order curvature and inner-product algebra are used; no Hessian, integration or finite dimension is required.
The source prints h≤1/β.h≥0, β≥0 and βh≤1.mathematically-necessaryThe source prints h≤1/β without stating h≥0. Nonnegative step is essential: f(t)=t²/2, α=β=1 and h=−1 gives T(t)=2t, contradicting the claimed factor √2 for distinct points. The reciprocal formula additionally needs β>0. The stray gradient before y−x in the middle proof display is a transcription typo, resolved by the preceding expansion and Proposition1.6. The β=0 division-free case is an explicit extension, not a totalized reciprocal interpretation.
Nonnegative curvature moduli; the rate uses κ=β/α≥1.α≥0, β≥0; factor sqrt(1−αh) raised to a natural power.generalizationNo unnecessary α≤β premise on a singleton Hilbert space; a negative coefficient forces all relevant distances to be zero. For positive compatible moduli and h=1/β the source condition-number formula is recovered.
Take y as a global minimizer x⋆ and iterate at h=1/β.IsMinOn f Set.univ xstar and actual Function.iterate at any admitted h, all N:ℕ.generalizationStationarity and fixed-point behavior follow from Fermat, not from an extra supplied-gradient hypothesis. N=0 and h=0 are retained; existence of a minimizer is not proved.

C¹ on a complete real inner-product space is an explicit extension of the section’s C² Euclidean setting. The source reciprocal restriction is recovered for β>0; the division-free statement also includes β=0 and h=0. If 1−αh<0, the squared bound forces every pairwise distance to vanish, so the norm result remains valid on a singleton space without an unjustified α≤β assumption. No constrained-domain, Riemannian or stochastic method is covered; this is shared optimization background, not companion-paper progress. The source prints h≤1/β without stating h≥0. Nonnegative step is essential: f(t)=t²/2, α=β=1 and h=−1 gives T(t)=2t, contradicting the claimed factor √2 for distinct points. The reciprocal formula additionally needs β>0. The stray gradient before y−x in the middle proof display is a transcription typo, resolved by the preceding expansion and Proposition1.6. The source specializes to h=1/β and κ=β/α. For 0<α≤β, r^N=(1−1/κ)^(N/2) and the exponential factor is exp(−N/(2κ)). This unit does not formalize the subsequent logarithmic iteration-complexity statement or the improved step of Exercise3.2.

Encoder–denoiser: accepted · implicit-assumption-exposed

Detected semantic differences

  • domains: Disclosed extension from Euclidean C2 objectives to complete real Hilbert C1 objectives. — The formal hypotheses retain the global curvature and upper model; the original setting is a specialization.
  • quantifiers: Uniform admissible-step extension with natural-power endpoint convention. — The source reciprocal-step instance is recovered for β>0; N=0 yields R≤R. The supplied global minimizer follows the source convention.
  • assumptions: Nonnegative-step condition remains explicit in the reused one-step parent. — The rate paragraph itself selects h=1/β>0 in its positive-modulus domain. No new source repair is required for this rate binding.

A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.

Scope and omitted-condition boundaries

  • C¹ on a complete real inner-product space is an explicit extension of the section’s C² Euclidean setting. The source reciprocal restriction is recovered for β>0; the division-free statement also includes β=0 and h=0. If 1−αh<0, the squared bound forces every pairwise distance to vanish, so the norm result remains valid on a singleton space without an unjustified α≤β assumption. No constrained-domain, Riemannian or stochastic method is covered; this is shared optimization background, not companion-paper progress.
  • The source prints h≤1/β without stating h≥0. Nonnegative step is essential: f(t)=t²/2, α=β=1 and h=−1 gives T(t)=2t, contradicting the claimed factor √2 for distinct points. The reciprocal formula additionally needs β>0. The stray gradient before y−x in the middle proof display is a transcription typo, resolved by the preceding expansion and Proposition1.6.
  • The source specializes to h=1/β and κ=β/α. For 0<α≤β, r^N=(1−1/κ)^(N/2) and the exponential factor is exp(−N/(2κ)). This unit does not formalize the subsequent logarithmic iteration-complexity statement or the improved step of Exercise3.2.

Source and reuse

ASTIS parents called

Mathlib API called (external library)

  • IsMinOn.isLocalMin; IsLocalMin.fderiv_eq_zero; gradient
  • lipschitzWith_iff_norm_sub_le; LipschitzWith.iterate; LipschitzWith.dist_le_mul; Function.IsFixedPt.iterate
  • Real.sqrt_le_left; Real.add_one_le_exp; Real.exp_add; pow_le_pow_left₀; Real.exp_nat_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.

ASTIS mathematical exposition

A logarithmic iteration budget gives distance accuracy

AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentComplexity.distance_le_of_log_bound · theorem · Teaching coverage

Statement

E is a complete real inner-product space; f:E→R is continuously Frechet differentiable. Its gradient is its actual Riesz gradient. Alpha, beta and epsilon are strictly positive. The objective is alpha-strongly convex on E, with the alpha/2 quadratic convention. For every x,y, f(y)<=f(x)+<gradient f(x),y-x>+(beta/2)||y-x||². This is the source smoothness upper model. A global minimizer xstar is supplied. The initial point x0 is arbitrary and N is a natural number, including zero. X_N is exactly N iterations of x ↦ x-beta⁻¹ gradient f(x). Write R=||x0-xstar||. If R>0, assume 2(beta/alpha)log(R/epsilon)<=N. When R=0 no logarithmic threshold is required. Then the actual final iterate has distance at most epsilon from xstar.

\[\begin{gathered}X_N=(\mathrm{id}-\beta^{-1}\nabla f)^N(x_0),\quad R=\|x_0-x_\star\|,\\\bigl(R>0\Rightarrow N\ge2(\beta/\alpha)\log(R/\varepsilon)\bigr)\quad\Longrightarrow\quad\|X_N-x_\star\|\le\varepsilon.\end{gathered}\]

All objects and hypotheses

  • E is a complete real inner-product space; f:E→R is continuously Frechet differentiable. Its gradient is its actual Riesz gradient.
  • Alpha, beta and epsilon are strictly positive. The objective is alpha-strongly convex on E, with the alpha/2 quadratic convention.
  • For every x,y, f(y)<=f(x)+<gradient f(x),y-x>+(beta/2)||y-x||². This is the source smoothness upper model.
  • A global minimizer xstar is supplied. The initial point x0 is arbitrary and N is a natural number, including zero. X_N is exactly N iterations of x ↦ x-beta⁻¹ gradient f(x).
  • Write R=||x0-xstar||. If R>0, assume 2(beta/alpha)log(R/epsilon)<=N. When R=0 no logarithmic threshold is required.

Mathematical proof

1. Use the actual exponential contraction

Apply the existing distance theorem at the positive step h=1/beta. Its first conclusion bounds the actual iterate by the geometric factor; compose it with the second conclusion to obtain the exponential bound.

\[\|X_N-x_\star\|\le e^{-\alpha N/(2\beta)}R.\]
Corresponding Lean step

GradientDescentContraction.gradient_descent_distance_bound; compose its two inequalities with trans.

2. Separate the stationary initial point

If R=0, the exponential bound has zero right-hand side. Thus every iterate has zero distance and meets any positive tolerance. This branch uses neither a real logarithm at zero nor a positive iteration count.

\[R=0\quad\Longrightarrow\quad\|X_N-x_\star\|=0\le\varepsilon.\]
Corresponding Lean step

Case split on the initial norm; simplify the existing bound.

3. Invert the exponential estimate on its positive domain

For R>0, the ratio R/epsilon is positive. Multiply the threshold by alpha/beta>0 and divide by two. The log comparison gives R/epsilon<=exp(alpha N/(2beta)). Multiply by exp(-alpha N/(2beta)) and then by epsilon>0; the two exponential factors cancel. Combining with the first step proves the accuracy bound.

\[\log(R/\varepsilon)\le\frac{\alpha N}{2\beta}\ \Longrightarrow\ \frac R\varepsilon\le e^{\alpha N/(2\beta)}\ \Longrightarrow\ e^{-\alpha N/(2\beta)}R\le\varepsilon.\]
Corresponding Lean step

Real.log_le_iff_le_exp, Real.exp_pos, Real.exp_add and div_le_iff₀; positive alpha and beta justify reciprocal cancellation.

Lean statement · distance_le_of_log_bound

Positive-domain logarithmic budget for actual gradient iterates.

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 distance_le_of_log_bound {f : E → ℝ} {α β ε : ℝ}
    (hf : ContDiff ℝ 1 f) (hsc : StrongConvexOn univ α f)
    (hα : 0 < α) (hβ : 0 < β) (hε : 0 < ε)
    (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y-x) + β/2*‖y-x‖^2)
    {xstar : E} (hmin : IsMinOn f univ xstar) (x₀ : E) (N : ℕ)
    (hN : 0 < ‖x₀-xstar‖ → 2 * (β / α) * Real.log (‖x₀-xstar‖ / ε) ≤ (N : ℝ)) :
    ‖(fun x => x - β⁻¹ • gradient f x)^[N] x₀ - xstar‖ ≤ ε

Exact module and namespace context

Lean proof · distance_le_of_log_bound

Apply the existing distance theorem at the positive step h=1/beta. Its first conclusion bounds the actual iterate by the geometric factor; compose it with the second conclusion to obtain the exponential bound. If R=0, the exponential bound has zero right-hand side. Thus every iterate has zero distance and meets any positive tolerance. This branch uses neither a real logarithm at zero nor a positive iteration count. For R>0, the ratio R/epsilon is positive. Multiply the threshold by alpha/beta>0 and divide by two. The log comparison gives R/epsilon<=exp(alpha N/(2beta)). Multiply by exp(-alpha N/(2beta)) and then by epsilon>0; the two exponential factors cancel. Combining with the first step proves the accuracy bound.

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 distance_le_of_log_bound {f : E → ℝ} {α β ε : ℝ}
    (hf : ContDiff ℝ 1 f) (hsc : StrongConvexOn univ α f)
    (hα : 0 < α) (hβ : 0 < β) (hε : 0 < ε)
    (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y-x) + β/2*‖y-x‖^2)
    {xstar : E} (hmin : IsMinOn f univ xstar) (x₀ : E) (N : ℕ)
    (hN : 0 < ‖x₀-xstar‖ → 2 * (β / α) * Real.log (‖x₀-xstar‖ / ε) ≤ (N : ℝ)) :
    ‖(fun x => x - β⁻¹ • gradient f x)^[N] x₀ - xstar‖ ≤ ε := by
  have hi := GradientDescentContraction.gradient_descent_distance_bound hf hsc
    hα.le hβ.le (inv_nonneg.mpr hβ.le) (by simp [ne_of_gt hβ]) hu hmin x₀ N
  have he := hi.1.trans hi.2
  by_cases hR : ‖x₀-xstar‖ = 0
  · simpa [hR] using he.trans (by simpa [hR] using hε.le)
  · have hRp : 0 < ‖x₀-xstar‖ := lt_of_le_of_ne (norm_nonneg _) (Ne.symm hR)
    have ht := mul_le_mul_of_nonneg_left (hN hRp) (div_nonneg hα.le hβ.le)
    have hc : (α / β) * (2 * (β / α) * Real.log (‖x₀-xstar‖ / ε)) =
        2 * Real.log (‖x₀-xstar‖ / ε) := by field_simp
    rw [hc] at ht
    have hl : Real.log (‖x₀-xstar‖ / ε) ≤ α * β⁻¹ * N / 2 := by
      rw [div_eq_mul_inv α β] at ht
      nlinarith [ht]
    have hex := (Real.log_le_iff_le_exp (div_pos hRp hε)).mp hl
    have hb : Real.exp (-(α * β⁻¹ * N) / 2) * ‖x₀-xstar‖ ≤ ε := by
      have hm := mul_le_mul_of_nonneg_left hex (le_of_lt (Real.exp_pos (-(α * β⁻¹ * N) / 2)))
      have hid : Real.exp (-(α * β⁻¹ * N) / 2) * Real.exp (α * β⁻¹ * N / 2) = 1 := by
        rw [← Real.exp_add]; ring_nf; exact Real.exp_zero
      rw [hid] at hm
      have hh := (div_le_iff₀ hε).mp (show (Real.exp (-(α * β⁻¹ * N) / 2) * ‖x₀-xstar‖) / ε ≤ 1 by simpa [mul_div_assoc] using hm)
      simpa using hh
    exact he.trans hb

end AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentComplexity

Exact module and namespace context

Source assumptions versus formal assumptions

SourceActual LeanDifference kindWhy it matters
C2 Euclidean objective with strong convexity and beta smoothness.C1 complete real Hilbert objective with the global quadratic upper model and actual gradient.generalizationReuses the independently reviewed contraction parent without additional analytic assumptions.
h=1/beta and kappa=beta/alpha, in the positive condition-number regime.Alpha>0,beta>0 and exact h=beta inverse; no additional alpha<=beta premise.generalizationPositive moduli make the reciprocal step admissible. The parent also handles degenerate singleton spaces; no separate condition-number variable or negative step is used.
Distance accuracy epsilon and logarithmic threshold log(R/epsilon).Epsilon>0; threshold required only if R>0; N may be zero.source-implicitThe ordinary logarithmic argument must be positive. R0 has exact stationary distance; an already accurate start needs no updates. This makes the domain explicit without altering the positive-radius source bound.
The rate is about an actual global minimizer.IsMinOn f univ xstar and actual Function.iterate.sameNo existence theorem or surrogate recurrence is substituted.

This closes the logarithmic-complexity obligation of Theorem3.3 by integrating the existing actual-iterate contraction; it does not reprove that contraction. Earlier binding-local statements that exclude complexity retain their historical scope. C1 on a complete real Hilbert space generalizes the source C2 Euclidean setting. The explicit quadratic upper model is sufficient; no Hessian or finite dimension is used. The source condition number is beta/alpha. Alpha<=beta is not needed as an additional hypothesis: the parent theorem handles a singleton space too. On the ordinary nontrivial source setting the usual compatible-modulus regime is recovered. Positive moduli and positive accuracy expose the denominator and logarithm domains. R=0 is treated without log0; for 0<R<=epsilon the threshold is nonpositive, so N=0 is allowed. The sufficient integer budget can be the natural ceiling of the real threshold when R>0, and zero when R=0. The compiled quadratic consumer also uses Lean totalized log0 inside its ceiling expression; its zero-radius proof is independent of that expression. No minimality or lower complexity bound is claimed. A minimizer is assumed, not constructed. No full Table1, Chapter3 exercises, Riemannian or stochastic convergence, or companion-paper result is claimed.

Encoder–denoiser: accepted · implicit-assumption-exposed

Detected semantic differences

  • domains: Disclosed extension from Euclidean C2 objectives to complete real Hilbert C1 objectives. — The formal hypotheses retain the global curvature and upper model; the original setting is a specialization.
  • assumptions: Positive denominator and logarithm domains are explicit. — The rate uses finite positive κ and positive accuracy. Conditional R>0 handling adds the stationary-start case without changing the source positive-R formula.
  • quantifiers: Zero iterations and already accurate initial points are explicitly included. — If R≤ε the exponential estimate and nonnegative iteration count already suffice. No positive iteration-count assumption or logarithm at zero is needed.

A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.

Scope and omitted-condition boundaries

  • This closes the logarithmic-complexity obligation of Theorem3.3 by integrating the existing actual-iterate contraction; it does not reprove that contraction. Earlier binding-local statements that exclude complexity retain their historical scope.
  • C1 on a complete real Hilbert space generalizes the source C2 Euclidean setting. The explicit quadratic upper model is sufficient; no Hessian or finite dimension is used.
  • The source condition number is beta/alpha. Alpha<=beta is not needed as an additional hypothesis: the parent theorem handles a singleton space too. On the ordinary nontrivial source setting the usual compatible-modulus regime is recovered.
  • Positive moduli and positive accuracy expose the denominator and logarithm domains. R=0 is treated without log0; for 0<R<=epsilon the threshold is nonpositive, so N=0 is allowed.
  • The sufficient integer budget can be the natural ceiling of the real threshold when R>0, and zero when R=0. The compiled quadratic consumer also uses Lean totalized log0 inside its ceiling expression; its zero-radius proof is independent of that expression. No minimality or lower complexity bound is claimed.
  • A minimizer is assumed, not constructed. No full Table1, Chapter3 exercises, Riemannian or stochastic convergence, or companion-paper result is claimed.

Source and reuse

ASTIS parents called

Mathlib API called (external library)

  • Real.log_le_iff_le_exp
  • Real.exp_pos
  • Real.exp_add
  • div_le_iff₀

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.

Which proof edges are actually covered?

  • Local proof component; source adapter/review separate Single-step contraction with the necessary step domain explicit
  • Local proof component; source adapter/review separate Geometric and exponential distance bounds about an actual minimizer
  • Local proof component; source adapter/review separate Subsequent logarithmic iteration-complexity consequence with its positive domains

Theorem3.4 · gradient-descent function values

Sinho Chewi, Lectures on Optimization. ASTIS-authored paraphrase; no endorsement implied.

arXiv:2605.07006v1 · Theorem3.4 (3.1)-(3.3), Lemma3.1, weighted calculation after Lemma3.5 · faithful paraphrase

Complete source statement (ASTIS restatement)

In the section C² Euclidean setting, strong convexity and smoothness give a distance-plus-function decrement for the gradient update. Remark (3.3) allows any comparator z. Applying the forced recurrence and monotonic function values gives the weighted final-gap estimate, then the printed inverse-power closed form and the convex limiting rate. The source prints only h≤1/β; the missing nonnegative-step condition and singular reciprocal endpoints remain visible in separate binding deltas.

  • f is C², α-strongly convex and β-smooth on Euclidean space, with nonnegative curvature moduli.
  • The printed step restriction is h≤1/β. The recurrence lemma uses a positive coefficient A; the closed-form calculation sets A=1−αh.
  • For the displayed optimization rate, x⋆ is a minimizer, R=‖x₀−x⋆‖, N is an iteration count. The α=0 formula is explicitly interpreted as a limit.

General comparator energy (3.3)

\[\begin{gathered}\|T(x)-z\|^2+2h(f(T(x))-f(z))\\\le(1-\alpha h)\|x-z\|^2.\end{gathered}\]

Weighted final-gap proof

\[\begin{gathered}x_n=T^n(x_0),\quad q=1-\alpha h\ge0,\\S_N=\sum_{k=0}^{N-1}q^k,\quad R=\|x_0-z\|,\\2hS_N(f(x_N)-f(z))\le q^N R^2.\end{gathered}\]

Printed inverse-power rate (positive denominator domain)

\[f(x_N)-f(x_\star)\le\frac{\alpha R^2}{2(q^{-N}-1)}\]

Convex limiting rate

\[f(x_N)-f(x_\star)\le\frac{R^2}{2Nh}\]

Read the formalized proofs

Each statement and proof below has its own closed Lean disclosure. ASTIS parents, Mathlib calls and external mathematical sources are distinguished in each proof.

ASTIS mathematical exposition

One gradient step controls comparator energy

AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentValue.gradient_step_energy_bound · theorem · Teaching coverage

Statement

For every x,z, one actual gradient step obeys the displayed distance-plus-function energy bound.

\[\begin{gathered}T(x)=x-h\nabla f(x),\\f(y)\le f(x)+\langle\nabla f(x),y-x\rangle+\frac\beta2\|y-x\|^2.\\\|T(x)-z\|^2+2h(f(T(x))-f(z))\\\le(1-\alpha h)\|x-z\|^2.\end{gathered}\]

All objects and hypotheses

  • E is a complete real inner-product space and f:E→ℝ is C¹ globally. Its gradient is the actual Riesz representative of its Fréchet derivative.
  • α,β,h are real numbers; h≥0 and βh≤1. No separate nonnegative-modulus assumption is needed by these two inequalities.
  • f is globally α-strongly convex in the chord sense with subtraction (α/2)t(1−t)‖y−x‖². The β quadratic upper model displayed below holds for every x,y in E.
  • T(x)=x−h∇f(x). The comparator z is arbitrary, so f(x)−f(z) may be negative. No minimizer is assumed or constructed.

Mathematical proof

1. Compute descent for the actual gradient step

Put g=∇f(x) and s=T(x)=x−hg. Apply the upper model at x,s. Since h≥0 and βh≤1, βh²‖g‖²≤h‖g‖². This proves the source Lemma3.1 descent estimate using the canonical shared descent interface.

\[\begin{gathered}f(s)-f(x)\le-h\|g\|^2+\tfrac\beta2h^2\|g\|^2,\\f(s)-f(x)\le-\tfrac h2\|g\|^2.\end{gathered}\]
Corresponding Lean step

AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentBasic.gradient_step_descent_of_quadratic_upper_bound; inner_smul_right, real_inner_self_eq_norm_sq, norm_smul, mul_le_mul_of_nonneg_right.

2. Use strong first-order support at an arbitrary comparator

The compiled first-order support theorem follows from the source chord definition and the genuine gradient, supplied by C¹ differentiability. Set v=x−z and g=∇f(x). No minimum condition on z enters.

\[f(z)\ge f(x)-\langle g,v\rangle+\tfrac\alpha2\|v\|^2.\]
Corresponding Lean step

StrongConvexFirstOrder.firstOrder_lower_bound_of_strongConvexOn; ContDiff.differentiable_one; DifferentiableAt.hasGradientAt.

3. Expand and cancel the gradient square

Multiply each function inequality by 2h≥0 and insert the exact squared-distance expansion. The h²‖g‖² terms cancel. This gives the stated one-step energy inequality even when the comparator gap is negative.

\[\begin{gathered}\|v-hg\|^2=\|v\|^2-2h\langle g,v\rangle+h^2\|g\|^2,\\\|T(x)-z\|^2+2h(f(T(x))-f(z))\\\le(1-\alpha h)\|v\|^2.\end{gathered}\]
Corresponding Lean step

norm_sub_sq_real; inner_smul_right; real_inner_comm; norm_smul; two nonnegative multiplications and nlinarith.

Lean statement · gradient_step_energy_bound

Actual-gradient one-step arbitrary-comparator energy bound.

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 gradient_step_energy_bound {f : E → ℝ} {α β h : ℝ}
    (hf : ContDiff ℝ 1 f) (hsc : StrongConvexOn univ α f)
    (hh : 0 ≤ h) (hstep : β * h ≤ 1)
    (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
    (x z : E) :
    ‖x - h • gradient f x - z‖ ^ 2 + 2 * h * (f (x - h • gradient f x) - f z) ≤
      (1 - α * h) * ‖x - z‖ ^ 2

Exact module and namespace context

Lean proof · gradient_step_energy_bound

Put g=∇f(x) and s=T(x)=x−hg. Apply the upper model at x,s. Since h≥0 and βh≤1, βh²‖g‖²≤h‖g‖². This proves the source Lemma3.1 descent estimate using the canonical shared descent interface. The compiled first-order support theorem follows from the source chord definition and the genuine gradient, supplied by C¹ differentiability. Set v=x−z and g=∇f(x). No minimum condition on z enters. Multiply each function inequality by 2h≥0 and insert the exact squared-distance expansion. The h²‖g‖² terms cancel. This gives the stated one-step energy inequality even when the comparator gap is negative.

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 gradient_step_energy_bound {f : E → ℝ} {α β h : ℝ}
    (hf : ContDiff ℝ 1 f) (hsc : StrongConvexOn univ α f)
    (hh : 0 ≤ h) (hstep : β * h ≤ 1)
    (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
    (x z : E) :
    ‖x - h • gradient f x - z‖ ^ 2 + 2 * h * (f (x - h • gradient f x) - f z) ≤
      (1 - α * h) * ‖x - z‖ ^ 2 := by
  have hl := StrongConvexFirstOrder.firstOrder_lower_bound_of_strongConvexOn
    hsc (fun w _ => (hf.differentiable_one w).hasGradientAt) (mem_univ x) (mem_univ z)
  have hd := GradientDescentBasic.gradient_step_descent_of_quadratic_upper_bound hh hstep hu x
  have hn : z - x = -(x - z) := by abel
  rw [hn, inner_neg_right, norm_neg] at hl
  have hl' := mul_le_mul_of_nonneg_left hl (by positivity : 0 ≤ 2 * h)
  have hd' := mul_le_mul_of_nonneg_left hd (by positivity : 0 ≤ 2 * h)
  rw [show x - h • gradient f x - z = (x - z) - h • gradient f x by abel,
    norm_sub_sq_real, inner_smul_right, real_inner_comm (gradient f x),
    norm_smul, Real.norm_eq_abs, mul_pow, sq_abs]
  nlinarith

/-- Weighted final function gap for actual gradient-descent iterates. The
coefficient domain is explicit and includes both zero and one. -/

Exact module and namespace context

Source assumptions versus formal assumptions

SourceActual LeanDifference kindWhy it matters
C² Euclidean objective.C¹ objective on a complete real inner-product space.generalizationOnly genuine first derivatives, first-order support and inner-product algebra enter.
h≤1/β, with h≥0 omitted.h≥0 and βh≤1.mathematically-necessaryThe source prints h≤1/β without h≥0. The latter is essential: f(t)=t²/2, α=0, β=1, x=0, z=1 and h=−1 meet the printed upper restriction, but (3.3) would assert 2≤1. The division-free βh≤1 presentation includes β=0; it agrees with the printed reciprocal restriction only for β>0.
Nonnegative strong convexity and smoothness moduli.α and β are real; no additional sign assumptions.generalizationThe one-step argument uses only the two stated models and h≥0. Signed moduli are a disclosed extension; no reciprocal is used.
Minimizer in (3.1), arbitrary z explicitly in (3.3).Arbitrary comparator z; signed function gap.sameThe source expressly supplies this general comparator inequality; the weighted proof needs gap monotonicity, not gap positivity.

This is shared optimization textbook mathematics, not companion-paper progress. C¹ on a complete real Hilbert space generalizes the section’s C² Euclidean setting. Signed α and β are explicit extensions of the nonnegative source moduli; no reciprocal of either is used. The actual comparator formulation is justified by source (3.3). The source prints h≤1/β without h≥0. The latter is essential: f(t)=t²/2, α=0, β=1, x=0, z=1 and h=−1 meet the printed upper restriction, but (3.3) would assert 2≤1. The division-free βh≤1 presentation includes β=0; it agrees with the printed reciprocal restriction only for β>0.

Encoder–denoiser: accepted · possible-source-error

Detected semantic differences

  • domains: Disclosed C1 Hilbert and signed-parameter generalization of the source domain. — Current packet lesson assumptions and elaborated statement.
  • assumptions: The nonnegative-step assumption is necessary and missing from the printed source restriction. — For f(t)=t^2/2, alpha=1/2,beta=1,h=-1,x=0,z=1, source (3.3) energy left side is 2 and right side is 3/2. For descent at x=1, f(2)-f(1)=3/2>1/2. Hence the h>=0 boundary cannot be erased.
  • scopes: Current full-module publication provenance now uses the canonical public descent interface. — Read the complete current GDValue module with both public proofs. The old private descent theorem is absent; the import and both descent calls use GradientDescentBasic.gradient_step_descent_of_quadratic_upper_bound. Read the full current shared Basic source and verified its h>=0, beta h<=1 and upper-model premises match those at both call sites. Both lessons replace the private-helper explanation with the exact canonical public name and list it in ASTIS dependencies. This review does not rely on an immutable historical acceptance.

Proposed source repair — not the original theorem

For a C2 alpha-convex beta-smooth Euclidean function with beta>0, restrict the step to 0<=h<=1/beta and set T(x)=x-h grad f(x). Then f(T(x))-f(x)<=-(h/2)||grad f(x)||^2. For every comparator z, ||T(x)-z||^2+2h(f(T(x))-f(z))<=(1-alpha h)||x-z||^2. This proposal corrects only the missing nonnegative-step domain in Lemma3.1 and (3.1)/(3.3); it makes no claim about the printed inverse-power rate at singular endpoints.

Add h>=0 to the printed h<=1/beta condition for the descent and one-step energy assertions. Preserve the pinned source separately. Do not alter the signed-parameter Hilbert-space generalization or claim to repair the singular inverse-power rate.

Classification: mathematically-necessary · Status: accepted

The source descent estimate and its general-comparator energy conclusion both fail for negative steps even with a smooth strongly convex quadratic; the proof multiplies inequalities by h or 2h and requires their signs.

Minimality: Adding only h>=0 preserves the admissible equality case h=0. The beta>0 reciprocal domain is unchanged. No stronger curvature, smoothness or minimizer hypothesis is proposed. Removing this lower bound admits the explicit counterexamples.

Evidence: {"counterexample": {"descent_missing_nonnegative_step": "Take f(t)=t^2/2 on R, beta=1,h=-1,x=1. The printed h<=1/beta holds; T(1)=2 and f(2)-f(1)=3/2 exceeds -(h/2)|grad f(1)|^2=1/2.", "general_comparator_energy_missing_nonnegative_step": "Take f(t)=t^2/2, alpha=1/2,beta=1,h=-1,x=0,z=1. This f is alpha-strongly convex and beta-smooth. T(0)=0; ||T(0)-1||^2+2h(f(T(0))-f(1))=2 while (1-alpha h)||0-1||^2=3/2. Thus the printed arbitrary-comparator claim fails.", "general_comparator_weighted_missing_nonnegative_step": "Same f,alpha,beta,h, take x0=0,z=1,N=2. q=3/2, g_N=-1/2, S2=5/2. Left side is 5/2 while right side is 9/4. This concerns the general-comparator extension, not a claim that the minimizer weighted inequality itself fails for negative h."}, "url": "https://arxiv.org/html/2605.07006v1#S3"}

A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.

Scope and omitted-condition boundaries

  • This is shared optimization textbook mathematics, not companion-paper progress. C¹ on a complete real Hilbert space generalizes the section’s C² Euclidean setting. Signed α and β are explicit extensions of the nonnegative source moduli; no reciprocal of either is used. The actual comparator formulation is justified by source (3.3).
  • The source prints h≤1/β without h≥0. The latter is essential: f(t)=t²/2, α=0, β=1, x=0, z=1 and h=−1 meet the printed upper restriction, but (3.3) would assert 2≤1. The division-free βh≤1 presentation includes β=0; it agrees with the printed reciprocal restriction only for β>0.

Source and reuse

ASTIS parents called

Mathlib API called (external library)

  • ContDiff.differentiable_one; DifferentiableAt.hasGradientAt
  • norm_sub_sq_real; inner_smul_right; real_inner_self_eq_norm_sq; norm_smul

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.

ASTIS mathematical exposition

A weighted bound on the final function value

AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentValue.gradient_descent_weighted_value_bound · theorem · Teaching coverage

Statement

For every initial point x₀, comparator z and natural N, actual iterates obey the displayed finite-geometric-sum bound under q≥0.

\[\begin{gathered}T(x)=x-h\nabla f(x),\\f(y)\le f(x)+\langle\nabla f(x),y-x\rangle+\frac\beta2\|y-x\|^2.\\x_n=T^n(x_0),\quad q=1-\alpha h\ge0,\\S_N=\sum_{k=0}^{N-1}q^k,\quad R=\|x_0-z\|,\\2hS_N(f(x_N)-f(z))\le q^N R^2.\end{gathered}\]

All objects and hypotheses

  • E is a complete real inner-product space and f:E→ℝ is C¹ globally. Its gradient is the actual Riesz representative of its Fréchet derivative.
  • α,β,h are real numbers; h≥0 and βh≤1. No separate nonnegative-modulus assumption is needed by these two inequalities.
  • f is globally α-strongly convex in the chord sense with subtraction (α/2)t(1−t)‖y−x‖². The β quadratic upper model displayed below holds for every x,y in E.
  • T(x)=x−h∇f(x). The comparator z is arbitrary, so f(x)−f(z) may be negative. No minimizer is assumed or constructed.
  • N∈ℕ, T⁰ is the identity, q=1−αh≥0 and S_N=Σ_(k=0)^(N−1)q^k; in particular S₀=0. No upper bound q≤1 is required by the weighted inequality.

Mathematical proof

1. Obtain a signed forced recurrence and monotonicity

Define x_n=T^n(x₀), u_n=‖x_n−z‖², g_n=f(x_n)−f(z), and q=1−αh≥0. The one-step energy inequality gives the recurrence, and shared descent gives g_(n+1)≤g_n. The gaps themselves need not be nonnegative.

\[\begin{gathered}u_{n+1}\le q u_n-2h g_{n+1},\\g_{n+1}\le g_n.\end{gathered}\]
Corresponding Lean step

gradient_step_energy_bound; AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentBasic.gradient_step_descent_of_quadratic_upper_bound; Function.iterate_succ_apply'; antitone_nat_of_succ_le.

2. Reuse product-form discrete Grönwall

Apply Mathlib’s recurrence theorem with constant coefficient q and forcing −2h g_(n+1). This theorem permits signed forcing. Constant products become powers; no inverse of q is introduced, so q=0 is admitted.

\[u_N\le q^N u_0-2h\sum_{k=0}^{N-1}q^{N-1-k}g_{k+1}.\]
Corresponding Lean step

discrete_gronwall_prod_general; Finset.prod_const; Nat.card_Ico; Nat.Ico_zero_eq_range; Finset.card_range.

3. Replace earlier gaps by the final gap

For k<N, monotonicity gives g_N≤g_(k+1). Multiply by the nonpositive coefficient −2h and then the nonnegative weight q^(N−1−k). Sum, discard u_N≥0, and reverse the finite index. Write S_N=Σ_(k=0)^(N−1)q^k and R=‖x₀−z‖. This proves the final bound also for N=0.

\[\begin{gathered}2h\sum_{k=0}^{N-1}q^{N-1-k}g_N\le q^N u_0,\\2hS_Ng_N\le q^N R^2.\end{gathered}\]
Corresponding Lean step

Finset.sum_le_sum; pow_nonneg; Finset.sum_range_reflect; Finset.mul_sum; sq_nonneg.

Lean statement · gradient_descent_weighted_value_bound

Actual-iterate finite weighted final comparator gap.

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 gradient_descent_weighted_value_bound {f : E → ℝ} {α β h : ℝ}
    (hf : ContDiff ℝ 1 f) (hsc : StrongConvexOn univ α f)
    (hh : 0 ≤ h) (hstep : β * h ≤ 1) (hcoeff : α * h ≤ 1)
    (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
    (x₀ z : E) (N : ℕ) :
    2 * h * (∑ k ∈ range N, (1 - α * h) ^ k) *
        (f ((fun x => x - h • gradient f x)^[N] x₀) - f z) ≤
      (1 - α * h) ^ N * ‖x₀ - z‖ ^ 2

Exact module and namespace context

Lean proof · gradient_descent_weighted_value_bound

Define x_n=T^n(x₀), u_n=‖x_n−z‖², g_n=f(x_n)−f(z), and q=1−αh≥0. The one-step energy inequality gives the recurrence, and shared descent gives g_(n+1)≤g_n. The gaps themselves need not be nonnegative. Apply Mathlib’s recurrence theorem with constant coefficient q and forcing −2h g_(n+1). This theorem permits signed forcing. Constant products become powers; no inverse of q is introduced, so q=0 is admitted. For k<N, monotonicity gives g_N≤g_(k+1). Multiply by the nonpositive coefficient −2h and then the nonnegative weight q^(N−1−k). Sum, discard u_N≥0, and reverse the finite index. Write S_N=Σ_(k=0)^(N−1)q^k and R=‖x₀−z‖. This proves the final bound also for N=0.

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 gradient_descent_weighted_value_bound {f : E → ℝ} {α β h : ℝ}
    (hf : ContDiff ℝ 1 f) (hsc : StrongConvexOn univ α f)
    (hh : 0 ≤ h) (hstep : β * h ≤ 1) (hcoeff : α * h ≤ 1)
    (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
    (x₀ z : E) (N : ℕ) :
    2 * h * (∑ k ∈ range N, (1 - α * h) ^ k) *
        (f ((fun x => x - h • gradient f x)^[N] x₀) - f z) ≤
      (1 - α * h) ^ N * ‖x₀ - z‖ ^ 2 := by
  let T : E → E := fun x => x - h • gradient f x
  let X : ℕ → E := fun n => T^[n] x₀
  let q : ℝ := 1 - α * h
  have hq : 0 ≤ q := sub_nonneg.mpr hcoeff
  have hX (n : ℕ) : X (n + 1) = T (X n) := Function.iterate_succ_apply' _ _ _
  have hm : Antitone (fun n => f (X n)) := by
    apply antitone_nat_of_succ_le
    intro n
    have hd := GradientDescentBasic.gradient_step_descent_of_quadratic_upper_bound hh hstep hu (X n)
    rw [hX]
    dsimp [T]
    have : 0 ≤ h / 2 * ‖gradient f (X n)‖ ^ 2 := by positivity
    linarith
  have hr (n : ℕ) (_ : 0 ≤ n) :
      ‖X (n + 1) - z‖ ^ 2 ≤ q * ‖X n - z‖ ^ 2 + (-2 * h * (f (X (n + 1)) - f z)) := by
    have he := gradient_step_energy_bound hf hsc hh hstep hu (X n) z
    rw [hX]
    dsimp [T, q]
    linarith
  have hg := discrete_gronwall_prod_general (u := fun n => ‖X n - z‖ ^ 2)
    (b := fun n => -2 * h * (f (X (n + 1)) - f z)) (c := fun _ => q) hr (fun _ _ => hq) (Nat.zero_le N)
  simp only [Finset.prod_const, Nat.card_Ico, Nat.Ico_zero_eq_range, Finset.card_range] at hg
  have hs : ∑ k ∈ range N, (-2 * h * (f (X (k + 1)) - f z)) * q ^ (N - (k + 1)) ≤
      ∑ k ∈ range N, (-2 * h * (f (X N) - f z)) * q ^ (N - (k + 1)) := by
    apply sum_le_sum
    intro k hk
    have hm' := hm (by have := mem_range.mp hk; omega : k + 1 ≤ N)
    apply mul_le_mul_of_nonneg_right _ (pow_nonneg hq _)
    have hh' : 0 ≤ 2 * h := by positivity
    nlinarith
  have hsum : (∑ k ∈ range N, q ^ (N - (k + 1))) = ∑ k ∈ range N, q ^ k := by
    rw [← sum_range_reflect (fun k => q ^ k) N]
    apply sum_congr rfl
    intro k _
    congr 1
    omega
  rw [← mul_sum, hsum] at hs
  have hu0 : X 0 = x₀ := rfl
  rw [hu0] at hg
  have huN := sq_nonneg ‖X N - z‖
  change 2 * h * (∑ k ∈ range N, q ^ k) * (f (X N) - f z) ≤ q ^ N * ‖x₀ - z‖ ^ 2
  nlinarith

end AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentValue

Exact module and namespace context

Source assumptions versus formal assumptions

SourceActual LeanDifference kindWhy it matters
C² Euclidean objective.C¹ objective on a complete real inner-product space.generalizationOnly genuine first derivatives, first-order support and inner-product algebra enter.
h≤1/β, with h≥0 omitted.h≥0 and βh≤1.mathematically-necessaryThe source prints h≤1/β without h≥0. The latter is essential: f(t)=t²/2, α=0, β=1, x=0, z=1 and h=−1 meet the printed upper restriction, but (3.3) would assert 2≤1. The division-free βh≤1 presentation includes β=0; it agrees with the printed reciprocal restriction only for β>0.
Nonnegative strong convexity and smoothness moduli.α and β are real; no additional sign assumptions.generalizationThe one-step argument uses only the two stated models and h≥0. Signed moduli are a disclosed extension; no reciprocal is used.
Minimizer in (3.1), arbitrary z explicitly in (3.3).Arbitrary comparator z; signed function gap.sameThe source expressly supplies this general comparator inequality; the weighted proof needs gap monotonicity, not gap positivity.
Lemma3.5 uses A>0; inverse calculation uses q=1−αh.αh≤1, hence q≥0; finite weighted sum, no division, all N∈ℕ.generalizationExpose the source coefficient domain, extending it to zero with product-form Gronwall. h=0,N=0,q=0,1 are not interpretations of singular reciprocal formulas.

This is shared optimization textbook mathematics, not companion-paper progress. C¹ on a complete real Hilbert space generalizes the section’s C² Euclidean setting. Signed α and β are explicit extensions of the nonnegative source moduli; no reciprocal of either is used. The actual comparator formulation is justified by source (3.3). The source prints h≤1/β without h≥0. The latter is essential: f(t)=t²/2, α=0, β=1, x=0, z=1 and h=−1 meet the printed upper restriction, but (3.3) would assert 2≤1. The division-free βh≤1 presentation includes β=0; it agrees with the printed reciprocal restriction only for β>0. The weighted adapter explicitly assumes αh≤1, the nonnegative coefficient domain used in the source recurrence proof. It allows q=0 as a product-form endpoint extension. N=0 and h=0 are valid division-free cases; they give no normalized rate. For h>0,N>0, the α=0 O(1/N) rate and the positive-α expression αq^N R²/[2(1−q^N)] are compiled test consumers. The latter includes q=0; equivalence to the printed inverse-power expression is only meaningful for q>0 and is not a public declaration here. No complete Theorem3.4 closure is claimed.

Encoder–denoiser: source-reviewed · domain-mismatch

Detected semantic differences

  • domains: Disclosed C1 Hilbert and signed-parameter generalization of the source domain. — Current packet lesson assumptions and elaborated statement.
  • assumptions: The nonnegative-step assumption is necessary and missing from the printed source restriction. — For f(t)=t^2/2, alpha=1/2,beta=1,h=-1,x=0,z=1, source (3.3) energy left side is 2 and right side is 3/2. For descent at x=1, f(2)-f(1)=3/2>1/2. Hence the h>=0 boundary cannot be erased.
  • scopes: Current full-module publication provenance now uses the canonical public descent interface. — Read the complete current GDValue module with both public proofs. The old private descent theorem is absent; the import and both descent calls use GradientDescentBasic.gradient_step_descent_of_quadratic_upper_bound. Read the full current shared Basic source and verified its h>=0, beta h<=1 and upper-model premises match those at both call sites. Both lessons replace the private-helper explanation with the exact canonical public name and list it in ASTIS dependencies. This review does not rely on an immutable historical acceptance.
  • scopes: Weighted inequality extends to q=0 and arbitrary signed comparator gaps; normalized-rate publication remains uncovered. — With Xn=T^[n]x0 and q=1-alpha h>=0, establish u_(n+1)<=q u_n-2h gap_(n+1), and descent gives antitone gaps. Product-form Gronwall accepts signed forcing. Because -2h<=0 and q^k>=0, earlier gaps may be replaced by the final gap in the upper bound; discard u_N>=0 and reflect the finite index to obtain exactly 2h sum(q^k)gap_N<=q^N u0. All local symbols and signs in the current lessons checked. Neither binding claims inverse-power-rate or convex-normalized-rate; those remain uncovered source obligations. Tests are cited only as compiled specializations and are not independently checked or accepted as separately registered source theorems. External Optlib references are not imported proof dependencies.

A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.

Scope and omitted-condition boundaries

  • This is shared optimization textbook mathematics, not companion-paper progress. C¹ on a complete real Hilbert space generalizes the section’s C² Euclidean setting. Signed α and β are explicit extensions of the nonnegative source moduli; no reciprocal of either is used. The actual comparator formulation is justified by source (3.3).
  • The source prints h≤1/β without h≥0. The latter is essential: f(t)=t²/2, α=0, β=1, x=0, z=1 and h=−1 meet the printed upper restriction, but (3.3) would assert 2≤1. The division-free βh≤1 presentation includes β=0; it agrees with the printed reciprocal restriction only for β>0.
  • The weighted adapter explicitly assumes αh≤1, the nonnegative coefficient domain used in the source recurrence proof. It allows q=0 as a product-form endpoint extension. N=0 and h=0 are valid division-free cases; they give no normalized rate.
  • For h>0,N>0, the α=0 O(1/N) rate and the positive-α expression αq^N R²/[2(1−q^N)] are compiled test consumers. The latter includes q=0; equivalence to the printed inverse-power expression is only meaningful for q>0 and is not a public declaration here. No complete Theorem3.4 closure is claimed.

Source and reuse

ASTIS parents called

Mathlib API called (external library)

  • discrete_gronwall_prod_general
  • Function.iterate_succ_apply'; antitone_nat_of_succ_le
  • Finset.sum_le_sum; Finset.sum_range_reflect; Nat.card_Ico; pow_nonneg

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.

ASTIS mathematical exposition

Convex gradient descent has a normalized final-value bound

AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentRates.convex_value_le · theorem · Teaching coverage

Statement

E is a complete real inner-product space and f:E→R is C1. The gradient is the genuine Riesz gradient of f. For all x,y, f(y)<=f(x)+<gradient f(x),y-x>+(beta/2)||y-x||². The step satisfies h>0 and beta*h<=1; N is a positive natural number. x0 and z are arbitrary points; X_N is exactly N iterations of x ↦ x-h gradient f(x) starting at x0. No minimizer is required for the comparator bound. f is convex on the whole space. No positivity assumption on beta is needed beyond the upper model and admissible step. The following bound holds for the actual final iterate.

\[X_N=(\mathrm{id}-h\nabla f)^N(x_0),\qquad f(X_N)-f(z)\le\frac{\|x_0-z\|^2}{2hN}.\]

All objects and hypotheses

  • E is a complete real inner-product space and f:E→R is C1. The gradient is the genuine Riesz gradient of f.
  • For all x,y, f(y)<=f(x)+<gradient f(x),y-x>+(beta/2)||y-x||². The step satisfies h>0 and beta*h<=1; N is a positive natural number.
  • x0 and z are arbitrary points; X_N is exactly N iterations of x ↦ x-h gradient f(x) starting at x0. No minimizer is required for the comparator bound.
  • f is convex on the whole space. No positivity assumption on beta is needed beyond the upper model and admissible step.

Mathematical proof

1. Reuse the actual-iterate energy estimate

Write q=1-alpha h, R=||x0-z|| and e_N=f(X_N)-f(z). The existing weighted theorem already derives objective descent and the forced recurrence for the actual gradient iterates. Invoke it directly; its conclusion also allows negative comparator gaps.

\[2h\Bigl(\sum_{k=0}^{N-1}q^k\Bigr)e_N\le q^N R^2.\]
Corresponding Lean step

GradientDescentValue.gradient_descent_weighted_value_bound.

2. Evaluate the zero-curvature sum

For a convex objective set alpha=0, hence q=1. Every summand equals one and there are exactly N summands. Thus the weighted estimate becomes 2hN e_N<=R².

\[\alpha=0:\quad q=1,\qquad\sum_{k=0}^{N-1}q^k=N,\qquad2hNe_N\le R^2.\]
Corresponding Lean step

strongConvexOn_zero; Finset.sum_const, card_range, one_pow and nsmul_eq_mul.

3. Divide on the positive domain

Since h>0 and N>0, the coefficient 2hN is positive. Dividing preserves the inequality. With beta>0, substituting h=1/beta gives exactly beta R²/(2N), the source prescribed-step convex rate. This substitution is exercised by a compiled consumer test.

\[e_N\le\frac{R^2}{2hN};\qquad h=1/\beta\Longrightarrow e_N\le\frac{\beta R^2}{2N}.\]
Corresponding Lean step

le_div_iff₀; Tests.Shared.GradientDescentRates verifies the reciprocal-step specialization.

Lean statement · convex_value_le

Convex gradient descent has a normalized final-value bound.

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 convex_value_le {f : E → ℝ} {β h : ℝ} (hf : ContDiff ℝ 1 f)
    (hc : ConvexOn ℝ univ f) (hh : 0 < h) (hstep : β * h ≤ 1)
    (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
    (x₀ z : E) {N : ℕ} (hN : 0 < N) :
    f ((fun x => x - h • gradient f x)^[N] x₀) - f z ≤ ‖x₀ - z‖ ^ 2 / (2 * h * N)

Exact module and namespace context

Lean proof · convex_value_le

Write q=1-alpha h, R=||x0-z|| and e_N=f(X_N)-f(z). The existing weighted theorem already derives objective descent and the forced recurrence for the actual gradient iterates. Invoke it directly; its conclusion also allows negative comparator gaps. For a convex objective set alpha=0, hence q=1. Every summand equals one and there are exactly N summands. Thus the weighted estimate becomes 2hN e_N<=R². Since h>0 and N>0, the coefficient 2hN is positive. Dividing preserves the inequality. With beta>0, substituting h=1/beta gives exactly beta R²/(2N), the source prescribed-step convex rate. This substitution is exercised by a compiled consumer test.

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 convex_value_le {f : E → ℝ} {β h : ℝ} (hf : ContDiff ℝ 1 f)
    (hc : ConvexOn ℝ univ f) (hh : 0 < h) (hstep : β * h ≤ 1)
    (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
    (x₀ z : E) {N : ℕ} (hN : 0 < N) :
    f ((fun x => x - h • gradient f x)^[N] x₀) - f z ≤ ‖x₀ - z‖ ^ 2 / (2 * h * N) := by
  have he := gradient_descent_weighted_value_bound hf
    (strongConvexOn_zero.mpr hc) hh.le hstep (by norm_num : (0 : ℝ) * h ≤ 1) hu x₀ z N
  simp only [zero_mul, sub_zero, one_pow, sum_const, card_range, nsmul_eq_mul,
    mul_one, one_mul] at he
  apply (le_div_iff₀ (by positivity : 0 < 2 * h * (N : ℝ))).mpr
  nlinarith [he]

/-- Strongly convex rational rate, and exact inverse-power form on its positive-base domain. -/

Exact module and namespace context

Source assumptions versus formal assumptions

SourceActual LeanDifference kindWhy it matters
C2 Euclidean objective; minimizer comparator in displayed rate, arbitrary comparator allowed in (3.3).C1 complete real Hilbert objective and arbitrary comparator z.generalizationThe unchanged weighted parent needs no finite dimension, Hessian or minimum. Choosing a minimizing z recovers the source optimization gap.
Beta-smooth objective and printed h<=1/beta.Global quadratic upper model and beta*h<=1, with h>0.mathematically-necessaryThe upper model is the source smoothness characterization. Positive h is required by this finite normalization; beta>0 recovers the printed reciprocal step. The previously exposed negative-step problem is preserved rather than silently removed.
N is an iteration count; displayed coefficients divide by N or a geometric denominator.N>0.source-implicitThe finite normalized estimate is only for a positive number of updates; no totalized N0 quotient is used.
Convex case is read as the alpha0 limiting formula.Set alpha=0 directly in the finite weighted sum and divide by 2hN.sameThe source numerical rate is obtained directly; no analytic parameter-limit theorem is asserted.

These are public integrations of the existing weighted theorem and previously compiled test normalizations. The new representation edge is the exact inverse-power equality; no new descent or recurrence proof is claimed. C1 on a complete real Hilbert space and arbitrary comparator generalize the C2 Euclidean minimizer-based source rate. Source smoothness is represented by its global quadratic upper model. The condition beta*h<=1 agrees with h<=1/beta when beta>0. Finite normalized bounds require h>0 and N>0. No real-valued normalized h=0 or N=0 assertion, analytic alpha-to-zero limit, iteration-complexity theorem, minimum existence, Riemannian or stochastic result is claimed.

Encoder–denoiser: accepted · implicit-assumption-exposed

Detected semantic differences

  • domains: Positive h and N repair a source domain omission. — For f(t)=t²/2, x₀=1, z=0, β=1, h=-1 and N=1, the convex bound would assert 2≤-1/2. The printed upper-step inequality alone permits this. h=0 or N=0 also makes the ordinary normalized denominator singular. The candidate explicitly excludes all these cases.
  • assumptions: Disclosed C1 Hilbert-space and comparator generalizations preserve the supported source specialization. — The candidate assumptions and blind reconstruction expose the wider space, weaker regularity, and unrestricted comparator. Euclidean C² instances and z=x⋆ recover the source setting on admissible coefficient domains.
  • scopes: This is public-interface integration of an existing weighted theorem, not evidence that all source obligations or all proof algebra are new. — The module visibly calls GradientDescentValue.gradient_descent_weighted_value_bound. Its documentation and lesson explicitly attribute prior normalization algebra to test consumers. Those external test files and build evidence were outside this review packet, so their existence, historical priority and compilation are not independently certified here.

A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.

Scope and omitted-condition boundaries

  • These are public integrations of the existing weighted theorem and previously compiled test normalizations. The new representation edge is the exact inverse-power equality; no new descent or recurrence proof is claimed.
  • C1 on a complete real Hilbert space and arbitrary comparator generalize the C2 Euclidean minimizer-based source rate. Source smoothness is represented by its global quadratic upper model. The condition beta*h<=1 agrees with h<=1/beta when beta>0.
  • Finite normalized bounds require h>0 and N>0. No real-valued normalized h=0 or N=0 assertion, analytic alpha-to-zero limit, iteration-complexity theorem, minimum existence, Riemannian or stochastic result is claimed.

Source and reuse

ASTIS parents called

Mathlib API called (external library)

  • strongConvexOn_zero
  • Finset.sum_const
  • Finset.card_range
  • le_div_iff₀

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.

ASTIS mathematical exposition

Strongly convex gradient descent has rational and inverse-power rates

AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentRates.strongly_convex_value_le · theorem · Teaching coverage

Statement

E is a complete real inner-product space and f:E→R is C1. The gradient is the genuine Riesz gradient of f. For all x,y, f(y)<=f(x)+<gradient f(x),y-x>+(beta/2)||y-x||². The step satisfies h>0 and beta*h<=1; N is a positive natural number. x0 and z are arbitrary points; X_N is exactly N iterations of x ↦ x-h gradient f(x) starting at x0. No minimizer is required for the comparator bound. f is alpha-strongly convex on the whole space with normalization alpha/2; alpha>0 and alpha*h<=1. The rational bound includes q=1-alpha*h=0; the second, conditional inverse-power bound additionally requires alpha*h<1. The following bound holds for the actual final iterate.

\[\begin{gathered}q=1-\alpha h\in[0,1),\qquad f(X_N)-f(z)\le\frac{\alpha q^N\|x_0-z\|^2}{2(1-q^N)},\\q>0\Longrightarrow f(X_N)-f(z)\le\frac{\alpha}{2(q^{-N}-1)}\|x_0-z\|^2.\end{gathered}\]

All objects and hypotheses

  • E is a complete real inner-product space and f:E→R is C1. The gradient is the genuine Riesz gradient of f.
  • For all x,y, f(y)<=f(x)+<gradient f(x),y-x>+(beta/2)||y-x||². The step satisfies h>0 and beta*h<=1; N is a positive natural number.
  • x0 and z are arbitrary points; X_N is exactly N iterations of x ↦ x-h gradient f(x) starting at x0. No minimizer is required for the comparator bound.
  • f is alpha-strongly convex on the whole space with normalization alpha/2; alpha>0 and alpha*h<=1.
  • The rational bound includes q=1-alpha*h=0; the second, conditional inverse-power bound additionally requires alpha*h<1.

Mathematical proof

1. Reuse the actual-iterate energy estimate

Write q=1-alpha h, R=||x0-z|| and e_N=f(X_N)-f(z). The existing weighted theorem already derives objective descent and the forced recurrence for the actual gradient iterates. Invoke it directly; its conclusion also allows negative comparator gaps.

\[2h\Bigl(\sum_{k=0}^{N-1}q^k\Bigr)e_N\le q^N R^2.\]
Corresponding Lean step

GradientDescentValue.gradient_descent_weighted_value_bound.

2. Normalize the geometric sum without inverting q

Positive alpha and h with alpha h<=1 give 0<=q<1. For N>0, q^N<1. The finite geometric identity, multiplied by 2, yields 2alpha h sum(q^k)=2(1-q^N). Multiply the weighted estimate by positive alpha and divide by positive 2(1-q^N). This rational form remains valid at q=0.

\[2\alpha h\sum_{k=0}^{N-1}q^k=2(1-q^N)>0,\qquad e_N\le\frac{\alpha q^N R^2}{2(1-q^N)}.\]
Corresponding Lean step

geom_sum_mul_neg, pow_lt_one₀, mul_le_mul_of_nonneg_left and le_div_iff₀.

3. Recover the source inverse-power expression

Under the additional strict inequality alpha h<1, q>0 and q^N>0. Integer negative powers equal inverse positive powers. Multiplying numerator and denominator by q^N proves the exact displayed equality. At q=0 only the preceding rational conclusion applies; the negative-power formula is undefined in ordinary real arithmetic.

\[0<q<1:\quad\frac{\alpha q^N R^2}{2(1-q^N)}=\frac{\alpha}{2(q^{-N}-1)}R^2.\]
Corresponding Lean step

zpow_neg, zpow_natCast, pow_pos and field_simp. The positive q^N fact discharges inverse cancellation.

Lean statement · strongly_convex_value_le

Strongly convex gradient descent has rational and inverse-power rates.

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 strongly_convex_value_le {f : E → ℝ} {α β h : ℝ} (hf : ContDiff ℝ 1 f)
    (hsc : StrongConvexOn univ α f) (hα : 0 < α) (hh : 0 < h) (hstep : β * h ≤ 1)
    (hcoeff : α * h ≤ 1)
    (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
    (x₀ z : E) {N : ℕ} (hN : 0 < N) :
    f ((fun x => x - h • gradient f x)^[N] x₀) - f z ≤
      α * (1 - α * h) ^ N * ‖x₀ - z‖ ^ 2 / (2 * (1 - (1 - α * h) ^ N)) ∧
    (α * h < 1 → f ((fun x => x - h • gradient f x)^[N] x₀) - f z ≤
      α / (2 * ((1 - α * h) ^ (-(N : ℤ)) - 1)) * ‖x₀ - z‖ ^ 2)

Exact module and namespace context

Lean proof · strongly_convex_value_le

Write q=1-alpha h, R=||x0-z|| and e_N=f(X_N)-f(z). The existing weighted theorem already derives objective descent and the forced recurrence for the actual gradient iterates. Invoke it directly; its conclusion also allows negative comparator gaps. Positive alpha and h with alpha h<=1 give 0<=q<1. For N>0, q^N<1. The finite geometric identity, multiplied by 2, yields 2alpha h sum(q^k)=2(1-q^N). Multiply the weighted estimate by positive alpha and divide by positive 2(1-q^N). This rational form remains valid at q=0. Under the additional strict inequality alpha h<1, q>0 and q^N>0. Integer negative powers equal inverse positive powers. Multiplying numerator and denominator by q^N proves the exact displayed equality. At q=0 only the preceding rational conclusion applies; the negative-power formula is undefined in ordinary real arithmetic.

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 strongly_convex_value_le {f : E → ℝ} {α β h : ℝ} (hf : ContDiff ℝ 1 f)
    (hsc : StrongConvexOn univ α f) (hα : 0 < α) (hh : 0 < h) (hstep : β * h ≤ 1)
    (hcoeff : α * h ≤ 1)
    (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
    (x₀ z : E) {N : ℕ} (hN : 0 < N) :
    f ((fun x => x - h • gradient f x)^[N] x₀) - f z ≤
      α * (1 - α * h) ^ N * ‖x₀ - z‖ ^ 2 / (2 * (1 - (1 - α * h) ^ N)) ∧
    (α * h < 1 → f ((fun x => x - h • gradient f x)^[N] x₀) - f z ≤
      α / (2 * ((1 - α * h) ^ (-(N : ℤ)) - 1)) * ‖x₀ - z‖ ^ 2) := by
  have hq : 0 ≤ 1 - α * h := by linarith
  have hqlt : 1 - α * h < 1 := by nlinarith
  have he := gradient_descent_weighted_value_bound hf hsc hh.le hstep (by linarith) hu x₀ z N
  have hs := geom_sum_mul_neg (1 - α * h) N
  have hp : (1 - α * h) ^ N < 1 := pow_lt_one₀ hq hqlt (Nat.ne_of_gt hN)
  have hr : f ((fun x => x - h • gradient f x)^[N] x₀) - f z ≤
      α * (1 - α * h) ^ N * ‖x₀ - z‖ ^ 2 / (2 * (1 - (1 - α * h) ^ N)) := by
    apply (le_div_iff₀ (by positivity : 0 < 2 * (1 - (1 - α * h) ^ N))).mpr
    have hem := mul_le_mul_of_nonneg_left he hα.le
    have hid : α * (2 * h * ∑ k ∈ range N, (1 - α * h) ^ k) =
        2 * (1 - (1 - α * h) ^ N) := by nlinarith [hs]
    rw [← mul_assoc, hid] at hem
    nlinarith [hem]
  refine ⟨hr, ?_⟩
  intro hstrict
  have hqp : 0 < (1 - α * h) ^ N := pow_pos (by linarith) N
  have heq : α * (1 - α * h) ^ N * ‖x₀ - z‖ ^ 2 /
      (2 * (1 - (1 - α * h) ^ N)) =
      α / (2 * ((1 - α * h) ^ (-(N : ℤ)) - 1)) * ‖x₀ - z‖ ^ 2 := by
    rw [zpow_neg, zpow_natCast]
    field_simp
  rwa [heq] at hr

end AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentRates

Exact module and namespace context

Source assumptions versus formal assumptions

SourceActual LeanDifference kindWhy it matters
C2 Euclidean objective; minimizer comparator in displayed rate, arbitrary comparator allowed in (3.3).C1 complete real Hilbert objective and arbitrary comparator z.generalizationThe unchanged weighted parent needs no finite dimension, Hessian or minimum. Choosing a minimizing z recovers the source optimization gap.
Beta-smooth objective and printed h<=1/beta.Global quadratic upper model and beta*h<=1, with h>0.mathematically-necessaryThe upper model is the source smoothness characterization. Positive h is required by this finite normalization; beta>0 recovers the printed reciprocal step. The previously exposed negative-step problem is preserved rather than silently removed.
N is an iteration count; displayed coefficients divide by N or a geometric denominator.N>0.source-implicitThe finite normalized estimate is only for a positive number of updates; no totalized N0 quotient is used.
Printed inverse-power expression alpha/[2((1-alpha*h)^(-N)-1)].Alpha>0, h>0, alpha*h<=1; rational form throughout and exact inverse-power form only alpha*h<1.mathematically-necessaryThe rational form gives a valid q0 extension. The inverse-power expression needs q>0; with unit quadratic, alpha=beta=h=N=1,x0=1,z=0, its Lean totalized value is -1/2 while the final gap is0. No finite inverse-power q0 theorem is claimed.

These are public integrations of the existing weighted theorem and previously compiled test normalizations. The new representation edge is the exact inverse-power equality; no new descent or recurrence proof is claimed. C1 on a complete real Hilbert space and arbitrary comparator generalize the C2 Euclidean minimizer-based source rate. Source smoothness is represented by its global quadratic upper model. The condition beta*h<=1 agrees with h<=1/beta when beta>0. Finite normalized bounds require h>0 and N>0. No real-valued normalized h=0 or N=0 assertion, analytic alpha-to-zero limit, iteration-complexity theorem, minimum existence, Riemannian or stochastic result is claimed. The rational coefficient equals zero at q=0 and N>0. With an actual minimizing comparator it forces exact objective optimality. This does not make the source inverse-power expression meaningful at zero.

Encoder–denoiser: accepted · possible-source-error

Detected semantic differences

  • domains: Positive h and N repair a source domain omission. — For f(t)=t²/2, x₀=1, z=0, β=1, h=-1 and N=1, the convex bound would assert 2≤-1/2. The printed upper-step inequality alone permits this. h=0 or N=0 also makes the ordinary normalized denominator singular. The candidate explicitly excludes all these cases.
  • assumptions: Disclosed C1 Hilbert-space and comparator generalizations preserve the supported source specialization. — The candidate assumptions and blind reconstruction expose the wider space, weaker regularity, and unrestricted comparator. Euclidean C² instances and z=x⋆ recover the source setting on admissible coefficient domains.
  • scopes: This is public-interface integration of an existing weighted theorem, not evidence that all source obligations or all proof algebra are new. — The module visibly calls GradientDescentValue.gradient_descent_weighted_value_bound. Its documentation and lesson explicitly attribute prior normalization algebra to test consumers. Those external test files and build evidence were outside this review packet, so their existence, historical priority and compilation are not independently certified here.
  • conclusion: The printed inverse-power expression needs a positive-base restriction or an explicit limiting endpoint convention. — At α=β=h=1, N=1, f(t)=t²/2, x₀=1 and z=0, q=0 and the true gap is 0. Ordinary q^(-N) is undefined; Lean totalized inverse would give a right side of -1/2. The conditional branch correctly avoids that false reading, and the rational branch gives 0. This is not literal full-domain equivalence to (3.2).

Proposed source repair — not the original theorem

Retain the source C2 Euclidean alpha-strongly convex and beta-smooth objective, alpha>0,beta>0, a supplied minimizer z and actual constant-step gradient descent. For an integer N>=1, positive h with h<=1/beta and 0<alpha*h<1, assert f(x_N)-f(z)<=alpha*||x0-z||²/[2*((1-alpha*h)^(-N)-1)]. If alpha*h=1, use instead the separately proved rational coefficient alpha*(1-alpha*h)^N/[2*(1-(1-alpha*h)^N)]=0; do not evaluate the inverse-power expression at zero. Alpha=0 belongs to the separate convex formula with h>0,N>=1.

Make the finite inverse-power rate domain explicit: N>=1, h>0 and 0<alpha*h<1 for alpha>0. Treat the zero geometric base only through the rational extension, and alpha0 only through the convex formula. Preserve the original source wording separately.

Classification: mathematically-necessary · Status: accepted

The source normalized formula requires division and negative powers; its printed h<=1/beta alone does not supply all finite-real domains. The source recurrence lemma assumes a positive coefficient. For 0<q<1 and N>=1, q^N>0 and q^(-N)-1>0. At q0 or q1 the ordinary real normalization is undefined, and Lean totalized inverses do not encode a limiting convention. This clarification is separate from the existing nonnegative-step correction and the Hilbert/comparator generalizations.

Minimality: For nonnegative source alpha,beta and the contraction regime, the finite inverse-power formula needs alpha>0,h>0,N>=1 and q>0; then q<1 follows. No additional objective regularity or minimizer hypothesis is introduced. Only singular parameter strata are excluded from that expression; q0 remains covered by the rational formula and alpha0 by direct convex normalization. This does not claim an analytic limiting theorem.

Evidence: Chewi arXiv2605.07006v1 Theorem3.4 (3.2), Lemma3.5 positive coefficient and subsequent inverse-sum display. Unit quadratic f(x)=x²/2, alpha=beta=h=N=1,z=0,x0=1 satisfies the source assumptions, has gradient x and final iterate0. Its true gap is0 while the Lean totalized inverse-power coefficient is1/[2*(0^(-1)-1)]=-1/2. Tests/Shared/GradientDescentRates.lean tests the actual quadratic APIs (including h1) and separately compiles the numeric coefficient refutation. For h0 or N0 the denominator vanishes; the same nonoptimal initial point gives positive gap, incompatible with Lean zero quotient. These are counterexamples to naive totalized readings, not the source positive-domain result.

A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.

Scope and omitted-condition boundaries

  • These are public integrations of the existing weighted theorem and previously compiled test normalizations. The new representation edge is the exact inverse-power equality; no new descent or recurrence proof is claimed.
  • C1 on a complete real Hilbert space and arbitrary comparator generalize the C2 Euclidean minimizer-based source rate. Source smoothness is represented by its global quadratic upper model. The condition beta*h<=1 agrees with h<=1/beta when beta>0.
  • Finite normalized bounds require h>0 and N>0. No real-valued normalized h=0 or N=0 assertion, analytic alpha-to-zero limit, iteration-complexity theorem, minimum existence, Riemannian or stochastic result is claimed.
  • The rational coefficient equals zero at q=0 and N>0. With an actual minimizing comparator it forces exact objective optimality. This does not make the source inverse-power expression meaningful at zero.

Source and reuse

ASTIS parents called

Mathlib API called (external library)

  • geom_sum_mul_neg
  • pow_lt_one₀
  • pow_pos
  • zpow_neg
  • zpow_natCast
  • le_div_iff₀

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.

Which proof edges are actually covered?

  • Local proof component; source adapter/review separate Actual-gradient one-step comparator energy (3.1),(3.3)
  • Local proof component; source adapter/review separate Actual iterates, signed recurrence and finite weighted final gap
  • Local proof component; source adapter/review separate Printed inverse-power rate and exact positive-domain equivalence
  • Local proof component; source adapter/review separate Convex 1/(2Nh) rate as a published source theorem

Lemma3.1 · gradient-step descent

Sinho Chewi, Lectures on Optimization. ASTIS-authored paraphrase; no endorsement implied.

arXiv:2605.07006v1 · Lemma3.1 · faithful paraphrase

Complete source statement (ASTIS restatement)

In the C² Euclidean setting, β-smoothness gives a quadratic upper model. For the actual gradient update with the printed restriction h≤1/β, the function decrease is at least h/2 times squared gradient norm.

  • C² Euclidean objective and β-smoothness; positive β for the printed reciprocal step restriction.
  • The printed step condition is h≤1/β; nonnegative h is not explicitly included.

Descent

\[\begin{gathered}T(x)=x-h\nabla f(x),\\f(Tx)-f(x)\le-\tfrac h2\|\nabla f(x)\|^2.\end{gathered}\]

Read the formalized proofs

Each statement and proof below has its own closed Lean disclosure. ASTIS parents, Mathlib calls and external mathematical sources are distinguished in each proof.

ASTIS mathematical exposition

Shared descent for an actual gradient step

AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentBasic.gradient_step_descent_of_quadratic_upper_bound · theorem · Teaching coverage

Statement

Every actual gradient update obeys the displayed decrease under the global quadratic upper model and nonnegative admissible step.

\[\begin{gathered}T(x)=x-h\nabla f(x),\\f(Tx)-f(x)\le-\tfrac h2\|\nabla f(x)\|^2.\end{gathered}\]

All objects and hypotheses

  • E is a complete real inner-product space; f:E→ℝ; α,β,h are real scalars, with h≥0 and βh≤1. The descent lemma does not use α.
  • The displayed quadratic upper model holds for every x,y∈E. ∇f is Lean’s actual gradient (the Riesz representative of the totalized Fréchet derivative), not a supplied vector field.
  • These are algebraic consequences of the model. No separate C¹ or C² premise is needed once the model is supplied; no claim that every arbitrary function satisfies it. The source C² Euclidean setting is a specialization.
  • For every x,y: f(y)≤f(x)+⟨∇f(x),y−x⟩+(β/2)‖y−x‖².

Mathematical proof

1. Insert the actual update into the upper model

Write g=∇f(x), T(x)=x−hg. The displacement is −hg; inner-product and norm identities evaluate the model exactly.

\[f(Tx)-f(x)\le-h\|g\|^2+\tfrac\beta2h^2\|g\|^2.\]
Corresponding Lean step

inner_neg_right; inner_smul_right; real_inner_self_eq_norm_sq; norm_neg; norm_smul; sq_abs.

2. Use the step restriction with its sign

Multiply βh≤1 by h‖g‖²≥0. Substituting the result leaves half of the linear decrease.

\[\begin{gathered}\beta h^2\|g\|^2\le h\|g\|^2,\\f(Tx)-f(x)\le-\tfrac h2\|g\|^2.\end{gathered}\]
Corresponding Lean step

mul_nonneg; sq_nonneg; mul_le_mul_of_nonneg_right; nlinarith.

Lean statement · gradient_step_descent_of_quadratic_upper_bound

Actual gradient update and the global upper-model decrease.

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 gradient_step_descent_of_quadratic_upper_bound {f : E → ℝ} {β h : ℝ}
    (hh : 0 ≤ h) (hstep : β * h ≤ 1)
    (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
    (x : E) : f (x - h • gradient f x) - f x ≤ -(h / 2) * ‖gradient f x‖ ^ 2

Exact module and namespace context

Lean proof · gradient_step_descent_of_quadratic_upper_bound

Write g=∇f(x), T(x)=x−hg. The displacement is −hg; inner-product and norm identities evaluate the model exactly. Multiply βh≤1 by h‖g‖²≥0. Substituting the result leaves half of the linear decrease.

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 gradient_step_descent_of_quadratic_upper_bound {f : E → ℝ} {β h : ℝ}
    (hh : 0 ≤ h) (hstep : β * h ≤ 1)
    (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
    (x : E) : f (x - h • gradient f x) - f x ≤ -(h / 2) * ‖gradient f x‖ ^ 2 := by
  have hu' := hu x (x - h • gradient f x)
  have he : x - h • gradient f x - x = -(h • gradient f x) := by abel
  rw [he, inner_neg_right, inner_smul_right, real_inner_self_eq_norm_sq,
    norm_neg, norm_smul, Real.norm_eq_abs, mul_pow, sq_abs] at hu'
  have hs := mul_le_mul_of_nonneg_right hstep (mul_nonneg hh (sq_nonneg ‖gradient f x‖))
  nlinarith

end AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentBasic

Exact module and namespace context

Source assumptions versus formal assumptions

SourceActual LeanDifference kindWhy it matters
C² Euclidean function and smoothness.Complete real Hilbert space, global quadratic upper model in the actual gradient; no separate differentiability premise.generalizationThe proof consumes this model algebraically. The source hypotheses supply it; no smoothness equivalence or arbitrary vector field is asserted.
Printed h≤1/β.h≥0 and βh≤1.mathematically-necessaryThe source prints only h≤1/β. The explicit h≥0 is necessary: for f(t)=t²/2, β=1,h=−1,x=1, descent would assert 3/2≤1/2. The reciprocal and product step restrictions agree when β>0; signed β and β=0 here are algebraic extensions.
Positive source moduli.Real moduli under the explicit model inequalities.generalizationThe algebraic finite-step inequality does not need separate sign hypotheses. Positive α and h are required to call the ordinary PL bound geometric decay; β>0 recovers the reciprocal condition.

This is shared optimization textbook work, not progress on the companion papers. No convexity, optimizer-existence proof or smoothness-to-upper-model theorem is claimed. The source prints only h≤1/β. The explicit h≥0 is necessary: for f(t)=t²/2, β=1,h=−1,x=1, descent would assert 3/2≤1/2. The reciprocal and product step restrictions agree when β>0; signed β and β=0 here are algebraic extensions.

Encoder–denoiser: accepted · possible-source-error

Detected semantic differences

  • objects: Totalized-gradient algebraic interface is broader than source classical derivative assumptions. — The two new declarations intentionally omit C1/C2. The gradient is Lean totalized fderiv passed through the Riesz map. It is not a freely supplied vector field, but one must not identify it with an existing classical derivative at arbitrary points. Lessons explicitly state this and the global model premise. Source smooth functions are a specialization; this is not source-equivalent regularity.
  • domains: Hilbert-space and signed-parameter domain extensions are explicitly disclosed. — Fresh elaborated statement, blind reconstruction and all candidate lesson assumptions agree on absent C1/C2 and real parameters.
  • assumptions: The printed step condition omits the necessary nonnegative lower bound. — f(t)=t^2/2 on R, beta=1,h=-1,x=1 satisfies h<=1/beta. T(1)=2; f(2)-f(1)=3/2 but -(h/2)|f prime(1)|^2=1/2, so descent fails. More generally h<0 gives discrepancy h(h-1)/2>0.

Proposed source repair — not the original theorem

Let f:R^d->R be C2 and beta-smooth with beta>0. For every step 0<=h<=1/beta and every x, define T(x)=x-h grad f(x). Then f(T(x))-f(x)<=-(h/2)||grad f(x)||^2.

Add h>=0 to the printed h<=1/beta restriction in Lemma3.1. Retain the original pinned source separately and preserve the local algebraic generalization.

Classification: mathematically-necessary · Status: accepted

f(t)=t^2/2 on R, beta=1,h=-1,x=1 satisfies h<=1/beta. T(1)=2; f(2)-f(1)=3/2 but -(h/2)|f prime(1)|^2=1/2, so descent fails. More generally h<0 gives discrepancy h(h-1)/2>0.

Minimality: Only the lower bound h>=0 is added to the source step domain; h=0 remains valid. Source positive modulus/regularity premises are retained. No convexity or strong convexity assumption is added. Omitting the new lower bound admits the explicit quadratic counterexample.

Evidence: Primary source https://arxiv.org/html/2605.07006v1#S3, Lemma3.1. Exact counterexample: f(t)=t^2/2 on R, beta=1,h=-1,x=1 satisfies h<=1/beta. T(1)=2; f(2)-f(1)=3/2 but -(h/2)|f prime(1)|^2=1/2, so descent fails. More generally h<0 gives discrepancy h(h-1)/2>0.

A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.

Scope and omitted-condition boundaries

  • This is shared optimization textbook work, not progress on the companion papers. No convexity, optimizer-existence proof or smoothness-to-upper-model theorem is claimed.
  • The source prints only h≤1/β. The explicit h≥0 is necessary: for f(t)=t²/2, β=1,h=−1,x=1, descent would assert 3/2≤1/2. The reciprocal and product step restrictions agree when β>0; signed β and β=0 here are algebraic extensions.

Source and reuse

ASTIS parents called

    Mathlib API called (external library)

    • inner_neg_right; inner_smul_right; real_inner_self_eq_norm_sq
    • norm_neg; norm_smul; sq_abs; mul_le_mul_of_nonneg_right

    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.

    Which proof edges are actually covered?

    • Local proof component; source adapter/review separate Quadratic upper model to actual-gradient decrease

    Theorem3.6 · PL gradient-descent value rate

    Sinho Chewi, Lectures on Optimization. ASTIS-authored paraphrase; no endorsement implied.

    arXiv:2605.07006v1 · Theorem3.6; Definition2.5 and Section2 minimum convention · faithful paraphrase

    Complete source statement (ASTIS restatement)

    In the C² Euclidean setting with an attained minimum f★=f(x★), β-smoothness and the PL inequality with α>0 give the displayed last-iterate function-value bound, for the printed restriction h≤1/β. No convexity assumption appears.

    • C² Euclidean objective and β-smoothness; positive β for the printed reciprocal step restriction.
    • The printed step condition is h≤1/β; nonnegative h is not explicitly included.
    • An attained global minimum f★=f(x★); PL normalization ‖∇f(x)‖²≥2α(f(x)−f★) for all x, α>0.
    • The sequence consists of actual gradient updates and N is a natural iteration count.

    Final-value rate

    \[\begin{gathered}T(x)=x-h\nabla f(x),\quad q=1-\alpha h,\\2\alpha(f(x)-f(z))\le\|\nabla f(x)\|^2,\\f(T^Nx_0)-f(z)\le q^N(f(x_0)-f(z)).\end{gathered}\]

    Read the formalized proofs

    Each statement and proof below has its own closed Lean disclosure. ASTIS parents, Mathlib calls and external mathematical sources are distinguished in each proof.

    ASTIS mathematical exposition

    PL descent gives the final-value rate

    AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentPL.gradient_descent_pl_value_bound · theorem · Teaching coverage

    Statement

    For every initial point x₀ and N∈ℕ, actual gradient iterates obey the displayed PL value bound about a supplied global minimizer.

    \[\begin{gathered}T(x)=x-h\nabla f(x),\quad q=1-\alpha h,\\2\alpha(f(x)-f(z))\le\|\nabla f(x)\|^2,\\f(T^Nx_0)-f(z)\le q^N(f(x_0)-f(z)).\end{gathered}\]

    All objects and hypotheses

    • E is a complete real inner-product space; f:E→ℝ; α,β,h are real scalars, with h≥0 and βh≤1. The descent lemma does not use α.
    • The displayed quadratic upper model holds for every x,y∈E. ∇f is Lean’s actual gradient (the Riesz representative of the totalized Fréchet derivative), not a supplied vector field.
    • These are algebraic consequences of the model. No separate C¹ or C² premise is needed once the model is supplied; no claim that every arbitrary function satisfies it. The source C² Euclidean setting is a specialization.
    • For every x,y: f(y)≤f(x)+⟨∇f(x),y−x⟩+(β/2)‖y−x‖².
    • z∈E is a global minimizer: f(z)≤f(x) for all x. The displayed PL model holds globally, in the normalization 2α(f(x)−f(z))≤‖∇f(x)‖².
    • x₀∈E and N∈ℕ are arbitrary; T⁰ is the identity. No convexity or nonnegative-coefficient premise is supplied.

    Mathematical proof

    1. Build the recurrence from descent and PL

    Let z be the supplied global minimizer, G(x)=f(x)−f(z)≥0 and q=1−αh. Multiply 2αG(x)≤‖∇f(x)‖² by h/2≥0 and combine with the shared descent bound.

    \[\begin{gathered}G(Tx)\le G(x)-\tfrac h2\|\nabla f(x)\|^2,\\G(Tx)\le (1-\alpha h)G(x)=qG(x).\end{gathered}\]
    Corresponding Lean step

    AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentBasic.gradient_step_descent_of_quadratic_upper_bound; mul_le_mul_of_nonneg_left; IsMinOn; nlinarith.

    2. Iterate when the coefficient is nonnegative

    If q≥0, set u_n=G(Tⁿx₀). The actual iterate successor identity gives u_(n+1)≤q u_n. Apply the existing scalar geometric bound; no convexity enters.

    \[G(T^Nx_0)\le q^N G(x_0).\]
    Corresponding Lean step

    Function.iterate_succ_apply'; le_geom.

    3. Close the negative-coefficient case without reversing an induction

    If q<0, nonnegative gaps and the one-step bound force G(x)=0 for every x. Both sides of the claimed rate are zero for every natural N, including odd N.

    \[\begin{gathered}0\le G(Tx)\le qG(x),\quad G(x)\ge0,\ q<0,\\G(x)=0\quad\text{for every }x.\end{gathered}\]
    Corresponding Lean step

    lt_of_not_ge; global minimum lower bound; nlinarith; mul_zero.

    Lean statement · gradient_descent_pl_value_bound

    Actual gradient iterates and supplied-minimizer PL final-value bound.

    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 gradient_descent_pl_value_bound {f : E → ℝ} {α β h : ℝ} {z : E}
        (hz : IsMinOn f univ z) (hh : 0 ≤ h) (hstep : β * h ≤ 1)
        (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
        (hpl : ∀ x, 2 * α * (f x - f z) ≤ ‖gradient f x‖ ^ 2)
        (x₀ : E) (N : ℕ) :
        f ((fun x => x - h • gradient f x)^[N] x₀) - f z ≤
          (1 - α * h) ^ N * (f x₀ - f z)

    Exact module and namespace context

    Lean proof · gradient_descent_pl_value_bound

    Let z be the supplied global minimizer, G(x)=f(x)−f(z)≥0 and q=1−αh. Multiply 2αG(x)≤‖∇f(x)‖² by h/2≥0 and combine with the shared descent bound. If q≥0, set u_n=G(Tⁿx₀). The actual iterate successor identity gives u_(n+1)≤q u_n. Apply the existing scalar geometric bound; no convexity enters. If q<0, nonnegative gaps and the one-step bound force G(x)=0 for every x. Both sides of the claimed rate are zero for every natural N, including odd N.

    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 gradient_descent_pl_value_bound {f : E → ℝ} {α β h : ℝ} {z : E}
        (hz : IsMinOn f univ z) (hh : 0 ≤ h) (hstep : β * h ≤ 1)
        (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
        (hpl : ∀ x, 2 * α * (f x - f z) ≤ ‖gradient f x‖ ^ 2)
        (x₀ : E) (N : ℕ) :
        f ((fun x => x - h • gradient f x)^[N] x₀) - f z ≤
          (1 - α * h) ^ N * (f x₀ - f z) := by
      let T : E → E := fun x => x - h • gradient f x
      let q : ℝ := 1 - α * h
      have hnonneg (x : E) : 0 ≤ f x - f z := sub_nonneg.mpr (hz (mem_univ x))
      have hrec (x : E) : f (T x) - f z ≤ q * (f x - f z) := by
        have hd := GradientDescentBasic.gradient_step_descent_of_quadratic_upper_bound hh hstep hu x
        have hp := mul_le_mul_of_nonneg_left (hpl x) (show 0 ≤ h / 2 by positivity)
        dsimp [T, q]
        nlinarith
      by_cases hq : 0 ≤ q
      · have hr := le_geom (u := fun n => f (T^[n] x₀) - f z) hq N (by
          intro k _
          rw [Function.iterate_succ_apply']
          exact hrec _)
        exact hr
      · have hzero (x : E) : f x - f z = 0 := by
          have hc : q * (f x - f z) ≥ 0 := (hnonneg (T x)).trans (hrec x)
          have hneg : q < 0 := lt_of_not_ge hq
          have hx := hnonneg x
          nlinarith
        change f (T^[N] x₀) - f z ≤ q ^ N * (f x₀ - f z)
        rw [hzero, hzero, mul_zero]
    
    end AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentPL

    Exact module and namespace context

    Source assumptions versus formal assumptions

    SourceActual LeanDifference kindWhy it matters
    C² Euclidean function and smoothness.Complete real Hilbert space, global quadratic upper model in the actual gradient; no separate differentiability premise.generalizationThe proof consumes this model algebraically. The source hypotheses supply it; no smoothness equivalence or arbitrary vector field is asserted.
    Printed h≤1/β.h≥0 and βh≤1.mathematically-necessaryThe source prints only h≤1/β. The explicit h≥0 is necessary: for f(t)=t²/2, β=1,h=−1,x=1, descent would assert 3/2≤1/2. The reciprocal and product step restrictions agree when β>0; signed β and β=0 here are algebraic extensions.
    Positive source moduli.Real moduli under the explicit model inequalities.generalizationThe algebraic finite-step inequality does not need separate sign hypotheses. Positive α and h are required to call the ordinary PL bound geometric decay; β>0 recovers the reciprocal condition.
    Attained global minimum; no explicit q≥0 restriction.Supplied global minimizer, with both signs of q allowed.sameMinimum supplies gap≥0. q≥0 uses scalar geometric iteration; q<0 forces every gap to be zero. No optimizer existence conclusion.

    This is shared optimization textbook work, not progress on the companion papers. No convexity, optimizer-existence proof or smoothness-to-upper-model theorem is claimed. The source prints only h≤1/β. The explicit h≥0 is necessary: for f(t)=t²/2, β=1,h=−1,x=1, descent would assert 3/2≤1/2. The reciprocal and product step restrictions agree when β>0; signed β and β=0 here are algebraic extensions. The supplied z satisfies f(z)≤f(x) for every x. This preserves the source attainment convention; no minimizer is constructed. The formula permits signed α. A positive PL modulus α>0 and positive h give q<1; in the ordinary branch 0≤q<1 this is geometric decay. The theorem adds no αh≤1 restriction; negative q is necessarily a zero-gap degeneracy. h=0 and N=0 yield equality. Theorem3.6 has its own missing-step counterexample: f(t)=t²/2, α=β=1,h=−1,x₀=1,N=1 gives final gap 2 but proposed upper bound 1. Its source repair remains distinct from the actual compiled theorem.

    Encoder–denoiser: accepted · possible-source-error

    Detected semantic differences

    • objects: Totalized-gradient algebraic interface is broader than source classical derivative assumptions. — The two new declarations intentionally omit C1/C2. The gradient is Lean totalized fderiv passed through the Riesz map. It is not a freely supplied vector field, but one must not identify it with an existing classical derivative at arbitrary points. Lessons explicitly state this and the global model premise. Source smooth functions are a specialization; this is not source-equivalent regularity.
    • domains: Hilbert-space and signed-parameter domain extensions are explicitly disclosed. — Fresh elaborated statement, blind reconstruction and all candidate lesson assumptions agree on absent C1/C2 and real parameters.
    • assumptions: The printed step condition omits the necessary nonnegative lower bound. — Take f(t)=t^2/2 on R, alpha=beta=1, z=0, x0=1, N=1 and h=-1. These satisfy exact PL and all printed source premises. The new gap is f(2)=2, but (1-alpha h)(f(1)-f(0))=1. Thus 2<=1 is false. For every h<0, (1-h)^2>(1-h).
    • scopes: No extra q>=0 assumption is needed because the supplied minimum resolves q<0. — For q<0, 0<=G(Tx)<=q G(x) and G(x)>=0 imply G(x)=0 for every x. Consequently both sides of the conclusion vanish for every N, including odd N; the proof never multiplies an inductive inequality by a negative q. This branch is nonempty: constant functions with sufficiently large alpha h satisfy the models.

    Proposed source repair — not the original theorem

    Let f:R^d->R be C2 and beta-smooth with beta>0, admit a global minimizer z, and satisfy ||grad f(x)||^2>=2alpha(f(x)-f(z)) for all x with alpha>0. For every step 0<=h<=1/beta, define T(x)=x-h grad f(x). For every x0 and N in the natural numbers, f(T^[N](x0))-f(z)<=(1-alpha h)^N(f(x0)-f(z)).

    Add h>=0 to the printed h<=1/beta restriction in Theorem3.6. Retain the original pinned source separately and preserve the local algebraic generalization.

    Classification: mathematically-necessary · Status: accepted

    For f(t)=t^2/2 on R, with alpha=beta=1, z=0,x0=1,N=1,h=-1 satisfies exact PL and all printed source premises. The new gap is f(2)=2, but (1-alpha h)(f(1)-f(0))=1. Thus 2<=1 is false. For every h<0, (1-h)^2>(1-h).

    Minimality: Only the lower bound h>=0 is added to the source step domain; h=0 remains valid. Source positive modulus/regularity/attained-minimum/PL premises are retained. No convexity or q>=0 assumption is added. Omitting the new lower bound admits the explicit quadratic counterexample.

    Evidence: Primary source https://arxiv.org/html/2605.07006v1#S3, Theorem3.6. Exact counterexample: For f(t)=t^2/2 on R, with alpha=beta=1, z=0,x0=1,N=1,h=-1 satisfies exact PL and all printed source premises. The new gap is f(2)=2, but (1-alpha h)(f(1)-f(0))=1. Thus 2<=1 is false. For every h<0, (1-h)^2>(1-h).

    A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.

    Scope and omitted-condition boundaries

    • This is shared optimization textbook work, not progress on the companion papers. No convexity, optimizer-existence proof or smoothness-to-upper-model theorem is claimed.
    • The source prints only h≤1/β. The explicit h≥0 is necessary: for f(t)=t²/2, β=1,h=−1,x=1, descent would assert 3/2≤1/2. The reciprocal and product step restrictions agree when β>0; signed β and β=0 here are algebraic extensions.
    • The supplied z satisfies f(z)≤f(x) for every x. This preserves the source attainment convention; no minimizer is constructed.
    • The formula permits signed α. A positive PL modulus α>0 and positive h give q<1; in the ordinary branch 0≤q<1 this is geometric decay. The theorem adds no αh≤1 restriction; negative q is necessarily a zero-gap degeneracy. h=0 and N=0 yield equality.
    • Theorem3.6 has its own missing-step counterexample: f(t)=t²/2, α=β=1,h=−1,x₀=1,N=1 gives final gap 2 but proposed upper bound 1. Its source repair remains distinct from the actual compiled theorem.

    Source and reuse

    ASTIS parents called

    Mathlib API called (external library)

    • le_geom
    • Function.iterate_succ_apply'
    • mul_le_mul_of_nonneg_left; lt_of_not_ge

    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.

    Which proof edges are actually covered?

    • Local proof component; source adapter/review separate PL plus smooth descent to actual Nth-iterate value rate

    Theorem3.7 · nonconvex gradient stationarity

    Sinho Chewi, Lectures on Optimization. ASTIS-authored paraphrase; no endorsement implied.

    arXiv:2605.07006v1 · Theorem3.7 and its proof; Section2 attained-minimum convention · faithful paraphrase

    Complete source statement (ASTIS restatement)

    For a β-smooth objective and the printed step restriction h≤1/β, the smallest gradient norm among x₀,…,x_(N−1) is bounded by the displayed square root. The proof adds the single-step descent inequalities and bounds the last objective value below by f★.

    • The section uses smooth Euclidean objectives, positive β for the reciprocal restriction, and actual gradient updates x_(k+1)=x_k−h∇f(x_k).
    • Section2 fixes an attained global minimum f★=f(x★). No convexity or PL hypothesis appears in Theorem3.7.
    • The theorem prints h≤1/β; positive h and a nonempty iteration range are not explicitly included in that line.

    Best-iterate stationarity

    \[\min_{0\le k<N}\|\nabla f(x_k)\|\le\sqrt{\frac{2(f(x_0)-f_\star)}{Nh}}.\]

    Telescoping proof component

    \[\frac h2\sum_{k=0}^{N-1}\|\nabla f(T^k x_0)\|^2\le f(x_0)-f(T^N x_0).\]

    Read the formalized proofs

    Each statement and proof below has its own closed Lean disclosure. ASTIS parents, Mathlib calls and external mathematical sources are distinguished in each proof.

    ASTIS mathematical exposition

    Accumulated squared-gradient descent

    AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentStationarity.gradient_descent_sum_sq_bound · theorem · Teaching coverage

    Statement

    For every N∈ℕ, actual gradient descent satisfies the cumulative squared-gradient inequality.

    \[\frac h2\sum_{k=0}^{N-1}\|\nabla f(T^k x_0)\|^2\le f(x_0)-f(T^N x_0).\]

    All objects and hypotheses

    • E is a complete real inner-product space; f:E→ℝ and β,h∈ℝ. Write T(x)=x−h∇f(x), x_k=T^k(x₀), with x₀∈E. T^0 is the identity.
    • For every x,y∈E, f(y)≤f(x)+⟨∇f(x),y−x⟩+(β/2)‖y−x‖², and βh≤1. ∇f is the actual Riesz vector of the totalized Fréchet derivative, not a supplied vector field.
    • The result is algebraic after this upper model is supplied; no separate C¹ or C² premise is required by the implication. The source smooth Euclidean setting supplies that model. This does not say that an arbitrary function is differentiable or satisfies the model.
    • h≥0 and N∈ℕ; neither a minimum nor a lower bound is required.

    Mathematical proof

    1. Apply descent at every actual iterate

    The existing shared descent theorem controls the gradient norm at x_k by the decrease from x_k to x_(k+1). The successor identity connects the abstract iterate to the actual update.

    \[\tfrac h2\|\nabla f(x_k)\|^2\le f(x_k)-f(x_{k+1}).\]
    Corresponding Lean step

    AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentBasic.gradient_step_descent_of_quadratic_upper_bound; Function.iterate_succ_apply'.

    2. Add and telescope

    Distribute h/2 over the finite sum, sum the pointwise inequalities, then cancel adjacent objective values with Mathlib’s reversed telescoping identity. No lower bound is needed.

    \[\frac h2\sum_{k=0}^{N-1}\|\nabla f(x_k)\|^2\le\sum_{k=0}^{N-1}(f(x_k)-f(x_{k+1}))=f(x_0)-f(x_N).\]
    Corresponding Lean step

    Finset.mul_sum; Finset.sum_le_sum; Finset.sum_range_sub'.

    Lean statement · gradient_descent_sum_sq_bound

    Actual gradient iterates, explicit upper model and step/iteration domains.

    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 gradient_descent_sum_sq_bound {f : E → ℝ} {β h : ℝ}
        (hh : 0 ≤ h) (hstep : β * h ≤ 1)
        (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
        (x₀ : E) (N : ℕ) :
        h / 2 * ∑ k ∈ Finset.range N, ‖gradient f ((fun x => x - h • gradient f x)^[k] x₀)‖ ^ 2 ≤
          f x₀ - f ((fun x => x - h • gradient f x)^[N] x₀)

    Exact module and namespace context

    Lean proof · gradient_descent_sum_sq_bound

    The existing shared descent theorem controls the gradient norm at x_k by the decrease from x_k to x_(k+1). The successor identity connects the abstract iterate to the actual update. Distribute h/2 over the finite sum, sum the pointwise inequalities, then cancel adjacent objective values with Mathlib’s reversed telescoping identity. No lower bound is needed.

    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 gradient_descent_sum_sq_bound {f : E → ℝ} {β h : ℝ}
        (hh : 0 ≤ h) (hstep : β * h ≤ 1)
        (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
        (x₀ : E) (N : ℕ) :
        h / 2 * ∑ k ∈ Finset.range N, ‖gradient f ((fun x => x - h • gradient f x)^[k] x₀)‖ ^ 2 ≤
          f x₀ - f ((fun x => x - h • gradient f x)^[N] x₀) := by
      let T : E → E := fun x => x - h • gradient f x
      calc
        h / 2 * ∑ k ∈ Finset.range N, ‖gradient f (T^[k] x₀)‖ ^ 2 =
            ∑ k ∈ Finset.range N, h / 2 * ‖gradient f (T^[k] x₀)‖ ^ 2 := Finset.mul_sum _ _ _
        _ ≤ ∑ k ∈ Finset.range N, (f (T^[k] x₀) - f (T^[k + 1] x₀)) := by
          apply Finset.sum_le_sum
          intro k _
          rw [Function.iterate_succ_apply']
          have hd := GradientDescentBasic.gradient_step_descent_of_quadratic_upper_bound
            hh hstep hu (T^[k] x₀)
          change h / 2 * ‖gradient f (T^[k] x₀)‖ ^ 2 ≤ f (T^[k] x₀) - f (T (T^[k] x₀))
          dsimp [T] at *
          linarith
        _ = f x₀ - f (T^[N] x₀) := by
          simpa using Finset.sum_range_sub' (fun k => f (T^[k] x₀)) N
    
    /-- Among the first `N` actual gradient iterates, one has small gradient norm.
    This is a best-iterate guarantee, not a last-iterate or global optimality guarantee. -/

    Exact module and namespace context

    Source assumptions versus formal assumptions

    SourceActual LeanDifference kindWhy it matters
    Smooth Euclidean objective and β-smoothness.Complete real Hilbert space and the global quadratic upper model in the actual gradient.generalizationOnly this model is consumed; the source smooth Euclidean case specializes it. No assertion of differentiability of arbitrary objectives or a smoothness equivalence.
    Positive β and h≤1/β.Real β and βh≤1, with h≥0.generalizationProduct and reciprocal restrictions agree for β>0. Signed β are permitted only within the explicit algebraic upper model.
    The printed bound divides by Nh and takes a minimum over 0,…,N−1 without explicit positivity in the theorem line.Unnormalized sum with h≥0,N∈ℕ.mathematically-necessaryThe source prints only h≤1/β. The normalized theorem additionally needs h>0 and N≥1. For f(t)=t²/2, β=1,x₀=1,z=0,N=1, h=0 or h=−1 makes the Lean-totalized square-root bound equal to 0, although the only tested gradient has norm 1. In ordinary real arithmetic these expressions are undefined. At N=0 the minimum has an empty index set. Proposed domain repairs are separately reviewed; the pinned source wording remains unchanged. The unnormalized component retains h=0,N=0 because there is no division or empty minimum.
    Attained minimum and finite minimum of gradient norms.No lower-bound premise or witness conclusion in this proof component.generalizationThe cumulative proof is valid before using the source minimum.

    No convexity, PL inequality, or stochastic oracle is assumed. These are shared textbook optimization results, not companion-paper completion. The real parameter β need not be positive in this algebraic model. For source β>0, βh≤1 is equivalent to h≤1/β; β=0 and negative β are explicitly broader model domains, not new reciprocal smoothness claims. The source prints only h≤1/β. The normalized theorem additionally needs h>0 and N≥1. For f(t)=t²/2, β=1,x₀=1,z=0,N=1, h=0 or h=−1 makes the Lean-totalized square-root bound equal to 0, although the only tested gradient has norm 1. In ordinary real arithmetic these expressions are undefined. At N=0 the minimum has an empty index set. Proposed domain repairs are separately reviewed; the pinned source wording remains unchanged. The unnormalized sum includes h=0 and N=0; both are equality cases. This proof component alone is not the normalized stationary-iterate guarantee.

    Encoder–denoiser: accepted · domain-mismatch

    Detected semantic differences

    • domains: The reusable declaration generalizes the finite-dimensional source setting to complete real inner-product spaces. — The module has CompleteSpace E and no finite-dimensional premise; publication explicitly labels algebraic Hilbert generalization.
    • assumptions: Source C²/C¹ regularity and beta≥0 are not Lean premises; the exact upper model is retained. — Definition1.12 is C¹ plus upper model with beta≥0; S3 supplies C². The module instead binds beta:ℝ and hu. This is disclosed in lesson assumptions.
    • constant_dependencies: Positive beta is a reciprocal-domain interpretation, not the literal beta-smoothness definition. — Definition1.12 permits beta=0. Candidate wording saying positive beta must be read with its explicit reciprocal restriction qualifier. Keep this distinction in the publication metadata.
    • conclusion: The cumulative inequality is a scoped proof component, not Theorem3.7 in isolation. — The audited binding supports accumulated-descent only; no witness, minimum or normalization appears.
    • domains: The unnormalized proof includes h=0 and N=0 and does not require attainment. — For h=0 actual iterates are constant; for N=0 the sum is empty and both sides vanish. The telescope needs no lower bound. Negative h cannot generally be added: f(t)=t²/2 on R, beta=1, h=-1, x₀=1 and x_(k+1)=2x_k give at N=1 left=-1/2 and right=-3/2, so the proposed inequality fails.

    A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.

    Scope and omitted-condition boundaries

    • No convexity, PL inequality, or stochastic oracle is assumed. These are shared textbook optimization results, not companion-paper completion.
    • The real parameter β need not be positive in this algebraic model. For source β>0, βh≤1 is equivalent to h≤1/β; β=0 and negative β are explicitly broader model domains, not new reciprocal smoothness claims.
    • The source prints only h≤1/β. The normalized theorem additionally needs h>0 and N≥1. For f(t)=t²/2, β=1,x₀=1,z=0,N=1, h=0 or h=−1 makes the Lean-totalized square-root bound equal to 0, although the only tested gradient has norm 1. In ordinary real arithmetic these expressions are undefined. At N=0 the minimum has an empty index set. Proposed domain repairs are separately reviewed; the pinned source wording remains unchanged.
    • The unnormalized sum includes h=0 and N=0; both are equality cases. This proof component alone is not the normalized stationary-iterate guarantee.

    Source and reuse

    ASTIS parents called

    Mathlib API called (external library)

    • Function.iterate_succ_apply'
    • Finset.mul_sum
    • Finset.sum_le_sum
    • Finset.sum_range_sub'

    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.

    ASTIS mathematical exposition

    A small-gradient iterate without convexity

    AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentStationarity.exists_gradient_descent_norm_le · theorem · Teaching coverage

    Statement

    For every initial point and positive natural iteration count, one of the first N actual gradient iterates satisfies the displayed norm bound.

    \[\exists k\in\{0,\ldots,N-1\}:\quad\|\nabla f(T^k x_0)\|\le\sqrt{\frac{2(f(x_0)-f(z))}{Nh}}.\]

    All objects and hypotheses

    • E is a complete real inner-product space; f:E→ℝ and β,h∈ℝ. Write T(x)=x−h∇f(x), x_k=T^k(x₀), with x₀∈E. T^0 is the identity.
    • For every x,y∈E, f(y)≤f(x)+⟨∇f(x),y−x⟩+(β/2)‖y−x‖², and βh≤1. ∇f is the actual Riesz vector of the totalized Fréchet derivative, not a supplied vector field.
    • The result is algebraic after this upper model is supplied; no separate C¹ or C² premise is required by the implication. The source smooth Euclidean setting supplies that model. This does not say that an arbitrary function is differentiable or satisfies the model.
    • h>0 and N∈ℕ with N≥1. z∈E is a supplied global minimizer: f(z)≤f(x) for all x∈E.

    Mathematical proof

    1. Use the true objective lower bound

    The supplied global minimizer z gives f(z)≤f(x_N). Apply accumulated descent to replace the final objective value by f(z).

    \[\frac h2\sum_{k=0}^{N-1}\|\nabla f(x_k)\|^2\le f(x_0)-f(z).\]
    Corresponding Lean step

    AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentStationarity.gradient_descent_sum_sq_bound; IsMinOn.

    2. Normalize with positive denominators

    Let B=2(f(x₀)−f(z))/(Nh). Since h>0 and N>0, multiplication by h/2 preserves and reflects order; (h/2)NB is exactly the initial gap. Hence the sum is at most NB.

    \[\sum_{k=0}^{N-1}\|\nabla f(x_k)\|^2\le NB,\qquad B=\frac{2(f(x_0)-f(z))}{Nh}.\]
    Corresponding Lean step

    Nat.cast_pos; field_simp; Finset.sum_const; Finset.card_range; mul_le_mul_iff_right₀.

    3. Select a small term and take a square root

    A nonempty finite sum bounded by the sum of the constant B has a term at most B. Convert that squared-norm bound to a norm bound with Mathlib’s square-root lemma. The witness is one of x₀,…,x_(N−1).

    \[\exists k<N:\quad\|\nabla f(x_k)\|^2\le B\quad\Longrightarrow\quad\|\nabla f(x_k)\|\le\sqrt B.\]
    Corresponding Lean step

    Finset.exists_le_of_sum_le; Finset.mem_range; Real.le_sqrt_of_sq_le.

    Lean statement · exists_gradient_descent_norm_le

    Actual gradient iterates, explicit upper model and step/iteration domains.

    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 exists_gradient_descent_norm_le {f : E → ℝ} {β h : ℝ} {z : E}
        (hz : IsMinOn f univ z) (hh : 0 < h) (hstep : β * h ≤ 1)
        (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
        (x₀ : E) {N : ℕ} (hN : 0 < N) :
        ∃ k ∈ Finset.range N,
          ‖gradient f ((fun x => x - h • gradient f x)^[k] x₀)‖ ≤
            Real.sqrt (2 * (f x₀ - f z) / ((N : ℝ) * h))

    Exact module and namespace context

    Lean proof · exists_gradient_descent_norm_le

    The supplied global minimizer z gives f(z)≤f(x_N). Apply accumulated descent to replace the final objective value by f(z). Let B=2(f(x₀)−f(z))/(Nh). Since h>0 and N>0, multiplication by h/2 preserves and reflects order; (h/2)NB is exactly the initial gap. Hence the sum is at most NB. A nonempty finite sum bounded by the sum of the constant B has a term at most B. Convert that squared-norm bound to a norm bound with Mathlib’s square-root lemma. The witness is one of x₀,…,x_(N−1).

    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 exists_gradient_descent_norm_le {f : E → ℝ} {β h : ℝ} {z : E}
        (hz : IsMinOn f univ z) (hh : 0 < h) (hstep : β * h ≤ 1)
        (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
        (x₀ : E) {N : ℕ} (hN : 0 < N) :
        ∃ k ∈ Finset.range N,
          ‖gradient f ((fun x => x - h • gradient f x)^[k] x₀)‖ ≤
            Real.sqrt (2 * (f x₀ - f z) / ((N : ℝ) * h)) := by
      let T : E → E := fun x => x - h • gradient f x
      let B : ℝ := 2 * (f x₀ - f z) / ((N : ℝ) * h)
      have hNr : 0 < (N : ℝ) := by exact_mod_cast hN
      have hd := gradient_descent_sum_sq_bound hh.le hstep hu x₀ N
      have hzN : f z ≤ f (T^[N] x₀) := hz (mem_univ _)
      have hsum : (∑ k ∈ Finset.range N, ‖gradient f (T^[k] x₀)‖ ^ 2) ≤
          ∑ _k ∈ Finset.range N, B := by
        have hb : h / 2 * ((N : ℝ) * B) = f x₀ - f z := by
          dsimp [B]
          field_simp
        simp only [Finset.sum_const, Finset.card_range, nsmul_eq_mul]
        apply (mul_le_mul_iff_right₀ (show 0 < h / 2 by positivity)).mp
        change h / 2 * (∑ k ∈ Finset.range N, ‖gradient f (T^[k] x₀)‖ ^ 2) ≤
          h / 2 * ((N : ℝ) * B)
        rw [hb]
        change h / 2 * (∑ k ∈ Finset.range N, ‖gradient f (T^[k] x₀)‖ ^ 2) ≤
          f x₀ - f (T^[N] x₀) at hd
        linarith
      obtain ⟨k, hk, hkle⟩ := Finset.exists_le_of_sum_le ⟨0, Finset.mem_range.mpr hN⟩ hsum
      refine ⟨k, hk, ?_⟩
      exact Real.le_sqrt_of_sq_le hkle
    
    end AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentStationarity

    Exact module and namespace context

    Source assumptions versus formal assumptions

    SourceActual LeanDifference kindWhy it matters
    Smooth Euclidean objective and β-smoothness.Complete real Hilbert space and the global quadratic upper model in the actual gradient.generalizationOnly this model is consumed; the source smooth Euclidean case specializes it. No assertion of differentiability of arbitrary objectives or a smoothness equivalence.
    Positive β and h≤1/β.Real β and βh≤1, with h>0.generalizationProduct and reciprocal restrictions agree for β>0. Signed β are permitted only within the explicit algebraic upper model.
    The printed bound divides by Nh and takes a minimum over 0,…,N−1 without explicit positivity in the theorem line.Strictly positive h and N≥1.mathematically-necessaryThe source prints only h≤1/β. The normalized theorem additionally needs h>0 and N≥1. For f(t)=t²/2, β=1,x₀=1,z=0,N=1, h=0 or h=−1 makes the Lean-totalized square-root bound equal to 0, although the only tested gradient has norm 1. In ordinary real arithmetic these expressions are undefined. At N=0 the minimum has an empty index set. Proposed domain repairs are separately reviewed; the pinned source wording remains unchanged.
    Attained minimum and finite minimum of gradient norms.Supplied IsMinOn f univ z and an existential index in Finset.range N.sameFor N≥1, existence of a term below B is equivalent to the finite minimum being below B. z encodes the source minimizer, without proving existence.

    No convexity, PL inequality, or stochastic oracle is assumed. These are shared textbook optimization results, not companion-paper completion. The real parameter β need not be positive in this algebraic model. For source β>0, βh≤1 is equivalent to h≤1/β; β=0 and negative β are explicitly broader model domains, not new reciprocal smoothness claims. The source prints only h≤1/β. The normalized theorem additionally needs h>0 and N≥1. For f(t)=t²/2, β=1,x₀=1,z=0,N=1, h=0 or h=−1 makes the Lean-totalized square-root bound equal to 0, although the only tested gradient has norm 1. In ordinary real arithmetic these expressions are undefined. At N=0 the minimum has an empty index set. Proposed domain repairs are separately reviewed; the pinned source wording remains unchanged. The existential witness is equivalent to the finite-minimum upper bound on this nonempty index set. No last-iterate guarantee, convergence of the entire sequence, exact stationary point, or global optimality is concluded. The minimizer is supplied, not constructed. At h=1/β with β>0, the formula gives the source O(βΔ₀/ε²) stationarity scaling; no separate stopping algorithm or oracle-complexity theorem is claimed.

    Encoder–denoiser: accepted · domain-mismatch

    Detected semantic differences

    • domains: The reusable declaration generalizes the finite-dimensional source setting to complete real inner-product spaces. — The module has CompleteSpace E and no finite-dimensional premise; publication explicitly labels algebraic Hilbert generalization.
    • assumptions: Source C²/C¹ regularity and beta≥0 are not Lean premises; the exact upper model is retained. — Definition1.12 is C¹ plus upper model with beta≥0; S3 supplies C². The module instead binds beta:ℝ and hu. This is disclosed in lesson assumptions.
    • constant_dependencies: Positive beta is a reciprocal-domain interpretation, not the literal beta-smoothness definition. — Definition1.12 permits beta=0. Candidate wording saying positive beta must be read with its explicit reciprocal restriction qualifier. Keep this distinction in the publication metadata.
    • domains: Theorem3.7 needs explicit positive h and nonempty range; Lean enforces both. — The source line prints only h≤1/beta but divides by Nh and minimizes over k<N. The source overlay proposed below preserves the mathematical setting and makes those domains explicit.

    Proposed source repair — not the original theorem

    For every natural dimension d, let f:R^d→R be twice continuously differentiable and let beta>0. Assume f(y)≤f(x)+<grad f(x),y-x>+(beta/2)||y-x||² for all x,y∈R^d, and let z be a global minimizer of f, with f_star=f(z). For every h with 0<h≤1/beta, every x₀∈R^d and every natural N≥1, define x_(k+1)=x_k-h grad f(x_k) for all natural k starting from x₀. Then min_{0≤k<N}||grad f(x_k)||≤sqrt(2(f(x₀)-f_star)/(N*h)).

    State the ordinary reciprocal domain beta>0, the descent step 0<h≤1/beta, and the nonempty iteration range N≥1. Retain the Euclidean C² setting, actual updates, attained minimum and original best-iterate conclusion. Do not import the Lean Hilbert/algebraic extension into the source theorem.

    Classification: source-implicit · Status: accepted

    The denominator Nh must be positive for the averaging argument, and a minimum over the first N indices needs N≥1. beta>0 selects the ordinary reciprocal domain from the beta≥0 smoothness definition. These are source-domain clarifications rather than consequences of Lean division conventions.

    Minimality: Only domains of already present parameters are clarified. No convexity, PL inequality, gradient-Lipschitz condition, coercivity or unique minimizer is added. The source C² and attained-minimum conventions and numerical constant 2 are retained. beta=0 remains a separate algebraic extension through beta*h≤1, not a replacement for the printed reciprocal statement.

    Evidence: Primary source https://arxiv.org/html/2605.07006v1 Definition1.12, S2 convention, S3 and Theorem3.7. Step endpoint: on R take f(t)=t²/2, beta=1, z=0, x₀=1, h=0, N=1 and x_(k+1)=x_k-h*f'(x_k)=x_k, so all x_k=1 and the minimum gradient norm is 1; ordinary Nh division is undefined, while Lean-totalized division gives RHS 0 and a false bound. Negative step: on R take f(t)=t²/2, beta=1, z=0, x₀=1, h=-1, N=1 and x_(k+1)=2x_k; the radicand is -1, not an ordinary real square-root domain, while Real.sqrt makes RHS 0 and the bound false. Empty range: on R take f(t)=t²/2, beta=1, z=0, x₀=1, h=1, N=0 and x_(k+1)=x_k-f'(x_k)=0; there is no k<N and no real-valued finite minimum over that empty range. Reciprocal endpoint: on R take f(t)=0, beta=0, z=0, x₀=1, h=1, N=1 and x_(k+1)=x_k; the algebraic bound holds but 1/beta in ordinary real arithmetic is undefined.

    A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.

    Scope and omitted-condition boundaries

    • No convexity, PL inequality, or stochastic oracle is assumed. These are shared textbook optimization results, not companion-paper completion.
    • The real parameter β need not be positive in this algebraic model. For source β>0, βh≤1 is equivalent to h≤1/β; β=0 and negative β are explicitly broader model domains, not new reciprocal smoothness claims.
    • The source prints only h≤1/β. The normalized theorem additionally needs h>0 and N≥1. For f(t)=t²/2, β=1,x₀=1,z=0,N=1, h=0 or h=−1 makes the Lean-totalized square-root bound equal to 0, although the only tested gradient has norm 1. In ordinary real arithmetic these expressions are undefined. At N=0 the minimum has an empty index set. Proposed domain repairs are separately reviewed; the pinned source wording remains unchanged.
    • The existential witness is equivalent to the finite-minimum upper bound on this nonempty index set. No last-iterate guarantee, convergence of the entire sequence, exact stationary point, or global optimality is concluded.
    • The minimizer is supplied, not constructed. At h=1/β with β>0, the formula gives the source O(βΔ₀/ε²) stationarity scaling; no separate stopping algorithm or oracle-complexity theorem is claimed.

    Source and reuse

    ASTIS parents called

    Mathlib API called (external library)

    • Finset.exists_le_of_sum_le
    • Finset.sum_const
    • Finset.card_range
    • mul_le_mul_iff_right₀
    • Real.le_sqrt_of_sq_le

    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.

    Which proof edges are actually covered?

    • Local proof component; source adapter/review separate Derive cumulative squared-gradient decrease from actual updates
    • Local proof component; source adapter/review separate Use the global minimum, average and square root to obtain a small-gradient iterate

    Exercise3.2 · optimal constant gradient step

    Sinho Chewi, Lectures on Optimization. ASTIS-authored paraphrase; no endorsement implied.

    arXiv:2605.07006v1 · Exercise3.2 and the Section3 C² convention; Definition1.12 smoothness · faithful paraphrase

    Complete source statement (ASTIS restatement)

    For an α-convex and β-smooth C² Euclidean objective, apply the fundamental theorem of calculus to T_h=id−h∇f along the segment between two points. Bound the eigenvalues of DT_h to obtain its operator norm bound and show that h=2/(α+β) minimizes the resulting bound. The resulting factor is (κ−1)/(κ+1), where κ=β/α, improving the preceding gradient-descent estimate.

    • The surrounding section works with C² Euclidean objectives, an α-strong-convexity lower bound and β-smoothness upper bound.
    • The condition-number contraction formula is used in the positive-curvature regime 0<α≤β; κ=β/α. Step h is a nonnegative gradient-descent step in the derivative-bound argument.

    Segment integral

    \[T_h(y)-T_h(x)=\int_0^1 DT_h(x+t(y-x))(y-x)\,dt.\]

    Endpoint bound and balanced step

    \[M_h=\max\{|1-h\alpha|,|1-h\beta|\},\qquad h_\star=\frac2{\alpha+\beta},\qquad M_{h_\star}=\frac{\kappa-1}{\kappa+1}.\]

    Read the formalized proofs

    Each statement and proof below has its own closed Lean disclosure. ASTIS parents, Mathlib calls and external mathematical sources are distinguished in each proof.

    ASTIS mathematical exposition

    The endpoint bound for a gradient update

    AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentOptimalStep.gradient_step_endpoint_bound · theorem · Teaching coverage

    Statement

    Every nonnegative gradient step satisfies the displayed pairwise Lipschitz bound.

    \[\forall x,y\in E,\quad\|T_h(y)-T_h(x)\|\le\max\{|1-h\alpha|,|1-h\beta|\}\,\|y-x\|.\]

    All objects and hypotheses

    • E is a complete real inner-product space and f:E→ℝ is C² (ContDiff ℝ 2 f). ∇f is the actual Riesz gradient of f; no arbitrary gradient or Hessian field is supplied. Write T_h(x)=x−h∇f(x).
    • f is globally α-strongly convex in the StrongConvexOn univ α sense, and for all x,y∈E the upper model f(y)≤f(x)+⟨∇f(x),y−x⟩+(β/2)‖y−x‖² holds. All derivatives and curvature bounds are global.
    • α,β∈ℝ may be signed; h≥0. The simultaneous global curvature models are assumed, not inferred for incompatible parameters.

    Mathematical proof

    1. Recover the actual Hessian interval

    Apply the strong-convex first-order gradient monotonicity theorem and its C² Hessian equivalence. The upper-model equivalence gives the opposite inequality. The Riesz map turns D²f(z) into a continuous linear operator H_z with the displayed quadratic form.

    \[\alpha\|v\|^2\le\langle H_zv,v\rangle=D^2f(z)[v,v]\le\beta\|v\|^2.\]
    Corresponding Lean step

    StrongConvexFirstOrder.gradient_inner_lower_bound_of_strongConvexOn; ConvexityC2.gradient_mono_iff_fderiv2_lower; SmoothnessEquivalences.upper_model_iff_fderiv2_upper; toDual_symm_apply.

    2. Bound the symmetric derivative of the update

    Differentiate T_h to obtain A_z=I−hH_z. C² symmetry makes A_z symmetric. Multiplying the Hessian inequalities by h≥0 puts the Rayleigh value of every nonzero vector in [1−hβ,1−hα]. Its absolute value is at most the maximum of the endpoint absolute values. Mathlib’s supremum formula bounds the operator norm; the zero vector is treated separately. In this supremum the Rayleigh quotient is assigned value zero at v=0, including when E is the zero space.

    \[\|DT_h(z)\|_{\rm op}=\sup_v\left|\frac{\langle (I-hH_z)v,v\rangle}{\|v\|^2}\right|\le M_h,\quad M_h=\max\{|1-h\alpha|,|1-h\beta|\}.\]
    Corresponding Lean step

    ContDiffAt.isSymmSndFDerivAt; ContinuousLinearMap.norm_eq_iSup_rayleighQuotient; HasFDerivAt.comp; HasFDerivAt.sub; HasFDerivAt.const_smul.

    3. Integrate along the actual segment

    Set v=y−x. The derivative of t↦T_h(x+tv) is A_(x+tv)v and is continuous. The vector fundamental theorem of calculus expresses the update difference as its integral over [0,1]. Bound the integral norm by the uniform derivative bound times the segment length.

    \[\|T_h(y)-T_h(x)\|=\left\|\int_0^1 A_{x+t(y-x)}(y-x)\,dt\right\|\le\int_0^1 M_h\|y-x\|\,dt=M_h\|y-x\|.\]
    Corresponding Lean step

    intervalIntegral.integral_eq_sub_of_hasDerivAt; intervalIntegral.norm_integral_le_of_norm_le_const; ContinuousLinearMap.le_opNorm; ContDiff.continuous_fderiv.

    Lean statement · gradient_step_endpoint_bound

    C² actual-gradient map, global lower curvature and quadratic upper model; explicit real parameter domains.

    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 gradient_step_endpoint_bound {f : E → ℝ} {α β h : ℝ}
        (hf : ContDiff ℝ 2 f) (hsc : StrongConvexOn univ α f) (hh : 0 ≤ h)
        (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
        (x y : E) :
        ‖(y - h • gradient f y) - (x - h • gradient f x)‖ ≤
          max |1 - h * α| |1 - h * β| * ‖y - x‖

    Exact module and namespace context

    Lean proof · gradient_step_endpoint_bound

    Apply the strong-convex first-order gradient monotonicity theorem and its C² Hessian equivalence. The upper-model equivalence gives the opposite inequality. The Riesz map turns D²f(z) into a continuous linear operator H_z with the displayed quadratic form. Differentiate T_h to obtain A_z=I−hH_z. C² symmetry makes A_z symmetric. Multiplying the Hessian inequalities by h≥0 puts the Rayleigh value of every nonzero vector in [1−hβ,1−hα]. Its absolute value is at most the maximum of the endpoint absolute values. Mathlib’s supremum formula bounds the operator norm; the zero vector is treated separately. In this supremum the Rayleigh quotient is assigned value zero at v=0, including when E is the zero space. Set v=y−x. The derivative of t↦T_h(x+tv) is A_(x+tv)v and is continuous. The vector fundamental theorem of calculus expresses the update difference as its integral over [0,1]. Bound the integral norm by the uniform derivative bound times the segment length.

    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 gradient_step_endpoint_bound {f : E → ℝ} {α β h : ℝ}
        (hf : ContDiff ℝ 2 f) (hsc : StrongConvexOn univ α f) (hh : 0 ≤ h)
        (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
        (x y : E) :
        ‖(y - h • gradient f y) - (x - h • gradient f x)‖ ≤
          max |1 - h * α| |1 - h * β| * ‖y - x‖ := by
      let M := max |1 - h * α| |1 - h * β|
      have hM : 0 ≤ M := (abs_nonneg _).trans (le_max_left _ _)
      have hlo := (ConvexityC2.gradient_mono_iff_fderiv2_lower hf).mp (fun a b =>
        StrongConvexFirstOrder.gradient_inner_lower_bound_of_strongConvexOn hsc
          (fun z _ => ((hf.of_le (by norm_num) : ContDiff ℝ 1 f).differentiable_one z).hasGradientAt)
          (mem_univ a) (mem_univ b))
      have hup := (SmoothnessEquivalences.upper_model_iff_fderiv2_upper hf).mp hu
      let R : (E →L[ℝ] ℝ) →L[ℝ] E :=
        { toFun := (toDual ℝ E).symm
          map_add' := (toDual ℝ E).symm.map_add
          map_smul' := by intros; simp
          cont := (toDual ℝ E).symm.continuous }
      let H (z : E) : E →L[ℝ] E := R.comp (fderiv ℝ (fderiv ℝ f) z)
      let A (z : E) : E →L[ℝ] E := ContinuousLinearMap.id ℝ E - h • H z
      let T : E → E := fun z => z - h • gradient f z
      have hfd : ContDiff ℝ 1 (fderiv ℝ f) := hf.fderiv_right (by norm_num)
      have hgrad (z : E) : HasFDerivAt (gradient f) (H z) z :=
        R.hasFDerivAt.comp z (hfd.differentiable_one z).hasFDerivAt
      have hTd (z : E) : HasFDerivAt T (A z) z :=
        (hasFDerivAt_id z).sub ((hgrad z).const_smul h)
      have hT : ContDiff ℝ 1 T := contDiff_id.sub ((R.contDiff.comp hfd).const_smul h)
      have hinner (z v w : E) : inner ℝ (H z v) w = (fderiv ℝ (fderiv ℝ f) z v) w :=
        toDual_symm_apply
      have hsym (z : E) : (A z).IsSymmetric := by
        intro v w
        change inner ℝ (v - h • H z v) w = inner ℝ v (w - h • H z w)
        rw [inner_sub_left, inner_sub_right, real_inner_smul_left, inner_smul_right]
        have hr : inner ℝ v (H z w) = (fderiv ℝ (fderiv ℝ f) z w) v :=
          (real_inner_comm v (H z w)).symm.trans (hinner z w v)
        rw [hinner, hr]
        rw [hf.contDiffAt.isSymmSndFDerivAt (by norm_num) v w]
      have hnorm (z : E) : ‖A z‖ ≤ M := by
        rw [(A z).norm_eq_iSup_rayleighQuotient (hsym z)]
        apply ciSup_le
        intro v
        change |inner ℝ (A z v) v / ‖v‖ ^ 2| ≤ M
        by_cases hv : v = 0
        · simp [hv]
          exact hM
        · simp only [abs_div, abs_pow, abs_norm]
          apply (div_le_iff₀ (sq_pos_of_pos (norm_pos_iff.mpr hv))).mpr
          change |inner ℝ (v - h • H z v) v| ≤ M * ‖v‖ ^ 2
          rw [inner_sub_left, real_inner_smul_left, real_inner_self_eq_norm_sq, hinner]
          have hl := mul_le_mul_of_nonneg_left (hlo z v) hh
          have hu' := mul_le_mul_of_nonneg_left (hup z v) hh
          have hleft : 1 - h * α ≤ M := (le_abs_self _).trans (le_max_left _ _)
          have hright : -(1 - h * β) ≤ M := (neg_le_abs _).trans (le_max_right _ _)
          have hleft' := mul_le_mul_of_nonneg_right hleft (sq_nonneg ‖v‖)
          have hright' := mul_le_mul_of_nonneg_right hright (sq_nonneg ‖v‖)
          exact abs_le.mpr ⟨by nlinarith, by nlinarith⟩
      let v := y - x
      have hpath (t : ℝ) : HasDerivAt (fun s : ℝ => T (x + s • v)) (A (x + t • v) v) t := by
        convert (hTd (x + t • v)).comp_hasDerivAt t
          (((hasDerivAt_id t).smul_const v).const_add x) using 1 <;> simp [Function.comp_def]
      have hc : Continuous (fun t : ℝ => A (x + t • v) v) := by
        have hA : A = fderiv ℝ T := funext (fun z => (hTd z).fderiv.symm)
        rw [hA]
        exact ((hT.continuous_fderiv (by norm_num)).comp
          (continuous_const.add (continuous_id.smul continuous_const))).clm_apply continuous_const
      have hFTC : (∫ t : ℝ in 0..1, A (x + t • v) v) = T y - T x := by
        simpa [v] using intervalIntegral.integral_eq_sub_of_hasDerivAt
          (fun t _ => hpath t) (hc.intervalIntegrable 0 1)
      change ‖T y - T x‖ ≤ M * ‖v‖
      rw [← hFTC]
      simpa using intervalIntegral.norm_integral_le_of_norm_le_const (a := (0 : ℝ)) (b := 1)
        (fun t _ => ((A (x + t • v)).le_opNorm v).trans
          (mul_le_mul_of_nonneg_right (hnorm _) (norm_nonneg v)))
    
    /-- The step `2/(α+β)` gives the sharp uniform curvature-envelope contraction.
    Its factor minimizes the endpoint max-envelope over every real step.
    The `α=0` boundary is nonexpansive, and `α=β` is retained. -/

    Exact module and namespace context

    Source assumptions versus formal assumptions

    SourceActual LeanDifference kindWhy it matters
    C² Euclidean objective.C² objective on a complete real Hilbert space.generalizationThe symmetric Rayleigh quotient norm identity replaces the finite-dimensional eigenvalue description and the same vector segment FTC is used.
    α-convex and β-smooth objective.StrongConvexOn univ α f and the global upper quadratic model in the actual gradient.sameUnder C² regularity, existing compiled C² equivalences give exactly the lower and upper Hessian quadratic-form bounds used by the source.
    C² Hessian and segment integral.Actual Riesz Hessian derivative, symmetric continuous linear update derivative, continuous segment derivative.source-implicitC² and completeness discharge the derivative, symmetry and integrability conditions inside the proof; no extra analytic hypothesis is supplied.
    Positive-curvature condition-number regime.Signed α,β with the actual compatible curvature models and h≥0.generalizationThe intermediate endpoint argument does not use parameter positivity.
    Minimize the bound on the update difference.Only the bound component.sameNo claim of objective-specific best step or oracle complexity. The derivative/FTC route is retained. The step-selection obligation belongs to the separate declaration.

    The source works in Euclidean space; the Lean theorem extends the same argument to complete real Hilbert spaces using the symmetric Rayleigh norm formula. Completeness supplies the Riesz map and the vector-valued integral. C² regularity supplies the actual gradient derivative, Hessian symmetry, and continuity/integrability along the closed line segment. No additional domination, measurability, boundary or supplied spectral hypothesis is assumed. These are textbook optimisation edges. No minimizer, N-step convergence, stochastic sampling theorem, oracle lower bound or companion-paper completion is asserted. This is the Exercise3.2 derivative/integral proof component before step selection. It does not by itself assert contraction: M_h can exceed one. It includes h=0 and allows signed curvature bounds.

    Encoder–denoiser: accepted · domain-mismatch

    Detected semantic differences

    • domains: Intentional Hilbert-space generalization; full statements are not literally domain-equivalent. — Candidate assumptions and lesson identify the domain expansion; restricting to E=R^d gives the source proof component.
    • assumptions: Intentional signed-modulus endpoint extension. — The extension is stated in the declaration/lesson and does not replace the source regime. Neither extension is proposed as a source repair.
    • conclusion: This declaration is the endpoint-bound component, not the balanced minimization conclusion of the entire exercise. — Publication binding supports only hessian-segment-bound. The separately reviewed optimal_gradient_step supplies balanced-minimax-step.

    A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.

    Scope and omitted-condition boundaries

    • The source works in Euclidean space; the Lean theorem extends the same argument to complete real Hilbert spaces using the symmetric Rayleigh norm formula. Completeness supplies the Riesz map and the vector-valued integral.
    • C² regularity supplies the actual gradient derivative, Hessian symmetry, and continuity/integrability along the closed line segment. No additional domination, measurability, boundary or supplied spectral hypothesis is assumed.
    • These are textbook optimisation edges. No minimizer, N-step convergence, stochastic sampling theorem, oracle lower bound or companion-paper completion is asserted.
    • This is the Exercise3.2 derivative/integral proof component before step selection. It does not by itself assert contraction: M_h can exceed one. It includes h=0 and allows signed curvature bounds.

    Source and reuse

    ASTIS parents called

    Mathlib API called (external library)

    • toDual_symm_apply
    • ContDiffAt.isSymmSndFDerivAt
    • ContinuousLinearMap.norm_eq_iSup_rayleighQuotient
    • intervalIntegral.integral_eq_sub_of_hasDerivAt
    • intervalIntegral.norm_integral_le_of_norm_le_const
    • ContinuousLinearMap.le_opNorm

    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.

    ASTIS mathematical exposition

    The optimal uniform gradient step

    AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentOptimalStep.optimal_gradient_step · theorem · Teaching coverage

    Statement

    The balanced positive step satisfies the displayed bound, and its factor is a lower bound for the endpoint envelope at every real step.

    \[h_\star=\frac2{\alpha+\beta},\quad q=\frac{\beta-\alpha}{\alpha+\beta}:\qquad\|T_{h_\star}(y)-T_{h_\star}(x)\|\le q\|y-x\|,\quad\forall h\in\mathbb R,\ q\le\max\{|1-h\alpha|,|1-h\beta|\}.\]

    All objects and hypotheses

    • E is a complete real inner-product space and f:E→ℝ is C² (ContDiff ℝ 2 f). ∇f is the actual Riesz gradient of f; no arbitrary gradient or Hessian field is supplied. Write T_h(x)=x−h∇f(x).
    • f is globally α-strongly convex in the StrongConvexOn univ α sense, and for all x,y∈E the upper model f(y)≤f(x)+⟨∇f(x),y−x⟩+(β/2)‖y−x‖² holds. All derivatives and curvature bounds are global.
    • 0≤α≤β and β>0; hence α+β>0. The optimality comparison quantifies over every real step h, while the chosen step is positive.

    Mathematical proof

    1. Balance the two endpoints

    Let D=α+β>0 and q=(β−α)/D≥0. At h★=2/D the endpoint values are q and −q. Their maximum absolute value is q, so the preceding actual-gradient bound gives the stated two-point inequality.

    \[1-h_\star\alpha=q,\quad 1-h_\star\beta=-q,\qquad\|T_{h_\star}(y)-T_{h_\star}(x)\|\le q\|y-x\|.\]
    Corresponding Lean step

    AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentOptimalStep.gradient_step_endpoint_bound; field_simp; abs_neg; abs_of_nonneg; max_self.

    2. Prove optimality of this uniform envelope

    For any real h, M_h≥1−hα and M_h≥hβ−1. Multiply these inequalities by β≥0 and α≥0 respectively and add. The h terms cancel. Dividing by α+β>0 yields M_h≥q, including negative h. This is envelope minimization, not an objective-by-objective optimal-step theorem.

    \[(\alpha+\beta)M_h\ge\beta(1-h\alpha)+\alpha(h\beta-1)=\beta-\alpha\quad\Longrightarrow\quad M_h\ge q.\]
    Corresponding Lean step

    le_abs_self; neg_le_abs; mul_le_mul_of_nonneg_left; div_le_iff₀.

    Lean statement · optimal_gradient_step

    C² actual-gradient map, global lower curvature and quadratic upper model; explicit real parameter domains.

    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 optimal_gradient_step {f : E → ℝ} {α β : ℝ}
        (hf : ContDiff ℝ 2 f) (hsc : StrongConvexOn univ α f)
        (hα : 0 ≤ α) (hβ : 0 < β) (hαβ : α ≤ β)
        (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
        (x y : E) :
        ‖(y - (2 / (α + β)) • gradient f y) - (x - (2 / (α + β)) • gradient f x)‖ ≤
            ((β - α) / (α + β)) * ‖y - x‖ ∧
          ∀ h : ℝ, (β - α) / (α + β) ≤ max |1 - h * α| |1 - h * β|

    Exact module and namespace context

    Lean proof · optimal_gradient_step

    Let D=α+β>0 and q=(β−α)/D≥0. At h★=2/D the endpoint values are q and −q. Their maximum absolute value is q, so the preceding actual-gradient bound gives the stated two-point inequality. For any real h, M_h≥1−hα and M_h≥hβ−1. Multiply these inequalities by β≥0 and α≥0 respectively and add. The h terms cancel. Dividing by α+β>0 yields M_h≥q, including negative h. This is envelope minimization, not an objective-by-objective optimal-step theorem.

    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 optimal_gradient_step {f : E → ℝ} {α β : ℝ}
        (hf : ContDiff ℝ 2 f) (hsc : StrongConvexOn univ α f)
        (hα : 0 ≤ α) (hβ : 0 < β) (hαβ : α ≤ β)
        (hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2)
        (x y : E) :
        ‖(y - (2 / (α + β)) • gradient f y) - (x - (2 / (α + β)) • gradient f x)‖ ≤
            ((β - α) / (α + β)) * ‖y - x‖ ∧
          ∀ h : ℝ, (β - α) / (α + β) ≤ max |1 - h * α| |1 - h * β| := by
      have hD : 0 < α + β := add_pos_of_nonneg_of_pos hα hβ
      have hq : 0 ≤ (β - α) / (α + β) := div_nonneg (sub_nonneg.mpr hαβ) hD.le
      have ha : 1 - 2 / (α + β) * α = (β - α) / (α + β) := by field_simp; ring
      have hb : 1 - 2 / (α + β) * β = -((β - α) / (α + β)) := by field_simp; ring
      constructor
      · have hc := gradient_step_endpoint_bound hf hsc (show 0 ≤ 2 / (α + β) by positivity) hu x y
        simpa only [ha, hb, abs_neg, abs_of_nonneg hq, max_self] using hc
      · intro h
        let M := max |1 - h * α| |1 - h * β|
        have ha' : 1 - h * α ≤ M := (le_abs_self _).trans (le_max_left _ _)
        have hb' : -(1 - h * β) ≤ M := (neg_le_abs _).trans (le_max_right _ _)
        apply (div_le_iff₀ hD).mpr
        have h1 := mul_le_mul_of_nonneg_left ha' hβ.le
        have h2 := mul_le_mul_of_nonneg_left hb' hα
        nlinarith
    
    end AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentOptimalStep

    Exact module and namespace context

    Source assumptions versus formal assumptions

    SourceActual LeanDifference kindWhy it matters
    C² Euclidean objective.C² objective on a complete real Hilbert space.generalizationThe symmetric Rayleigh quotient norm identity replaces the finite-dimensional eigenvalue description and the same vector segment FTC is used.
    α-convex and β-smooth objective.StrongConvexOn univ α f and the global upper quadratic model in the actual gradient.sameUnder C² regularity, existing compiled C² equivalences give exactly the lower and upper Hessian quadratic-form bounds used by the source.
    C² Hessian and segment integral.Actual Riesz Hessian derivative, symmetric continuous linear update derivative, continuous segment derivative.source-implicitC² and completeness discharge the derivative, symmetry and integrability conditions inside the proof; no extra analytic hypothesis is supplied.
    Positive-curvature condition-number regime.0≤α≤β and β>0; optimal comparison for all real h.generalizationAt α=0 the extension is nonexpansive and no κ is formed. β>0 gives a positive denominator; α≤β is explicit rather than inferred in the zero-dimensional space. For α>0 this is the source contraction factor.
    Minimize the bound on the update difference.Pairwise bound at 2/(α+β) and global scalar minimax inequality for the endpoint envelope.sameNo claim of objective-specific best step or oracle complexity. The derivative/FTC route is retained. The scalar lower bound is proved for all real h, so in particular covers nonnegative descent steps.

    The source works in Euclidean space; the Lean theorem extends the same argument to complete real Hilbert spaces using the symmetric Rayleigh norm formula. Completeness supplies the Riesz map and the vector-valued integral. C² regularity supplies the actual gradient derivative, Hessian symmetry, and continuity/integrability along the closed line segment. No additional domination, measurability, boundary or supplied spectral hypothesis is assumed. These are textbook optimisation edges. No minimizer, N-step convergence, stochastic sampling theorem, oracle lower bound or companion-paper completion is asserted. For the source’s condition-number interpretation assume α>0: κ=β/α and q=(κ−1)/(κ+1)<1. At α=0 the extension gives q=1 (nonexpansive) and κ is undefined. At α=β>0 the map has zero pairwise difference; this does not identify a minimizer without further argument. The explicit order α≤β preserves the zero-dimensional case, where curvature inequalities alone do not imply this order. The result minimizes the endpoint upper envelope; it does not state that every individual objective has its actual smallest Lipschitz constant at h★.

    Encoder–denoiser: accepted · domain-mismatch

    Detected semantic differences

    • domains: Intentional Hilbert-space generalization; full statements are not literally domain-equivalent. — Candidate assumptions and lesson identify the domain expansion; restricting to E=R^d gives the source proof component.
    • assumptions: Intentional α=0 nonexpansive extension beyond the κ>finite positive-curvature interpretation. — The extension is stated in the declaration/lesson and does not replace the source regime. Neither extension is proposed as a source repair.
    • quantifiers: Scalar envelope comparison includes every real h. — The weighted endpoint proof works for negative h too. The chosen balanced h is positive; no actual-gradient bound for every negative step is claimed here.

    A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.

    Scope and omitted-condition boundaries

    • The source works in Euclidean space; the Lean theorem extends the same argument to complete real Hilbert spaces using the symmetric Rayleigh norm formula. Completeness supplies the Riesz map and the vector-valued integral.
    • C² regularity supplies the actual gradient derivative, Hessian symmetry, and continuity/integrability along the closed line segment. No additional domination, measurability, boundary or supplied spectral hypothesis is assumed.
    • These are textbook optimisation edges. No minimizer, N-step convergence, stochastic sampling theorem, oracle lower bound or companion-paper completion is asserted.
    • For the source’s condition-number interpretation assume α>0: κ=β/α and q=(κ−1)/(κ+1)<1. At α=0 the extension gives q=1 (nonexpansive) and κ is undefined. At α=β>0 the map has zero pairwise difference; this does not identify a minimizer without further argument.
    • The explicit order α≤β preserves the zero-dimensional case, where curvature inequalities alone do not imply this order. The result minimizes the endpoint upper envelope; it does not state that every individual objective has its actual smallest Lipschitz constant at h★.

    Source and reuse

    ASTIS parents called

    Mathlib API called (external library)

    • le_abs_self
    • neg_le_abs
    • mul_le_mul_of_nonneg_left
    • div_le_iff₀

    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.

    Which proof edges are actually covered?

    • Local proof component; source adapter/review separate Derive the endpoint Lipschitz bound from the actual Hessian and segment integral
    • Local proof component; source adapter/review separate Select the balanced step and prove minimality of its curvature envelope

    Exercise3.3 · exact quadratic gradient descent

    Sinho Chewi, Lectures on Optimization. ASTIS-authored paraphrase; no endorsement implied.

    arXiv:2605.07006v1 · Exercise3.3; Section3 gradient-descent definition · faithful paraphrase

    Complete source statement (ASTIS restatement)

    For the centered quadratic objective associated with a positive-definite symmetric matrix, derive an explicit expression for gradient-descent iterates and assess how sharp the estimates in this section are. The exercise does not print a solution.

    • A is a positive-definite symmetric matrix on Euclidean d-space. f(x)=⟨x,Ax⟩/2; gradient descent uses the actual gradient and a constant step h.

    Source objective and actual iteration

    \[f(x)=\tfrac12\langle x,Ax\rangle,\quad A\succ0,\quad x_{n+1}=x_n-h\nabla f(x_n).\]

    Read the formalized proofs

    Each statement and proof below has its own closed Lean disclosure. ASTIS parents, Mathlib calls and external mathematical sources are distinguished in each proof.

    ASTIS mathematical exposition

    Exact gradient descent on a quadratic

    AutoSamplingTheory.TechnicalLemmas.Analysis.QuadraticGradientDescent.quadratic_gradient_iterate · theorem · Teaching coverage

    Statement

    For every natural iteration count, the actual gradient-descent trajectory equals the indicated operator power.

    \[T_h^N(x)=(I-hH)^N x,\qquad f(x)=\tfrac12\langle x,Hx\rangle.\]

    All objects and hypotheses

    • E is a complete real inner-product space. H:E→E is a continuous linear operator symmetric in the sense ⟨Hx,y⟩=⟨x,Hy⟩ for every x,y.
    • Define the actual centered objective f(x)=⟨x,Hx⟩/2 and its actual gradient update T_h(x)=x−h∇f(x). h∈ℝ is constant across steps, N∈ℕ, and the initial point x∈E is arbitrary.

    Mathematical proof

    1. Differentiate the actual objective

    The product rule for the inner product gives half the sum of two linear terms. Symmetry moves H between arguments, and real inner-product symmetry identifies both terms. This is the continuous linear functional represented by Hx, so uniqueness of the Riesz gradient yields ∇f(x)=Hx.

    \[Df(x)[v]=\tfrac12\bigl(\langle x,Hv\rangle+\langle v,Hx\rangle\bigr)=\langle Hx,v\rangle,\qquad\nabla f(x)=Hx.\]
    Corresponding Lean step

    HasFDerivAt.inner; HasFDerivAt.const_mul; LinearMap.IsSymmetric.apply_clm; hasGradientAt_iff_hasFDerivAt; HasGradientAt.gradient.

    2. Identify every update and its iterates

    Substitute the computed gradient into T_h. The update is the continuous linear endomorphism I−hH. Reuse Mathlib’s identity equating endomorphism powers with function iteration; the zero-th power is the identity.

    \[T_h=I-hH\quad\Longrightarrow\quad T_h^N(x)=(I-hH)^Nx.\]
    Corresponding Lean step

    FunLike.coe_pow_eq_iterate; congrFun.

    Lean statement · quadratic_gradient_iterate

    Actual quadratic and actual gradient iteration; symmetric continuous linear H on complete real Hilbert E, real h, natural N.

    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 quadratic_gradient_iterate (H : E →L[ℝ] E) (hH : H.IsSymmetric)
        (h : ℝ) (N : ℕ) (x : E) :
        let f := fun z : E => inner ℝ z (H z) / 2
        (fun z => z - h • gradient f z)^[N] x = ((1 - h • H) ^ N) x

    Exact module and namespace context

    Lean proof · quadratic_gradient_iterate

    The product rule for the inner product gives half the sum of two linear terms. Symmetry moves H between arguments, and real inner-product symmetry identifies both terms. This is the continuous linear functional represented by Hx, so uniqueness of the Riesz gradient yields ∇f(x)=Hx. Substitute the computed gradient into T_h. The update is the continuous linear endomorphism I−hH. Reuse Mathlib’s identity equating endomorphism powers with function iteration; the zero-th power is the identity.

    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 quadratic_gradient_iterate (H : E →L[ℝ] E) (hH : H.IsSymmetric)
        (h : ℝ) (N : ℕ) (x : E) :
        let f := fun z : E => inner ℝ z (H z) / 2
        (fun z => z - h • gradient f z)^[N] x = ((1 - h • H) ^ N) x := by
      let f := fun z : E => inner ℝ z (H z) / 2
      have hg (z : E) : gradient f z = H z := by
        have hraw := ((hasFDerivAt_id z).inner ℝ H.hasFDerivAt).const_mul (1 / 2 : ℝ)
        have hlin : (1 / 2 : ℝ) •
            ((fderivInnerCLM ℝ (z, H z)).comp ((ContinuousLinearMap.id ℝ E).prod H)) =
            toDual ℝ E (H z) := by
          ext v
          change (1 / 2 : ℝ) * (inner ℝ z (H v) + inner ℝ v (H z)) = inner ℝ (H z) v
          rw [← hH.apply_clm z v, (real_inner_comm v (H z)).symm]
          ring
        have hd : HasFDerivAt f (toDual ℝ E (H z)) z := by
          convert hraw using 1 <;> first | rfl | exact hlin.symm | (ext v; simp only [f, id_eq]; ring)
        exact (hasGradientAt_iff_hasFDerivAt.mpr hd).gradient
      change (fun z => z - h • gradient f z)^[N] x = _
      simp_rw [hg]
      exact congrFun (FunLike.coe_pow_eq_iterate (1 - h • H) N).symm x
    
    /-- A supplied eigenmode gives exact iterates, distances to zero and quadratic values.
    No existence of an eigenvector or stability of the chosen step is assumed. -/

    Exact module and namespace context

    Source assumptions versus formal assumptions

    SourceActual LeanDifference kindWhy it matters
    Positive-definite symmetric matrix on Euclidean space.Symmetric continuous linear operator on a complete real Hilbert space; no positivity premise.generalizationSymmetry suffices to differentiate the quadratic. Operator powers and scalar-mode algebra need no positivity. The source positive-definite finite-dimensional case specializes the theorem; arbitrary Hilbert operators need not have endpoint eigenvectors.
    Actual gradient descent on f(x)=⟨x,Ax⟩/2.Actual gradient of the literal centered quadratic; h∈ℝ constant and N∈ℕ.sameThe gradient is computed internally, not assumed. All real steps and N=0 are meaningful for the exact identity, although a convergence claim would require separate step conditions.
    Write explicit iterates and check sharpness of section estimates.Operator-power formula for all initial points.sameThis binding covers only the explicit-iterate obligation.
    Quadratic regularity and standard matrix gradient.Bounded operator and real inner product provide a continuously differentiable quadratic; symmetry gives the Riesz gradient.source-implicitDifferentiability follows from bounded bilinear calculus. There are no measure, integral or boundary hypotheses in these algebraic iteration identities.

    The source assumes a positive-definite symmetric matrix on Euclidean space. These exact identities extend to bounded symmetric operators on complete real Hilbert spaces, including signed or zero operators and the zero-dimensional space. Positivity and a stability condition on h are unnecessary for identities. The theorem does not assert convergence for arbitrary h or indefinite H. The quadratic is smooth by bounded bilinear calculus; symmetry, not a supplied gradient equality, gives its true gradient. This is a bounded Exercise3.3 proof component. Assessment of every Section3 bound, spectral decomposition/existence, complexity lower bounds, accelerated methods and companion-paper completion remain outside its conclusions. The formula covers every initial point, without choosing an eigenbasis. The source matrix-power notation is instantiated by a continuous linear map on Euclidean space.

    Encoder–denoiser: accepted · lean-weakened-conclusion

    Detected semantic differences

    • domains: The matrix/Euclidean source is extended to bounded symmetric operators on complete real inner-product spaces. — The inspected complete module quantifies over E and H : E →L[ℝ] E. The product-rule calculation and composition-power argument remain valid there; the lesson discloses this exact domain.
    • assumptions: Positive definiteness is omitted for the exact identities; arbitrary real steps are permitted. — The proof uses symmetry to derive the gradient and never uses positivity. No decay inequality or minimizer claim is stated. This is an extension of a selected component, not a correction to the source assumptions.
    • assumptions: The bounded-operator and complete-inner-product interfaces make the gradient regularity explicit. — On the source Euclidean domain matrix linear maps are bounded and the space is complete. The proof constructs the derivative represented by Hx. The assumptions do not restrict the source case.
    • conclusion: The full exercise sharpness assessment remains uncovered; accept only the named publication proof component. — The binding supports only actual-quadratic-iterates and explicitly leaves all-section-sharpness uncovered. Neither declaration compares all source estimates, constructs extremal modes, nor proves a sharp worst-case rate.

    A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.

    Scope and omitted-condition boundaries

    • The source assumes a positive-definite symmetric matrix on Euclidean space. These exact identities extend to bounded symmetric operators on complete real Hilbert spaces, including signed or zero operators and the zero-dimensional space.
    • Positivity and a stability condition on h are unnecessary for identities. The theorem does not assert convergence for arbitrary h or indefinite H. The quadratic is smooth by bounded bilinear calculus; symmetry, not a supplied gradient equality, gives its true gradient.
    • This is a bounded Exercise3.3 proof component. Assessment of every Section3 bound, spectral decomposition/existence, complexity lower bounds, accelerated methods and companion-paper completion remain outside its conclusions.
    • The formula covers every initial point, without choosing an eigenbasis. The source matrix-power notation is instantiated by a continuous linear map on Euclidean space.

    Source and reuse

    ASTIS parents called

      Mathlib API called (external library)

      • HasFDerivAt.inner
      • HasFDerivAt.const_mul
      • LinearMap.IsSymmetric.apply_clm
      • HasGradientAt.gradient
      • FunLike.coe_pow_eq_iterate

      Mathematical sources

      • Chewi Exercise3.3 — ASTIS-authored derivation of exact quadratic iterations; remaining sharpness analysis stays separate.
      • Diagonal endpoint and unstable-step tests — Actual diagonal spectrum 1,3 at balanced step, and scalar unit quadratic at unstable step3; no standalone theorem credit.

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

      ASTIS mathematical exposition

      Exact evolution of a quadratic eigenmode

      AutoSamplingTheory.TechnicalLemmas.Analysis.QuadraticGradientDescent.quadratic_eigenmode · theorem · Teaching coverage

      Statement

      The supplied eigenmode evolves by a scalar geometric factor, with the displayed exact norm and objective-value identities.

      \[Hx=\mu x,\quad z=T_h^N(x):\quad z=(1-h\mu)^Nx,\quad\|z\|=|1-h\mu|^N\|x\|,\quad f(z)=(1-h\mu)^{2N}f(x).\]

      All objects and hypotheses

      • E is a complete real inner-product space. H:E→E is a continuous linear operator symmetric in the sense ⟨Hx,y⟩=⟨x,Hy⟩ for every x,y.
      • Define the actual centered objective f(x)=⟨x,Hx⟩/2 and its actual gradient update T_h(x)=x−h∇f(x). h∈ℝ is constant across steps, N∈ℕ, and the initial point x∈E is arbitrary.
      • μ∈ℝ and Hx=μx is supplied for the initial point. x=0 is allowed as an algebraic mode relation; a genuine eigenvector requires x≠0.

      Mathematical proof

      1. Transport the supplied mode to the update operator

      The given relation Hx=μx implies (I−hH)x=(1−hμ)x. If x=0, every power identity is immediate. Otherwise this is a genuine nonzero eigenvector of I−hH, so Mathlib’s eigenvector power theorem applies. No eigenvector is constructed.

      \[(I-hH)x=(1-h\mu)x\quad\Longrightarrow\quad (I-hH)^Nx=(1-h\mu)^Nx.\]
      Corresponding Lean step

      AutoSamplingTheory.TechnicalLemmas.Analysis.QuadraticGradientDescent.quadratic_gradient_iterate; Module.End.mem_eigenspace_iff; Module.End.HasEigenvector.pow_apply; ContinuousLinearMap.toLinearMap_pow.

      2. Read the exact norm and value

      Take norms of the scalar multiple and use homogeneity. The quadratic is homogeneous of degree two, so its value is multiplied by the square of the trajectory scalar. The absolute value is essential when the update changes sign.

      \[\|c x\|=|c|\|x\|,\qquad f(cx)=c^2f(x),\qquad c=(1-h\mu)^N.\]
      Corresponding Lean step

      norm_smul; Real.norm_eq_abs; map_smul; inner_smul_left; inner_smul_right; pow_mul.

      Lean statement · quadratic_eigenmode

      Actual quadratic and actual gradient iteration; symmetric continuous linear H on complete real Hilbert E, real h, natural N.

      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 quadratic_eigenmode (H : E →L[ℝ] E) (hH : H.IsSymmetric)
          {μ : ℝ} {x : E} (hx : H x = μ • x) (h : ℝ) (N : ℕ) :
          let f := fun z : E => inner ℝ z (H z) / 2
          let z := (fun y => y - h • gradient f y)^[N] x
          z = (1 - h * μ) ^ N • x ∧
            ‖z‖ = |1 - h * μ| ^ N * ‖x‖ ∧
            f z = (1 - h * μ) ^ (2 * N) * f x

      Exact module and namespace context

      Lean proof · quadratic_eigenmode

      The given relation Hx=μx implies (I−hH)x=(1−hμ)x. If x=0, every power identity is immediate. Otherwise this is a genuine nonzero eigenvector of I−hH, so Mathlib’s eigenvector power theorem applies. No eigenvector is constructed. Take norms of the scalar multiple and use homogeneity. The quadratic is homogeneous of degree two, so its value is multiplied by the square of the trajectory scalar. The absolute value is essential when the update changes sign.

      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 quadratic_eigenmode (H : E →L[ℝ] E) (hH : H.IsSymmetric)
          {μ : ℝ} {x : E} (hx : H x = μ • x) (h : ℝ) (N : ℕ) :
          let f := fun z : E => inner ℝ z (H z) / 2
          let z := (fun y => y - h • gradient f y)^[N] x
          z = (1 - h * μ) ^ N • x ∧
            ‖z‖ = |1 - h * μ| ^ N * ‖x‖ ∧
            f z = (1 - h * μ) ^ (2 * N) * f x := by
        let f := fun z : E => inner ℝ z (H z) / 2
        let A : E →L[ℝ] E := 1 - h • H
        have hAx : A x = (1 - h * μ) • x := by
          simp only [A, sub_apply, one_apply_eq_self,
            smul_apply, hx, smul_smul, sub_smul, one_smul]
        have hp : (A ^ N) x = (1 - h * μ) ^ N • x := by
          by_cases hz : x = 0
          · simp [hz]
          · have he : Module.End.HasEigenvector A.toLinearMap (1 - h * μ) x :=
              ⟨Module.End.mem_eigenspace_iff.mpr hAx, hz⟩
            have ht := congrArg (fun K : E →ₗ[ℝ] E => K x) (ContinuousLinearMap.toLinearMap_pow A N)
            convert ht.trans (he.pow_apply N) using 1; rfl
        have hi := (quadratic_gradient_iterate H hH h N x).trans hp
        change _ = _ ∧ _ = _ ∧ f _ = _ * f x
        rw [hi]
        refine ⟨rfl, ?_, ?_⟩
        · simp [norm_smul, Real.norm_eq_abs]
        · simp only [f, map_smul, inner_smul_left, inner_smul_right, RCLike.conj_to_real]
          rw [Nat.mul_comm 2 N, pow_mul]
          ring
      
      end AutoSamplingTheory.TechnicalLemmas.Analysis.QuadraticGradientDescent

      Exact module and namespace context

      Source assumptions versus formal assumptions

      SourceActual LeanDifference kindWhy it matters
      Positive-definite symmetric matrix on Euclidean space.Symmetric continuous linear operator on a complete real Hilbert space; no positivity premise.generalizationSymmetry suffices to differentiate the quadratic. Operator powers and scalar-mode algebra need no positivity. The source positive-definite finite-dimensional case specializes the theorem; arbitrary Hilbert operators need not have endpoint eigenvectors.
      Actual gradient descent on f(x)=⟨x,Ax⟩/2.Actual gradient of the literal centered quadratic; h∈ℝ constant and N∈ℕ.sameThe gradient is computed internally, not assumed. All real steps and N=0 are meaningful for the exact identity, although a convergence claim would require separate step conditions.
      Write explicit iterates and check sharpness of section estimates.Given Hx=μx, exact trajectory/norm/value; zero-vector relation allowed.source-implicitModewise calculations are the standard proof component for sharpness. Eigenmode existence and the full comparison with every section bound remain uncovered; a nonzero witness is necessary to infer a sharp positive factor.
      Quadratic regularity and standard matrix gradient.Bounded operator and real inner product provide a continuously differentiable quadratic; symmetry gives the Riesz gradient.source-implicitDifferentiability follows from bounded bilinear calculus. There are no measure, integral or boundary hypotheses in these algebraic iteration identities.

      The source assumes a positive-definite symmetric matrix on Euclidean space. These exact identities extend to bounded symmetric operators on complete real Hilbert spaces, including signed or zero operators and the zero-dimensional space. Positivity and a stability condition on h are unnecessary for identities. The theorem does not assert convergence for arbitrary h or indefinite H. The quadratic is smooth by bounded bilinear calculus; symmetry, not a supplied gradient equality, gives its true gradient. This is a bounded Exercise3.3 proof component. Assessment of every Section3 bound, spectral decomposition/existence, complexity lower bounds, accelerated methods and companion-paper completion remain outside its conclusions. To use this as a sharpness witness, supply a nonzero endpoint eigenvector and the appropriate positive curvature bounds. At h=2/(α+β), modes μ=α or μ=β give |1−hμ|=(β−α)/(α+β). The concrete diagonal-matrix tests realize both endpoints for α=1,β=3; this is not a general spectral existence theorem. N=0 gives the initial point and value even when 1−hμ=0; the zero-th power is one. A zero mode vector yields zero throughout. For arbitrary Hilbert operators, neither endpoint eigenvectors nor a diagonalizing eigenbasis are asserted.

      Encoder–denoiser: accepted · lean-weakened-conclusion

      Detected semantic differences

      • domains: The matrix/Euclidean source is extended to bounded symmetric operators on complete real inner-product spaces. — The inspected complete module quantifies over E and H : E →L[ℝ] E. The product-rule calculation and composition-power argument remain valid there; the lesson discloses this exact domain.
      • assumptions: Positive definiteness is omitted for the exact identities; arbitrary real steps are permitted. — The proof uses symmetry to derive the gradient and never uses positivity. No decay inequality or minimizer claim is stated. This is an extension of a selected component, not a correction to the source assumptions.
      • assumptions: The bounded-operator and complete-inner-product interfaces make the gradient regularity explicit. — On the source Euclidean domain matrix linear maps are bounded and the space is complete. The proof constructs the derivative represented by Hx. The assumptions do not restrict the source case.
      • conclusion: The full exercise sharpness assessment remains uncovered; accept only the named publication proof component. — The binding supports only modewise-exact-rates and explicitly leaves all-section-sharpness uncovered. Neither declaration compares all source estimates, constructs extremal modes, nor proves a sharp worst-case rate.
      • quantifiers: This selected modewise component assumes a supplied mode relation; it does not solve the spectral decomposition or endpoint-attainment obligations. — The hypothesis Hx=mu*x appears explicitly in Lean and the lesson. The proof splits x=0 before invoking HasEigenvector.pow_apply. The zero case and N=0 are both correctly included.

      A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.

      Scope and omitted-condition boundaries

      • The source assumes a positive-definite symmetric matrix on Euclidean space. These exact identities extend to bounded symmetric operators on complete real Hilbert spaces, including signed or zero operators and the zero-dimensional space.
      • Positivity and a stability condition on h are unnecessary for identities. The theorem does not assert convergence for arbitrary h or indefinite H. The quadratic is smooth by bounded bilinear calculus; symmetry, not a supplied gradient equality, gives its true gradient.
      • This is a bounded Exercise3.3 proof component. Assessment of every Section3 bound, spectral decomposition/existence, complexity lower bounds, accelerated methods and companion-paper completion remain outside its conclusions.
      • To use this as a sharpness witness, supply a nonzero endpoint eigenvector and the appropriate positive curvature bounds. At h=2/(α+β), modes μ=α or μ=β give |1−hμ|=(β−α)/(α+β). The concrete diagonal-matrix tests realize both endpoints for α=1,β=3; this is not a general spectral existence theorem.
      • N=0 gives the initial point and value even when 1−hμ=0; the zero-th power is one. A zero mode vector yields zero throughout. For arbitrary Hilbert operators, neither endpoint eigenvectors nor a diagonalizing eigenbasis are asserted.

      Source and reuse

      ASTIS parents called

      Mathlib API called (external library)

      • Module.End.mem_eigenspace_iff
      • Module.End.HasEigenvector.pow_apply
      • ContinuousLinearMap.toLinearMap_pow
      • norm_smul
      • inner_smul_left
      • inner_smul_right
      • pow_mul

      Mathematical sources

      • Chewi Exercise3.3 — ASTIS-authored derivation of exact quadratic iterations; remaining sharpness analysis stays separate.
      • Diagonal endpoint and unstable-step tests — Actual diagonal spectrum 1,3 at balanced step, and scalar unit quadratic at unstable step3; no standalone theorem credit.

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

      Which proof edges are actually covered?

      • Local proof component; source adapter/review separate Derive the actual gradient and express every iterate as an operator power
      • Local proof component; source adapter/review separate Compute the exact trajectory, norm and objective value on a supplied eigenmode
      • TODO — not closed by these contributions Assess sharpness of all Section3 estimates, with their exact source hypotheses (not covered)

      Exercise3.3 · fixed-step distance sharpness

      Sinho Chewi, Lectures on Optimization. ASTIS-authored selected-component restatement; no endorsement implied.

      arXiv:2605.07006v1 · Exercise3.3, selected sharpness check for Exercise3.2; Definition3.2 convention · faithful paraphrase

      Complete source statement (ASTIS restatement)

      The quadratic exercise asks the reader to test Section3 estimates using positive-definite quadratics. This item isolates the sharpness of the uniform constant-step distance contraction from Exercise3.2: its balanced step has factor (beta−alpha)/(alpha+beta) over the class with curvature bounded below by alpha and above by beta. The exact quadratic witness is an ASTIS derivation, not a printed source theorem or an assertion that every Section3 estimate is sharp.

      • The selected source regime is twice continuously differentiable Euclidean objectives with 0<alpha<=beta; quadratic witnesses have positive-definite matrices.
      • Sharpness refers to a uniform bound over the function class. The source intrinsic condition-number description must not be assigned to a witness with non-tight class bounds.

      Uniform factor to be tested

      \[h_\star=\frac2{\alpha+\beta},\qquad q=\frac{\beta-\alpha}{\alpha+\beta},\qquad\|T_{h_\star}(y)-T_{h_\star}(x)\|\le q\|y-x\|.\]

      Read the formalized proofs

      Each statement and proof below has its own closed Lean disclosure. ASTIS parents, Mathlib calls and external mathematical sources are distinguished in each proof.

      ASTIS mathematical exposition

      Quadratics attain the constant-step worst-case distance bound

      AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentSharpness.exists_quadratic_worst_case · theorem · Teaching coverage

      Statement

      For every 0<alpha<=beta and real fixed step h, there is one positive scalar curvature mu in {alpha,beta} whose actual quadratic belongs to the alpha-strongly convex, beta-smooth class and realizes the following bounds for every natural N.

      \[f(x)=\tfrac\mu2x^2,\quad T_t(x)=x-t\nabla f(x),\quad \forall N\in\mathbb N:\quad \|T_h^N(1)\|=M_h^N\ge q^N,\qquad \|T_{h_\star}^N(1)\|=q^N.\]

      All objects and hypotheses

      • Alpha,beta,h are real, 0<alpha<=beta. Define M_h=max{|1−h alpha|,|1−h beta|}, q=(beta−alpha)/(alpha+beta) and hstar=2/(alpha+beta). The denominator is positive.
      • The conclusion constructs mu∈{alpha,beta}, mu>0, and f:R→R, f(x)=mu x²/2. It certifies ContDiff R2 f, StrongConvexOn univ alpha f, the global beta quadratic upper model using the actual gradient, and IsMinOn f univ0.
      • T_t is the actual gradient update with real constant step t; T_t^0 is the identity. The initial point is1 and the certified minimizer is0. One mu works for all N, including zero.

      Mathematical proof

      1. Select an endpoint after fixing the step

      Let M_h be the larger of the two endpoint magnitudes. Choose mu=alpha or beta attaining this maximum. Then alpha<=mu<=beta and mu>0. This choice does not depend on N.

      \[M_h=\max\{|1-h\alpha|,|1-h\beta|\},\qquad \mu\in\{\alpha,\beta\},\quad |1-h\mu|=M_h.\]
      Corresponding Lean step

      Order comparison and max_eq_left/max_eq_right.

      2. Verify the witness belongs to the function class

      Set f(x)=mu x²/2. Differentiate to get the actual gradient mu x. Subtracting mu‖x‖²/2 leaves the zero convex function; lowering the strong-convexity modulus gives alpha. The exact quadratic remainder is mu(y−x)²/2, which is bounded above by beta(y−x)²/2. Positivity makes0 a global minimizer.

      \[\nabla f(x)=\mu x,\qquad f(y)-f(x)-\nabla f(x)(y-x)=\tfrac\mu2(y-x)^2\le\tfrac\beta2(y-x)^2,\qquad f(0)=0\le f(x).\]
      Corresponding Lean step

      HasDerivAt.hasGradientAt; strongConvexOn_iff_convex; StrongConvexOn.mono; quadratic remainder algebra.

      3. Reuse the exact quadratic trajectory and minimax envelope

      Apply the compiled eigenmode identity to H=mu I and x0=1. Its norm is |1−hmu|^N=M_h^N. The compiled optimal-step theorem applied to this certified objective gives q<=M_h. Since q>=0, raising to N preserves the inequality.

      \[\|T_h^N(1)\|=M_h^N\ge q^N,\qquad q=\frac{\beta-\alpha}{\alpha+\beta}.\]
      Corresponding Lean step

      QuadraticGradientDescent.quadratic_eigenmode; GradientDescentOptimalStep.optimal_gradient_step; pow_le_pow_left₀.

      4. Attain the balanced factor on the same witness

      At hstar=2/(alpha+beta), the two endpoint update scalars are q and−q. Either selected mu therefore gives absolute factor q, and the same exact trajectory yields q^N for every N. Together with the previously compiled uniform one-step upper bound, this witnesses its class-level sharpness.

      \[h_\star=\frac2{\alpha+\beta},\qquad1-h_\star\alpha=q,\quad1-h_\star\beta=-q,\qquad\|T_{h_\star}^N(1)\|=q^N.\]
      Corresponding Lean step

      Endpoint field arithmetic, abs_of_nonneg, abs_neg, and the local specialization of quadratic_eigenmode.

      Lean statement · exists_quadratic_worst_case

      Positive class curvature bounds; every fixed real step admits one actual positive scalar quadratic, all class certificates, and exact/lower distance identities for all natural iterations.

      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 exists_quadratic_worst_case {α β : ℝ} (hα : 0 < α) (hαβ : α ≤ β) (h : ℝ) :
          ∃ μ : ℝ, (μ = α ∨ μ = β) ∧ 0 < μ ∧
            let f : ℝ → ℝ := fun x => μ * x ^ 2 / 2
            ContDiff ℝ 2 f ∧ StrongConvexOn univ α f ∧
            (∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2) ∧
            IsMinOn f univ 0 ∧
            ∀ N : ℕ,
              ‖(fun x => x - h * gradient f x)^[N] 1‖ = (max |1 - h * α| |1 - h * β|) ^ N ∧
              ((β - α) / (α + β)) ^ N ≤ ‖(fun x => x - h * gradient f x)^[N] 1‖ ∧
              ‖(fun x => x - (2 / (α + β)) * gradient f x)^[N] 1‖ =
                ((β - α) / (α + β)) ^ N

      Exact module and namespace context

      Lean proof · exists_quadratic_worst_case

      Let M_h be the larger of the two endpoint magnitudes. Choose mu=alpha or beta attaining this maximum. Then alpha<=mu<=beta and mu>0. This choice does not depend on N. Set f(x)=mu x²/2. Differentiate to get the actual gradient mu x. Subtracting mu‖x‖²/2 leaves the zero convex function; lowering the strong-convexity modulus gives alpha. The exact quadratic remainder is mu(y−x)²/2, which is bounded above by beta(y−x)²/2. Positivity makes0 a global minimizer. Apply the compiled eigenmode identity to H=mu I and x0=1. Its norm is |1−hmu|^N=M_h^N. The compiled optimal-step theorem applied to this certified objective gives q<=M_h. Since q>=0, raising to N preserves the inequality. At hstar=2/(alpha+beta), the two endpoint update scalars are q and−q. Either selected mu therefore gives absolute factor q, and the same exact trajectory yields q^N for every N. Together with the previously compiled uniform one-step upper bound, this witnesses its class-level sharpness.

      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 exists_quadratic_worst_case {α β : ℝ} (hα : 0 < α) (hαβ : α ≤ β) (h : ℝ) :
          ∃ μ : ℝ, (μ = α ∨ μ = β) ∧ 0 < μ ∧
            let f : ℝ → ℝ := fun x => μ * x ^ 2 / 2
            ContDiff ℝ 2 f ∧ StrongConvexOn univ α f ∧
            (∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2) ∧
            IsMinOn f univ 0 ∧
            ∀ N : ℕ,
              ‖(fun x => x - h * gradient f x)^[N] 1‖ = (max |1 - h * α| |1 - h * β|) ^ N ∧
              ((β - α) / (α + β)) ^ N ≤ ‖(fun x => x - h * gradient f x)^[N] 1‖ ∧
              ‖(fun x => x - (2 / (α + β)) * gradient f x)^[N] 1‖ =
                ((β - α) / (α + β)) ^ N := by
        obtain ⟨μ, hm, he⟩ : ∃ μ : ℝ, (μ = α ∨ μ = β) ∧
            |1 - h * μ| = max |1 - h * α| |1 - h * β| := by
          by_cases hc : |1 - h * α| ≤ |1 - h * β|
          · exact ⟨β, Or.inr rfl, (max_eq_right hc).symm⟩
          · exact ⟨α, Or.inl rfl, (max_eq_left (le_of_not_ge hc)).symm⟩
        have ham : α ≤ μ := by rcases hm with rfl | rfl <;> order
        have hmb : μ ≤ β := by rcases hm with rfl | rfl <;> order
        have hmpos : 0 < μ := hα.trans_le ham
        let f : ℝ → ℝ := fun x => μ * x ^ 2 / 2
        have hf : ContDiff ℝ 2 f := (contDiff_const.mul (contDiff_id.pow 2)).div_const 2
        have hg (x : ℝ) : gradient f x = μ * x := by
          have hd : HasDerivAt f (μ * x) x := by
            convert (((hasDerivAt_id x).pow 2).const_mul μ).div_const (2 : ℝ) using 1 <;> first | rfl | (simp only [id_eq]; ring)
          exact hd.hasGradientAt.gradient
        have hc : StrongConvexOn univ α f := by
          apply StrongConvexOn.mono ham
          rw [strongConvexOn_iff_convex]
          have hz : (fun x : ℝ => f x - μ / 2 * ‖x‖ ^ 2) = fun _ => 0 := by
            funext x; simp [f, Real.norm_eq_abs, sq_abs]; ring
          rw [hz]; exact convexOn_const _ convex_univ
        have hu : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2 := by
          intro x y
          rw [hg]; simp only [f, Real.inner_apply, Real.norm_eq_abs, sq_abs]
          nlinarith [mul_nonneg (sub_nonneg.mpr hmb) (sq_nonneg (y-x))]
        have hmin : IsMinOn f univ 0 := by
          intro x _
          change μ * (0 : ℝ) ^ 2 / 2 ≤ μ * x ^ 2 / 2
          simpa using div_nonneg (mul_nonneg hmpos.le (sq_nonneg x)) (by norm_num : (0 : ℝ) ≤ 2)
        have hn (t : ℝ) (N : ℕ) :
            ‖(fun x => x - t * gradient f x)^[N] 1‖ = |1 - t * μ| ^ N := by
          have hs : (μ • (1 : ℝ →L[ℝ] ℝ)).IsSymmetric := by
            intro x y; simp [mul_comm, mul_left_comm]
          have heig : (μ • (1 : ℝ →L[ℝ] ℝ)) 1 = μ • (1 : ℝ) := by simp
          have hr := (quadratic_eigenmode (μ • (1 : ℝ →L[ℝ] ℝ)) hs heig t N).2.1
          have heq : (fun z : ℝ => inner ℝ z ((μ • (1 : ℝ →L[ℝ] ℝ)) z) / 2) = f := by
            funext z; simp [f]; ring
          simpa only [heq, smul_eq_mul, norm_one, mul_one] using hr
        have hβ : 0 < β := hα.trans_le hαβ
        have hD : 0 < α + β := add_pos hα hβ
        have hq : 0 ≤ (β - α) / (α + β) := div_nonneg (sub_nonneg.mpr hαβ) hD.le
        have hlow := (optimal_gradient_step hf hc hα.le hβ hαβ hu 0 1).2 h
        have hbal : |1 - 2 / (α + β) * μ| = (β - α) / (α + β) := by
          rcases hm with hma | hmb
          · rw [hma]
            have ha : 1 - 2 / (α + β) * α = (β - α) / (α + β) := by field_simp; ring
            rw [ha, abs_of_nonneg hq]
          · rw [hmb]
            have hb : 1 - 2 / (α + β) * β = -((β - α) / (α + β)) := by field_simp; ring
            rw [hb, abs_neg, abs_of_nonneg hq]
        refine ⟨μ, hm, hmpos, hf, hc, hu, hmin, ?_⟩
        intro N
        rw [hn h N, hn (2 / (α + β)) N, he, hbal]
        exact ⟨rfl, pow_le_pow_left₀ hq hlow N, rfl⟩
      
      end AutoSamplingTheory.TechnicalLemmas.Analysis.GradientDescentSharpness

      Exact module and namespace context

      Source assumptions versus formal assumptions

      SourceActual LeanDifference kindWhy it matters
      Positive-definite quadratic in Euclidean space.One scalar positive quadratic with mu in {alpha,beta}, chosen after h and before N.sameA one-dimensional positive quadratic belongs to the source class and suffices for a uniform class-level lower witness; no general-dimensional spectral decomposition is needed.
      Alpha strong convexity and beta smoothness in the uniform rate.Actual StrongConvexOn and global quadratic upper-model certificates, with alpha<=mu<=beta.source-implicitThe parameters define bounds, not both tight constants of the scalar witness. Its intrinsic condition number is1; no claim that it equals beta/alpha.
      Fixed descent step and positive condition-number regime.0<alpha<=beta, any real h; same witness for all N including0.generalizationAllowing zero/negative fixed steps strengthens the obstruction without asserting their convergence. Positive alpha ensures positive definiteness, and equal bounds remain valid.
      Check how sharp Section3 results are.Selected constant-step distance sharpness component only.sameOther section comparisons, variable-step methods and general oracle complexity are left uncovered.

      This is class-level sharpness for constant-step distance contraction. Alpha and beta are valid curvature bounds; a scalar witness has tight constants mu,mu, so beta/alpha is not claimed to be its intrinsic condition number. A fixed two-dimensional quadratic with both exact endpoint eigenvalues is not constructed. The scalar witness is chosen after the step h but before N, and is valid for every N. This does not cover varying or adaptive step sequences, general first-order algorithms, acceleration, oracle complexity lower bounds, or all Section3 estimates. Positive alpha is retained to ensure the witness is positive definite. Equal bounds are included; q=0 then, and N=0 still has distance1 because 0^0=1. Negative and zero h are allowed for the obstruction; no convergence for those steps is claimed. The statement constructs a C2 quadratic and its global minimizer0, and uses actual gradients. No gradient identity, trajectory formula, smoothness model or minimizer certificate is supplied as a hypothesis. The starting point1 has distance1 from0.

      Encoder–denoiser: accepted · equivalent-after-elaboration

      Detected semantic differences

      • scopes: Accepted coverage is the explicitly selected constant-step distance component, not all Section 3 comparisons. — The pinned source paraphrase and publication obligation map both preserve the omitted comparisons; the lesson claims exactly the constructed witness.
      • constant_dependencies: Class curvature bounds are not both intrinsic tight constants of the scalar witness unless alpha=beta. — mu belongs to {alpha,beta}; the module and publication assumptions explicitly identify alpha,beta as class bounds and prohibit the intrinsic-condition-number interpretation.
      • quantifiers: The exact witness theorem makes the order of quantifiers and all-real fixed-step scope explicit. — The Lean statement is forall h, exists mu, forall N; the proof picks an endpoint independent of N and the same endpoint also attains the balanced factor.

      A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.

      Scope and omitted-condition boundaries

      • This is class-level sharpness for constant-step distance contraction. Alpha and beta are valid curvature bounds; a scalar witness has tight constants mu,mu, so beta/alpha is not claimed to be its intrinsic condition number. A fixed two-dimensional quadratic with both exact endpoint eigenvalues is not constructed.
      • The scalar witness is chosen after the step h but before N, and is valid for every N. This does not cover varying or adaptive step sequences, general first-order algorithms, acceleration, oracle complexity lower bounds, or all Section3 estimates.
      • Positive alpha is retained to ensure the witness is positive definite. Equal bounds are included; q=0 then, and N=0 still has distance1 because 0^0=1. Negative and zero h are allowed for the obstruction; no convergence for those steps is claimed.
      • The statement constructs a C2 quadratic and its global minimizer0, and uses actual gradients. No gradient identity, trajectory formula, smoothness model or minimizer certificate is supplied as a hypothesis. The starting point1 has distance1 from0.

      Source and reuse

      ASTIS parents called

      Mathlib API called (external library)

      • HasDerivAt.hasGradientAt
      • strongConvexOn_iff_convex
      • StrongConvexOn.mono
      • pow_le_pow_left₀

      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.

      Which proof edges are actually covered?

      • Local proof component; source adapter/review separate Construct an admissible quadratic attaining the endpoint envelope for every N and the balanced factor on the same witness
      • TODO — not closed by these contributions Other Section3 sharpness comparisons remain outside this component

      Exercise3.3 · convex function-value order sharpness

      Sinho Chewi, Lectures on Optimization. ASTIS-authored selected-component restatement; no endorsement implied.

      arXiv:2605.07006v1 · Exercise3.3 testing Theorem3.4 convex specialization and Table1 · faithful paraphrase

      Complete source statement (ASTIS restatement)

      Exercise3.3 asks the reader to examine Section3 bounds with positive-definite quadratic objectives. This item selects the convex function-value estimate from Theorem3.4: at step1/beta and initial distance R, the upper gap is beta R²/(2N) for positive N. An explicit quadratic family demonstrates its order sharpness at R=1. The exercise does not print the witness or a lower-bound constant.

      • Twice continuously differentiable Euclidean objectives are convex and beta-smooth, with beta>0, an attained minimum and prescribed step1/beta.
      • The source upper bound concerns N>0. A worst-case family may depend on the iteration horizon. Positive-definite quadratics are admitted within the convex class.

      Source upper bound whose order is tested

      \[f(x_N)-f_\star\le\frac{\beta R^2}{2N},\qquad N>0,\quad h=1/\beta.\]

      Read the formalized proofs

      Each statement and proof below has its own closed Lean disclosure. ASTIS parents, Mathlib calls and external mathematical sources are distinguished in each proof.

      ASTIS mathematical exposition

      Quadratics witness the convex function-value convergence order

      AutoSamplingTheory.TechnicalLemmas.Analysis.ConvexGradientGapSharpness.quadratic_gap_lower_bound · theorem · Teaching coverage

      Statement

      For every real beta>0 and natural horizon N, the explicit positive scalar quadratic below is C2, mu-strongly convex, admits the global beta quadratic upper model and is minimized at0. Its actual gradient-descent iterate from1 at step1/beta has the following exact gap and lower bound.

      \[\begin{gathered}\mu=\frac\beta{2(N+1)},\quad f(x)=\frac\mu2x^2,\quad T(x)=x-\beta^{-1}\nabla f(x),\quad x_N=T^N(1),\\ f(x_N)-f(0)=\frac\beta{4(N+1)}\left(1-\frac1{2(N+1)}\right)^{2N}\ge\frac\beta{16(N+1)}.\end{gathered}\]

      All objects and hypotheses

      • Beta is real and strictly positive; N is natural, including0. The function and positive curvature are chosen from this N; each horizon may use a different function.
      • The ambient space is R. The conclusion certifies ContDiff R2 f, StrongConvexOn univ mu f, the global beta upper model f(y)<=f(x)+<gradient f(x),y−x>+beta||y−x||²/2 and IsMinOn f univ0.
      • T uses the true gradient, with constant positive step1/beta. Iteration starts at1, at distance1 from the certified minimizer0. T^0 is the identity.

      Mathematical proof

      1. Choose curvature after the horizon

      For beta>0 and N natural set D=N+1 and mu=beta/(2D). Then D>=1 and0<mu<=beta. Reuse the compiled scalar-quadratic witness with both curvature endpoints equal to mu. Equality of the endpoints forces that witness to be exactly f(x)=mu x²/2. It supplies C2 regularity, mu strong convexity, minimizer0 and the genuine gradient trajectory.

      \[D=N+1,\qquad \mu=\frac\beta{2D}>0,\qquad f(x)=\frac\mu2x^2,\qquad x_0=1.\]
      Corresponding Lean step

      GradientDescentSharpness.exists_quadratic_worst_case at equal endpoints; order and positive division.

      2. Obtain the exact value along actual gradient iterates

      At the prescribed step1/beta the scalar contraction is q=1−1/(2D), which is nonnegative. The existing norm identity gives norm(x_N)=q^N. Since the objective is mu times the squared norm divided by2 and f(0)=0, this is also an exact objective-gap formula. Enlarging the quadratic upper model from mu to beta verifies the advertised smoothness class.

      \[q=1-\frac1{2D}\ge0,\quad x_N=T^N(1),\quad T(x)=x-\beta^{-1}\nabla f(x),\quad f(x_N)-f(0)=\frac\beta{4D}q^{2N}.\]
      Corresponding Lean step

      Existing actual norm identity; abs_mul_abs_self and scalar norm; nonnegative quadratic remainder when mu<=beta.

      3. Keep a fixed fraction of the initial distance

      Apply Bernoulli to q and exponent N. The resulting affine lower bound is (D+1)/(2D), at least1/2. Thus even after N steps the selected small curvature leaves at least half of the initial distance.

      \[q^N\ge1+N(q-1)=\frac{D+1}{2D}\ge\frac12.\]
      Corresponding Lean step

      Mathlib one_add_mul_sub_le_pow; positive denominator arithmetic.

      4. Convert distance retention into a gap lower bound

      Squaring the nonnegative half-distance bound gives q^(2N)>=1/4. Multiply by the positive beta/(4D) in the exact objective identity. With the source upper rate for N>0, the resulting family obstructs any uniformly faster order at this prescribed step.

      \[f(x_N)-f(0)=\frac\beta{4D}(q^N)^2\ge\frac\beta{16D}=\frac\beta{16(N+1)}.\]
      Corresponding Lean step

      pow_mul; square inequality and mul_le_mul_of_nonneg_left. The general upper bound is composed in the test, not assumed in this proof.

      Lean statement · quadratic_gap_lower_bound

      Positive beta and natural horizon determine one explicit scalar quadratic, all admissibility certificates, exact actual-iterate objective gap and beta/(16(N+1)) lower bound.

      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 quadratic_gap_lower_bound {β : ℝ} (hβ : 0 < β) (N : ℕ) :
          let μ := β / (2 * ((N : ℝ) + 1))
          let f : ℝ → ℝ := fun x => μ * x ^ 2 / 2
          0 < μ ∧ ContDiff ℝ 2 f ∧ StrongConvexOn univ μ f ∧
            (∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2) ∧
            IsMinOn f univ 0 ∧
            let z := (fun x => x - (1 / β) * gradient f x)^[N] 1
            f z - f 0 = β / (4 * ((N : ℝ) + 1)) *
              (1 - 1 / (2 * ((N : ℝ) + 1))) ^ (2 * N) ∧
            β / (16 * ((N : ℝ) + 1)) ≤ f z - f 0

      Exact module and namespace context

      Lean proof · quadratic_gap_lower_bound

      For beta>0 and N natural set D=N+1 and mu=beta/(2D). Then D>=1 and0<mu<=beta. Reuse the compiled scalar-quadratic witness with both curvature endpoints equal to mu. Equality of the endpoints forces that witness to be exactly f(x)=mu x²/2. It supplies C2 regularity, mu strong convexity, minimizer0 and the genuine gradient trajectory. At the prescribed step1/beta the scalar contraction is q=1−1/(2D), which is nonnegative. The existing norm identity gives norm(x_N)=q^N. Since the objective is mu times the squared norm divided by2 and f(0)=0, this is also an exact objective-gap formula. Enlarging the quadratic upper model from mu to beta verifies the advertised smoothness class. Apply Bernoulli to q and exponent N. The resulting affine lower bound is (D+1)/(2D), at least1/2. Thus even after N steps the selected small curvature leaves at least half of the initial distance. Squaring the nonnegative half-distance bound gives q^(2N)>=1/4. Multiply by the positive beta/(4D) in the exact objective identity. With the source upper rate for N>0, the resulting family obstructs any uniformly faster order at this prescribed step.

      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 quadratic_gap_lower_bound {β : ℝ} (hβ : 0 < β) (N : ℕ) :
          let μ := β / (2 * ((N : ℝ) + 1))
          let f : ℝ → ℝ := fun x => μ * x ^ 2 / 2
          0 < μ ∧ ContDiff ℝ 2 f ∧ StrongConvexOn univ μ f ∧
            (∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2) ∧
            IsMinOn f univ 0 ∧
            let z := (fun x => x - (1 / β) * gradient f x)^[N] 1
            f z - f 0 = β / (4 * ((N : ℝ) + 1)) *
              (1 - 1 / (2 * ((N : ℝ) + 1))) ^ (2 * N) ∧
            β / (16 * ((N : ℝ) + 1)) ≤ f z - f 0 := by
        let D : ℝ := (N : ℝ) + 1
        have hD : 0 < D := by dsimp [D]; positivity
        have hD1 : 1 ≤ D := by dsimp [D]; exact le_add_of_nonneg_left (Nat.cast_nonneg N)
        let μ := β / (2 * D)
        have hμ : 0 < μ := div_pos hβ (by positivity)
        have hμβ : μ ≤ β := by
          apply (div_le_iff₀ (by positivity : 0 < 2 * D)).mpr
          nlinarith
        obtain ⟨ν, hν, _, hf, hc, hu, hm, hn⟩ :=
          exists_quadratic_worst_case hμ (le_refl μ) (1 / β)
        have hv : ν = μ := hν.elim id id
        subst ν
        let f : ℝ → ℝ := fun x => μ * x ^ 2 / 2
        let q : ℝ := 1 - 1 / (2 * D)
        have hq : 0 ≤ q := by
          have : 1 / (2 * D) ≤ 1 := (div_le_one (by positivity)).mpr (by linarith)
          dsimp [q]; linarith
        have he : 1 - 1 / β * μ = q := by
          dsimp [μ, q]; field_simp
        have hn' : ‖(fun x => x - (1 / β) * gradient f x)^[N] 1‖ = q ^ N := by
          simpa only [max_self, he, abs_of_nonneg hq] using (hn N).1
        have hpow : 1 / 2 ≤ q ^ N := by
          have hb := one_add_mul_sub_le_pow (by linarith : -1 ≤ q) N
          have heq : 1 + (N : ℝ) * (q - 1) = (D + 1) / (2 * D) := by
            dsimp [q, D]; field_simp; ring
          rw [heq] at hb
          have : (1 : ℝ) / 2 ≤ (D + 1) / (2 * D) := by
            apply (le_div_iff₀ (by positivity)).mpr
            linarith
          exact this.trans hb
        have huβ : ∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2 := by
          intro x y
          have hh : f y ≤ f x + inner ℝ (gradient f x) (y - x) + μ / 2 * ‖y - x‖ ^ 2 := hu x y
          nlinarith [mul_nonneg (sub_nonneg.mpr hμβ) (sq_nonneg ‖y - x‖)]
        change 0 < μ ∧ _ ∧ _ ∧ _ ∧ _ ∧ _
        refine ⟨hμ, hf, hc, huβ, hm, ?_⟩
        dsimp only
        have hvalue : f ((fun x => x - (1 / β) * gradient f x)^[N] 1) - f 0 =
            β / (4 * D) * (q ^ N) ^ 2 := by
          have hs : ((fun x => x - (1 / β) * gradient f x)^[N] 1) ^ 2 = (q ^ N) ^ 2 := by
            simpa only [Real.norm_eq_abs, abs_mul_abs_self, sq] using congrArg (fun r : ℝ => r * r) hn'
          change μ * _ ^ 2 / 2 - μ * 0 ^ 2 / 2 = _
          rw [hs]
          dsimp [μ]; field_simp; ring
        rw [hvalue]
        change β / (4 * D) * (q ^ N) ^ 2 = β / (4 * D) * q ^ (2 * N) ∧
          β / (16 * D) ≤ β / (4 * D) * (q ^ N) ^ 2
        constructor
        · rw [Nat.mul_comm 2 N, pow_mul]
        · have hs : (1 : ℝ) / 4 ≤ (q ^ N) ^ 2 := by nlinarith
          have := mul_le_mul_of_nonneg_left hs (by positivity : 0 ≤ β / (4 * D))
          convert this using 1 <;> first | rfl | (field_simp; ring)
      
      end AutoSamplingTheory.TechnicalLemmas.Analysis.ConvexGradientGapSharpness

      Exact module and namespace context

      Source assumptions versus formal assumptions

      SourceActual LeanDifference kindWhy it matters
      Positive-definite Euclidean quadratic; convex beta-smooth class.Scalar f_N(x)=mu_N x²/2, mu_N=beta/[2(N+1)]>0, all regularity/model/minimizer certificates proved.sameOne-dimensional positive quadratics are valid source witnesses; positive strong convexity entails convexity.
      Uniform beta-smooth function class and step1/beta.Mu_N<=beta; beta is a valid upper model parameter, not the tight scalar curvature.source-implicitThe prescribed class step need not be the step optimized for the individual witness. The intrinsic tight constants both equal mu_N.
      Exercise asks how sharp the source estimates are, without printing a solution.For each N choose f_N and prove beta/[16(N+1)] lower bound, initial distance1.sameThis is an authored order-sharpness proof component. Curvature may shrink with the horizon; no single fixed-objective reciprocal asymptotic or optimal constant is claimed.
      Source convex normalized upper rate has N>0.The constructed lower bound and exact gap also hold at N=0.generalizationAll N+1 denominators stay positive. At0 the initial gap is beta/4; no singular source upper rate is interpreted.

      The horizon N is fixed before choosing the objective f_N. Its positive curvature mu_N shrinks with N. This is a family witnessing a worst-case bound over the convex beta-smooth class; it is not a single fixed strongly convex objective with an asymptotic reciprocal tail. Beta is a valid upper curvature bound, not the tight smoothness constant of this scalar witness. The step is prescribed as1/beta, not tuned to its intrinsic curvature. Strong convexity with mu_N>0 implies ordinary convexity. The constant1/16 is an ASTIS-derived convenient lower constant, not an optimal constant or a number printed in the exercise. For N>=1, beta/[16(N+1)]>=beta/(32N); comparison with the source upper bound beta/(2N) shows order sharpness at initial distance1. The theorem states the finite N+1 bound. N=0 is included only as a nonsingular lower-bound identity: the actual initial gap is beta/4. It does not interpret the singular source1/N upper bound at zero. No variable/adaptive-step result, general first-order oracle lower bound, full Exercise3.3 comparison list, acceleration claim or companion-paper completion follows. The function, actual gradients, smoothness model and minimizer are certified, not supplied as hypotheses.

      Encoder–denoiser: accepted · equivalent-after-elaboration

      Detected semantic differences

      • objects: The formalization supplies a scalar positive-definite quadratic solution that the exercise does not print. — mu=beta/[2(N+1)]>0 identifies its positive scalar Hessian; the source-facing statement and lesson explicitly attribute the construction to ASTIS.
      • constant_dependencies: The coefficient 1/16 is a proved witness bound, not a source quotation or claim of exact optimality. — Bernoulli gives q^N>=1/2, so beta/(4D)*(q^N)^2>=beta/(16D), D=N+1.
      • scopes: The lower-bound identity also covers N=0 while the selected source upper comparison uses N>0. — At N=0 the iterate is 1, mu=beta/2 and gap=beta/4; no denominator N is used in the theorem.

      A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.

      Scope and omitted-condition boundaries

      • The horizon N is fixed before choosing the objective f_N. Its positive curvature mu_N shrinks with N. This is a family witnessing a worst-case bound over the convex beta-smooth class; it is not a single fixed strongly convex objective with an asymptotic reciprocal tail.
      • Beta is a valid upper curvature bound, not the tight smoothness constant of this scalar witness. The step is prescribed as1/beta, not tuned to its intrinsic curvature. Strong convexity with mu_N>0 implies ordinary convexity.
      • The constant1/16 is an ASTIS-derived convenient lower constant, not an optimal constant or a number printed in the exercise. For N>=1, beta/[16(N+1)]>=beta/(32N); comparison with the source upper bound beta/(2N) shows order sharpness at initial distance1. The theorem states the finite N+1 bound.
      • N=0 is included only as a nonsingular lower-bound identity: the actual initial gap is beta/4. It does not interpret the singular source1/N upper bound at zero.
      • No variable/adaptive-step result, general first-order oracle lower bound, full Exercise3.3 comparison list, acceleration claim or companion-paper completion follows. The function, actual gradients, smoothness model and minimizer are certified, not supplied as hypotheses.

      Source and reuse

      ASTIS parents called

      Mathlib API called (external library)

      • one_add_mul_sub_le_pow
      • abs_mul_abs_self
      • pow_mul
      • mul_le_mul_of_nonneg_left

      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.

      Which proof edges are actually covered?

      • Local proof component; source adapter/review separate Construct admissible horizon-dependent quadratic with an actual-iterate gap lower bound of reciprocal order
      • TODO — not closed by these contributions Other Section3 sharpness comparisons and exact optimal constants remain outside this component