Provedvariance-share-lawtraining-energystochastic-attentionlaw
Variance-Share Law, attainment: at b*² σ² = A c₀ the energy equals (√(σ²c₀) + √A)²
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
- σ2, A, c0, b range over real numbers: the statement must hold for every choice. (
(σ2 A c0 b : ℝ)) - <Less than
- 0 is strictly smaller than σ2. (
0 < σ2) - ≤At most
- 0 is less than or equal to A. (
0 ≤ A) - aᵇPower
- b raised to the power 2. (
b ^ 2) - ·Multiplication
- b^2 times σ2. (
b ^ 2 * σ2) - =Equality
- b^2 · σ2 and A · c0 are the same. (
b ^ 2 * σ2 = A * c0) - +Addition
- σ2 plus A/b. (
σ2 + A / b) - a/bDivision
- A divided by b. In Lean, dividing by 0 gives 0. (
A / b) - √Square root
- The non-negative number whose square is σ2 · c0. (
Real.sqrt (σ2 * c0))
theorem vs-energy-optimal (σ2 A c0 b : ℝ) (hσ : 0 < σ2) (hA : 0 ≤ A) (hc : 0 < c0) (hb : 0 < b) (hopt : b ^ 2 * σ2 = A * c0) :
(σ2 + A / b) * (c0 + b) = (Real.sqrt (σ2 * c0) + Real.sqrt A) ^ 2The optimal sampling budget is b* = √(A c₀/σ²): it grows with the attention variance constant and the non-attention cost, and shrinks with the intrinsic noise. Part of 'Variance-Share Law: compute-optimal sampling budgets for stochastic attention in training'.
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
- 22 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.