Provedbatch-sample-lawstochastic-attentionbatch-sizelaw
The optimal budget b* = √(C/(B + B_noise)) strictly decreases with the batch size B
For all , 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
- C, Bn, B1, B2 range over real numbers: the statement must hold for every choice. (
(C Bn B1 B2 : ℝ)) - <Less than
- 0 is strictly smaller than C. (
0 < C) - √Square root
- The non-negative number whose square is C/(B2 + Bn). (
Real.sqrt (C / (B2 + Bn))) - +Addition
- B1 plus Bn. (
B1 + Bn) - a/bDivision
- C divided by B2 + Bn. In Lean, dividing by 0 gives 0. (
C / (B2 + Bn))
theorem bs-budget-decreases-with-batch (C Bn B1 B2 : ℝ) (hC : 0 < C) (hpos : 0 < B1 + Bn) (h12 : B1 < B2) :
Real.sqrt (C / (B2 + Bn)) < Real.sqrt (C / (B1 + Bn))The Batch–Sample Law: large-batch training tolerates noisier attention; quadrupling the batch (B ≫ B_noise) halves the optimal attention-sample budget. Part of 'Batch–Sample Law: the optimal attention-sample budget shrinks as the batch grows'.
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
- 12 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.