proofs
Provedbatch-sample-lawstochastic-attentionbatch-sizelaw

Compute-to-target (B + B_noise + B_noise·A/(bΣ²))(c₀ + b) ≥ (√((B+B_noise)c₀) + √(B_noise A/Σ²))² for every budget b > 0

For all B,Bn,A,S2,c0,b∈R\htmlData{mx=1}{B, \mathit{Bn}, A, S_{2}, c_{0}, b \in \htmlData{mx=0}{\mathbb{R}}}, if 0≤B0 \mathrel{\htmlData{mx=1}{\leq}} \htmlData{mx=0}{B}, 0≤Bn0 \mathrel{\htmlData{mx=1}{\leq}} \htmlData{mx=0}{\mathit{Bn}}, 0≤A0 \mathrel{\htmlData{mx=1}{\leq}} \htmlData{mx=0}{A}, 0<S20 \mathrel{\htmlData{mx=1}{<}} \htmlData{mx=0}{S_{2}}, 0<c00 \mathrel{\htmlData{mx=1}{<}} \htmlData{mx=0}{c_{0}} and 0<b0 \mathrel{\htmlData{mx=1}{<}} \htmlData{mx=0}{b}, then

((B+Bn)⋅c0+Bn⋅AS2)2≤(B+Bn+Bn⋅Ab⋅S2)⋅(c0+b)\begin{aligned} & \htmlData{mx=14}{\left(\htmlData{mx=13}{\htmlData{mx=6}{\sqrt{\htmlData{mx=5}{(\htmlData{mx=3}{\htmlData{mx=1}{B} + \htmlData{mx=2}{\mathit{Bn}}}) \cdot \htmlData{mx=4}{c_{0}}}}} + \htmlData{mx=12}{\sqrt{\htmlData{mx=11}{\frac{\htmlData{mx=9}{\htmlData{mx=7}{\mathit{Bn}} \cdot \htmlData{mx=8}{A}}}{\htmlData{mx=10}{S_{2}}}}}}}\right)^{2}} \\ & \quad \htmlData{mx=0}{\leq} \htmlData{mx=29}{\left(\htmlData{mx=25}{\htmlData{mx=17}{\htmlData{mx=15}{B} + \htmlData{mx=16}{\mathit{Bn}}} + \htmlData{mx=24}{\frac{\htmlData{mx=20}{\htmlData{mx=18}{\mathit{Bn}} \cdot \htmlData{mx=19}{A}}}{\htmlData{mx=23}{\htmlData{mx=21}{b} \cdot \htmlData{mx=22}{S_{2}}}}}}\right) \cdot (\htmlData{mx=28}{\htmlData{mx=26}{c_{0}} + \htmlData{mx=27}{b}})} \end{aligned}
What the notation means · or point at any symbol
RReal numbers
The real numbers: every point on the number line. (ℝ)
x ∈ TVariables
B, Bn, A, S2, c0, b range over real numbers: the statement must hold for every choice. ((B Bn A S2 c0 b : ℝ))
≤At most
0 is less than or equal to B. (0 ≤ B)
<Less than
0 is strictly smaller than S2. (0 < S2)
aᵇPower
√((B + Bn) · c0) + √(Bn · A/S2) raised to the power 2. ((Real.sqrt ((B + Bn) * c0) + Real.sqrt …)
√Square root
The non-negative number whose square is (B + Bn) · c0. (Real.sqrt ((B + Bn) * c0))
·Multiplication
B + Bn times c0. ((B + Bn) * c0)
+Addition
B plus Bn. (B + Bn)
a/bDivision
Bn · A divided by S2. In Lean, dividing by 0 gives 0. (Bn * A / S2)

AM–GM on the steps-to-target × cost-per-step product under the large-batch model S = S_min(1 + B_noise/B_eff); equality at b*²(B+B_noise) = B_noise A c₀/Σ². 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
37 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.

More proved statements