Provedalphabaguettebaguette-zoptimizer
Adam's moments satisfy m² ≤ C²·v with C² = (1−β₁)²/((1−β₂)(1−β₁²/β₂))
For all , and , if , and , then
What the notation means · or point at any symbol
- NNatural numbers
- The natural numbers 0, 1, 2, …. In Lean they start at 0. (
ℕ) - ⟹Implies
- If ℕ, then ℝ. (Between types, A → B is the type of functions from A to B.) (
ℕ → ℝ) - x ∈ TVariables
- β₁, β₂ range over real numbers: the statement must hold for every choice. (
(β₁ β₂ : ℝ)) - <Less than
- 0 is strictly smaller than β₂. (
0 < β₂) - aᵇPower
- β₁ raised to the power 2. (
β₁ ^ 2) - ≤At most
- ((1 − β₁) · (∑ k, β₁^k · a(k)))^2 is less than or equal to (1 − β₁)^2/((1 − β₂) · (1 − β₁^2/β₂)) · ((1 − β₂) · (∑ k, …. (
((1 - β₁) * ∑ k ∈ Finset.range t, β₁ ^ …) - -Subtraction
- 1 minus β₁. On ℕ, Lean's subtraction stops at 0: 2 − 5 = 0. (
1 - β₁) - RReal numbers
- The real numbers: every point on the number line. (
ℝ) - ∑Summation
- Add up β₁^k · a(k) for k = 0, 1, …, t − 1. (
∑ k ∈ Finset.range t, β₁ ^ k * a k) - ·Multiplication
- β₁^k times a(k). (
β₁ ^ k * a k) - f(x)Function application
- a applied to k. Lean writes f x; papers write f(x). (
a k) - a/bDivision
- β₁^2 divided by β₂. In Lean, dividing by 0 gives 0. (
β₁ ^ 2 / β₂)
theorem bz-adam-moment-ratio (t : ℕ) (a : ℕ → ℝ) (β₁ β₂ : ℝ) (h2 : 0 < β₂) (h2' : β₂ < 1) (h12 : β₁ ^ 2 < β₂) :
((1 - β₁) * ∑ k ∈ Finset.range t, β₁ ^ k * a k) ^ 2 ≤ (1 - β₁) ^ 2 / ((1 - β₂) * (1 - β₁ ^ 2 / β₂)) * ((1 - β₂) * ∑ k ∈ Finset.range t, β₂ ^ k * a k ^ 2)For any gradient history and any window length, the first moment m = (1−β₁)Σβ₁ᵏaₖ and second moment v = (1−β₂)Σβ₂ᵏaₖ² satisfy m² ≤ C²v whenever β₁² < β₂ < 1. 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
- 54 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.