Provedunbiased-attentionrandomized-algorithmssoftmaxdebiasing
Composed easy side: level MSE ≤ K/2^l and V_l ≤ 2(MSE_{l+1}+MSE_l) give c_l V_l ≤ 6K at cost c_l = 2^{l+1}
For all , and , if , and , then
What the notation means · or point at any symbol
- RReal numbers
- The real numbers: every point on the number line. (
ℝ) - NNatural numbers
- The natural numbers 0, 1, 2, …. In Lean they start at 0. (
ℕ) - x ∈ TVariables
- M0, M1, V range over real numbers: the statement must hold for every choice. (
(M0 M1 V : ℝ)) - ≤At most
- M0 is less than or equal to K/2^l. (
M0 ≤ K / 2 ^ l) - ·Multiplication
- 2 times M1 + M0. (
2 * (M1 + M0)) - a/bDivision
- K divided by 2^l. In Lean, dividing by 0 gives 0. (
K / 2 ^ l) - aᵇPower
- 2 raised to the power l. (
2 ^ l) - +Addition
- l plus 1. (
l + 1)
theorem ua-level-cost-variance-product (K : ℝ) (l : ℕ) (M0 M1 V : ℝ) (h0 : M0 ≤ K / 2 ^ l) (h1 : M1 ≤ K / 2 ^ (l + 1)) (hV : V ≤ 2 * (M1 + M0)) :
2 ^ (l + 1) * V ≤ 6 * KFeeds the inverse-cost allocation lemma with A = 6K, K = 16F²(1+χ²): unbiased attention with cost × variance ≤ 6 L² K. Part of 'Unbiased randomized attention: cost x variance thresholds', round 9 (true derivative, whole-instance reduction, compositions).
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
- 20 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.