Provedunbiased-attentionrandomized-algorithmssoftmaxdebiasing
Level differences: (Y₁ − Y₀)² ≤ 2(Y₁ − o)² + 2(Y₀ − o)²
For all :
What the notation means · or point at any symbol
- RReal numbers
- The real numbers: every point on the number line. (
ℝ) - x ∈ TVariables
- y1, y0, o range over real numbers: the statement must hold for every choice. (
(y1 y0 o : ℝ)) - aᵇPower
- y1 − y0 raised to the power 2. (
(y1 - y0) ^ 2) - ≤At most
- (y1 − y0)^2 is less than or equal to 2 · (y1 − o)^2 + 2 · (y0 − o)^2. (
(y1 - y0) ^ 2 ≤ 2 * (y1 - o) ^ 2 + 2 * …) - -Subtraction
- y1 minus y0. On ℕ, Lean's subtraction stops at 0: 2 − 5 = 0. (
y1 - y0) - ·Multiplication
- 2 times (y1 − o)^2. (
2 * (y1 - o) ^ 2) - +Addition
- 2 · (y1 − o)^2 plus 2 · (y0 − o)^2. (
2 * (y1 - o) ^ 2 + 2 * (y0 - o) ^ 2)
theorem ua-level-difference-bound (y1 y0 o : ℝ) :
(y1 - y0) ^ 2 ≤ 2 * (y1 - o) ^ 2 + 2 * (y0 - o) ^ 2So V_l ≤ 2(MSE_{l+1} + MSE_l): level variances inherit the SNIS 1/N rate. Part of 'Unbiased randomized attention: cost x variance thresholds' (open theory problem), round 2.
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
- 10 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.