Plain-English statement
- The actual Nth gradient-descent iterate has geometric, then exponential, distance control about a supplied global minimizer.
Read the mathematics first, then descend into Lean
You do not need to know Lean before opening this panel. The page keeps the paper-level theorem, rigorous proof obligations, exact Lean declaration, and proof dependencies as separate layers so a first-time reader can move down one layer at a time.
Proof architecture
Start with the tree when learning: prerequisites sit below the theorem and downstream results sit above it. Switch to the network when you want to understand where this declaration lives in the local formal library. Every mapped node is clickable.
Graph rule: only dependencies found by the ASTIS source scan are drawn. Missing tactic indirection is treated as an under-approximation; the site never invents an edge just to make a prettier graph.
How to read the exact Lean declaration
Read a Lean theorem left-to-right exactly as you would unpack a mathematical sentence: name → ambient types → automatically inferred structures → explicit hypotheses → conclusion → proof. Then read the proof top-to-bottom as transformations of the current goal.
- NameWhat reusable mathematical fact is being created?
- ParametersWhich symbols are arbitrary, and which structures are inferred by typeclass search?
- PropositionAfter the colon, translate the Lean expression back into a paper statement.
- Proof actionsAfter
by, ask what each tactic does to the mathematical goal—not only what syntax it uses.
Syntax used on this page
This glossary is filtered to syntax that actually occurs in the declaration above. Open a symbol only when you meet it, rather than memorizing Lean grammar in advance.
Source voice and ASTIS voice stay separate
When Samplinglib shows a short quotation from Chewi, it is labeled as a source excerpt and linked to the canonical book page. Intuition, expanded proof steps, hidden regularity assumptions, and Lean explanations are ASTIS-authored commentary. A quotation never substitutes for a formal proof, and an ASTIS explanation is never attributed to the textbook author.
Lean statement
theorem 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
Open AutoSamplingTheory/TechnicalLemmas/Analysis/GradientDescentContraction.lean:62published source at 0e31a3cda412
Proof architecture
Actual Nth gradient iterate around a global minimizer, with geometric and exponential distance control.
Lean proof walkthrough
- Read the quantified variables and typeclass brackets as part of the mathematical statement; inferred arguments are not missing assumptions.
- `intro` introduces quantified hypotheses into the local proof context.
- `have` creates a named intermediate mathematical fact.
- `rw` rewrites by an established identity.
- `simp` normalizes through registered definitional and theorem rewrites.
- `apply` reduces the goal to the hypotheses of a reusable theorem.
- `exact` closes the current goal with an already typed term.
- `simpa` closes the goal after a controlled simplification of a typed result.
Why the statement has this shape
The declaration is kept at the reusable level recorded by its Registry tags and direct consumers. Explicit measures, spaces, wrappers, and regularity hypotheses expose interfaces that paper notation often infers. A theorem card explains those interfaces but never widens the compiled statement.
Hidden assumptions and non-claims
- Totalized `fderiv` values must not be read as a differentiability theorem.