Provedunbiased-gradientstrainingfirst-principles
Level-error propagation through a Lipschitz stage: E‖X₂ − f(x₁)‖² ≤ 2·E‖X₂ − f(X₁)‖² + 2·Lip²·E‖X₁ − x₁‖²
For all , , , , , , and , if , , and (given ), then
What the notation means · or point at any symbol
- Type
- Type: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
Type) - Fintype
- Fintype: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
Fintype) - f(x)Function application
- Fintype applied to Ω. Lean writes f x; papers write f(x). (
Fintype Ω) - NNatural numbers
- The natural numbers 0, 1, 2, …. In Lean they start at 0. (
ℕ) - x ∈ TVariables
- d1, d2 range over natural numbers: the statement must hold for every choice. (
(d1 d2 : ℕ)) - ⟹Implies
- If Ω, then ℝ. (Between types, A → B is the type of functions from A to B.) (
Ω → ℝ) - ∀For all
- The statement after the comma holds for every ω. (
∀ ω, 0 ≤ w ω) - RReal numbers
- The real numbers: every point on the number line. (
ℝ) - Fin
- Fin: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
Fin) - ≤At most
- 0 is less than or equal to w(ω). (
0 ≤ w ω) - ∑Summation
- Add up (f(x, i) − f(y, i))^2 for every i. (
∑ i, (f x i - f y i) ^ 2) - aᵇPower
- f(x, i) − f(y, i) raised to the power 2. (
(f x i - f y i) ^ 2) - -Subtraction
- f(x, i) minus f(y, i). On ℕ, Lean's subtraction stops at 0: 2 − 5 = 0. (
f x i - f y i) - ·Multiplication
- Lip^2 times ∑ i, (x(i) − y(i))^2. (
Lip ^ 2 * ∑ i, (x i - y i) ^ 2) - +Addition
- 2 · e2 plus 2 · Lip^2 · e1. (
2 * e2 + 2 * Lip ^ 2 * e1)
theorem ua-level-error-propagation {Ω : Type} [Fintype Ω] {d1 d2 : ℕ} (w : Ω → ℝ) (hw : ∀ ω, 0 ≤ w ω) (X1 : Ω → Fin d1 → ℝ) (x1 : Fin d1 → ℝ) (X2 : Ω → Fin d2 → ℝ) (f : (Fin d1 → ℝ) → (Fin d2 → ℝ)) (Lip e1 e2 : ℝ) (hLip : ∀ x y, ∑ i, (f x i - f y i) ^ 2 ≤ Lip ^ 2 * ∑ i, (x i - y i) ^ 2) (h1 : ∑ ω, w ω * ∑ i, (X1 ω i - x1 i) ^ 2 ≤ e1) (h2 : ∑ ω, w ω * ∑ i, (X2 ω i - f (X1 ω) i) ^ 2 ≤ e2) :
∑ ω, w ω * ∑ i, (X2 ω i - f x1 i) ^ 2 ≤ 2 * e2 + 2 * Lip ^ 2 * e1The induction step for the whole-network level bound needed by the Lipschitz MLMC theorem: a stage's error against the dense value is at most twice its own sampling error plus twice the Lipschitz-propagated error of its input. Iterating over D stages gives a level constant exponential in the depth-wise product of Lipschitz constants, which is the honest variance price of exactly unbiased training. First-principles reformulation, 2026-10-05.
How it was proved
- Proved
- 5 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
- 24 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.