Provedsecond-order-bias-lawstochastic-attentiondepthlaw
Bias accumulation through depth: b_{ℓ+1} ≤ λ b_ℓ + c, b_0 = 0 ⇒ b_L ≤ c Σ_{k<L} λ^k
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
- lam, c range over real numbers: the statement must hold for every choice. (
(lam c : ℝ)) - ≤At most
- 0 is less than or equal to lam. (
0 ≤ lam) - f(x)Function application
- b applied to 0. Lean writes f x; papers write f(x). (
b 0) - =Equality
- b(0) and 0 are the same. (
b 0 = 0) - ∀For all
- The statement after the comma holds for every l. (
∀ l, b (l + 1) ≤ lam * b l + c) - RReal numbers
- The real numbers: every point on the number line. (
ℝ) - +Addition
- l plus 1. (
l + 1) - ∑Summation
- Add up lam^k for k = 0, 1, …, L − 1. (
∑ k ∈ Finset.range L, lam ^ k) - ·Multiplication
- lam times b(l). (
lam * b l) - aᵇPower
- lam raised to the power k. (
lam ^ k)
theorem sob-bias-accumulation (b : ℕ → ℝ) (lam c : ℝ) (hlam : 0 ≤ lam) (h0 : b 0 = 0) (hstep : ∀ l, b (l + 1) ≤ lam * b l + c) (L : ℕ) :
b L ≤ c * ∑ k ∈ Finset.range L, lam ^ kBias stays O(L·V) for λ ≈ 1 residual blocks; geometric blow-up only if blocks amplify (λ > 1). Part of 'Second-Order Bias Law: unbiased stochastic attention stays (almost) unbiased through smooth depth'.
How it was proved
- Proved
- 4 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
- 18 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.