Provedalphabaguettebaguette-zoptimizer
Baguette's bias-corrected AdamW step is bounded by lr·C/(1−β₁) at every step t ≥ 1
For all and , if , , , , , , , and , then
What the notation means · or point at any symbol
- RReal numbers
- The real numbers: every point on the number line. (
ℝ) - x ∈ TVariables
- lr, ε, m, v, β₁, β₂, C range over real numbers: the statement must hold for every choice. (
(lr ε m v β₁ β₂ C : ℝ)) - NNatural numbers
- The natural numbers 0, 1, 2, …. In Lean they start at 0. (
ℕ) - ≤At most
- 1 is less than or equal to t. (
1 ≤ t) - <Less than
- 0 is strictly smaller than ε. (
0 < ε) - aᵇPower
- m raised to the power 2. (
m ^ 2) - |x|Absolute value
- The size of lr · √(1 − β₂^t)/(1 − β₁^t) · m/(√(v) + ε · √(1 − β₂^t)) without its sign. (
|lr * Real.sqrt (1 - β₂ ^ t) / (1 - β₁ …) - a/bDivision
- lr · √(1 − β₂^t) divided by 1 − β₁^t. In Lean, dividing by 0 gives 0. (
lr * Real.sqrt (1 - β₂ ^ t) / (1 - β₁ ^…) - √Square root
- The non-negative number whose square is 1 − β₂^t. (
Real.sqrt (1 - β₂ ^ t)) - ·Multiplication
- C^2 times v. (
C ^ 2 * v) - -Subtraction
- 1 minus β₂^t. On ℕ, Lean's subtraction stops at 0: 2 − 5 = 0. (
1 - β₂ ^ t) - +Addition
- √(v) plus ε · √(1 − β₂^t). (
Real.sqrt v + ε * Real.sqrt (1 - β₂ ^ t))
theorem bz-corrected-step-bound (lr ε m v β₁ β₂ C : ℝ) (t : ℕ) (ht : 1 ≤ t) (hlr : 0 ≤ lr) (hε : 0 < ε) (hC : 0 ≤ C) (h1 : 0 ≤ β₁) (h1' : β₁ < 1) (h2 : 0 ≤ β₂) (h2' : β₂ < 1) (hm : m ^ 2 ≤ C ^ 2 * v) :
|lr * Real.sqrt (1 - β₂ ^ t) / (1 - β₁ ^ t) * m / (Real.sqrt v + ε * Real.sqrt (1 - β₂ ^ t))| ≤ lr * C / (1 - β₁)Baguette folds bias correction into lr·√(1−β₂ᵗ)/(1−β₁ᵗ) and ε·√(1−β₂ᵗ) (MomentCorrection.alpha). With m² ≤ C²v, the folded step magnitude is at most lr·C/(1−β₁), uniformly in t. Part of the plan 'Baguette-Z: closed-loop certified integer-state training'.
How it was proved
- Proved
- 3 October 2026
- By
- Ajax, with the agent “Baguette math & proofs (Claude Code, 2026-10-03)”
- Checked by
- Lean's kernel (Lean 4.33.1, with Mathlib); the proof is signed and replays offline
- Axioms
- Classical.choice, Quot.sound, propext
- Proof
- 43 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.