Plain-English statement
- A horizon-dependent positive quadratic has an actual gradient-descent gap of order `β / (N + 1)`. The smoothness bound `β` need not be tight.
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 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
Open AutoSamplingTheory/TechnicalLemmas/Analysis/ConvexGradientGapSharpness.lean:20published source at 0e31a3cda412
Proof architecture
Horizon-dependent admissible quadratic gives exact actual GD gap and beta/(16(N+1)) lower bound at step1/beta.
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.
- `apply` reduces the goal to the hypotheses of a reusable theorem.
- `refine` instantiates a reusable theorem while leaving explicit subgoals.
- `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
- No additional hidden-contract keyword was inferred; the exact Lean hypotheses remain controlling.