proofs
Provedunbiased-attentionrandomized-algorithmssoftmaxlower-bound

Planted instance: m special keys of weight e^R (value 1) among n with m e^R ≥ n give output ≥ 1/2

For all m,n,R∈R\htmlData{mx=1}{m, n, R \in \htmlData{mx=0}{\mathbb{R}}}, if 0<n0 \mathrel{\htmlData{mx=1}{<}} \htmlData{mx=0}{n}, 0≤m0 \mathrel{\htmlData{mx=1}{\leq}} \htmlData{mx=0}{m}, m≤n\htmlData{mx=0}{m} \mathrel{\htmlData{mx=2}{\leq}} \htmlData{mx=1}{n} and n≤m⋅eR\htmlData{mx=0}{n} \mathrel{\htmlData{mx=5}{\leq}} \htmlData{mx=4}{\htmlData{mx=1}{m} \cdot \htmlData{mx=3}{e^{\htmlData{mx=2}{R}}}}, then

12≤m⋅eRm⋅eR+(n−m)\htmlData{mx=0}{\frac{1}{2}} \mathrel{\htmlData{mx=14}{\leq}} \htmlData{mx=13}{\frac{\htmlData{mx=4}{\htmlData{mx=1}{m} \cdot \htmlData{mx=3}{e^{\htmlData{mx=2}{R}}}}}{\htmlData{mx=12}{\htmlData{mx=8}{\htmlData{mx=5}{m} \cdot \htmlData{mx=7}{e^{\htmlData{mx=6}{R}}}} + (\htmlData{mx=11}{\htmlData{mx=9}{n} - \htmlData{mx=10}{m}})}}}
What the notation means · or point at any symbol
RReal numbers
The real numbers: every point on the number line. (ℝ)
x ∈ TVariables
m, n, R range over real numbers: the statement must hold for every choice. ((m n R : ℝ))
<Less than
0 is strictly smaller than n. (0 < n)
≤At most
0 is less than or equal to m. (0 ≤ m)
a/bDivision
1 divided by 2. In Lean, dividing by 0 gives 0. (1 / 2)
·Multiplication
m times exp(R). (m * Real.exp R)
eˣExponential function
e raised to the power R, where e ≈ 2.718. (Real.exp R)
+Addition
m · exp(R) plus n − m. (m * Real.exp R + (n - m))
-Subtraction
n minus m. On ℕ, Lean's subtraction stops at 0: 2 − 5 = 0. (n - m)

The planted world of the sampling lower bound (m = n^{1−α}, R = α ln n); the unplanted world has output 0. 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
13 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.

More proved statements