proofs
Provedsampleability-lawself-certifying-proposalimportance-samplingattention-compute-law

Certified sample budget: N ≥ C F²/ε² samples give importance-sampling variance C F²/N ≤ ε²

For all C,F,ε∈R\htmlData{mx=1}{C, F, \varepsilon \in \htmlData{mx=0}{\mathbb{R}}} and N∈N\htmlData{mx=1}{N \in \htmlData{mx=0}{\mathbb{N}}}, if 0≤C0 \mathrel{\htmlData{mx=1}{\leq}} \htmlData{mx=0}{C}, 0≤F0 \mathrel{\htmlData{mx=1}{\leq}} \htmlData{mx=0}{F}, 0<ε0 \mathrel{\htmlData{mx=1}{<}} \htmlData{mx=0}{\varepsilon}, C⋅F2ε2≤N\htmlData{mx=6}{\frac{\htmlData{mx=3}{\htmlData{mx=0}{C} \cdot \htmlData{mx=2}{\htmlData{mx=1}{F}^{2}}}}{\htmlData{mx=5}{\htmlData{mx=4}{\varepsilon}^{2}}}} \mathrel{\htmlData{mx=8}{\leq}} \htmlData{mx=7}{N} and 0<N0 \mathrel{\htmlData{mx=1}{<}} \htmlData{mx=0}{N}, then

C⋅F2N≤ε2\htmlData{mx=5}{\frac{\htmlData{mx=3}{\htmlData{mx=0}{C} \cdot \htmlData{mx=2}{\htmlData{mx=1}{F}^{2}}}}{\htmlData{mx=4}{N}}} \mathrel{\htmlData{mx=8}{\leq}} \htmlData{mx=7}{\htmlData{mx=6}{\varepsilon}^{2}}
What the notation means · or point at any symbol
RReal numbers
The real numbers: every point on the number line. (ℝ)
x ∈ TVariables
C, F, ε range over real numbers: the statement must hold for every choice. ((C F ε : ℝ))
NNatural numbers
The natural numbers 0, 1, 2, …. In Lean they start at 0. (ℕ)
≤At most
0 is less than or equal to C. (0 ≤ C)
<Less than
0 is strictly smaller than ε. (0 < ε)
·Multiplication
C times F^2. (C * F ^ 2)
a/bDivision
C · F^2 divided by ε^2. In Lean, dividing by 0 gives 0. (C * F ^ 2 / ε ^ 2)
aᵇPower
F raised to the power 2. (F ^ 2)

The certified cost factor C sets the sample count that guarantees the target variance; the budget is self-set from the certificate. Part of 'The Sampleability Law: a transformer can be trained to make its own attention cheap to sample, and the samples certify the saving' (self-certifying learned proposals inside the Attention Compute Law).

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
13 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.

More proved statements