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.
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.
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⟩/β.
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.
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))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. -/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
- Sinho Chewi, Exercise3.1 (3.4)-(3.5) — ASTIS-authored explanation of the tangent-plane descent route and explicit zero-modulus extension.
- Pinned Optlib convex_to_lower / lower_to_lipschitz — External mathematical reuse provenance, Apache-2.0; not an imported compiled dependency.
- Reciprocal formula, zero modulus and nonexpansive gradient-step consumers — Compiled use of the actual declarations.
ASTIS prose is not a quotation or a source-equivalence certificate. Definitions and aliases are explained as constructions, not counted as new mathematical proofs.