Provedunbiased-attentionrandomized-algorithmssoftmaxhardness
Tensor powers: ⟨u^⊗k, v^⊗k⟩ = ⟨u, v⟩^k
For all , and (given ):
What the notation means · or point at any symbol
- Type
- Type: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
Type) - Fintype
- Fintype: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
Fintype) - f(x)Function application
- Fintype applied to ι. Lean writes f x; papers write f(x). (
Fintype ι) - NNatural numbers
- The natural numbers 0, 1, 2, …. In Lean they start at 0. (
ℕ) - ⟹Implies
- If ι, then ℝ. (Between types, A → B is the type of functions from A to B.) (
ι → ℝ) - x : TVariables
- u, v range over ι → ℝ: the statement must hold for every choice. (
(u v : ι → ℝ)) - ∑Summation
- Add up ∏ i, u(f(i)) · v(f(i)) for every f in Fin(k) → ι. (
∑ f : Fin k → ι, ∏ i, u (f i) * v (f i)) - =Equality
- ∑ f, ∏ i, u(f(i)) · v(f(i)) and (∑ j, u(j) · v(j))^k are the same. (
∑ f : Fin k → ι, ∏ i, u (f i) * v (f i)…) - RReal numbers
- The real numbers: every point on the number line. (
ℝ) - Fin
- Fin: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
Fin) - ∏Product
- Multiply together u(f(i)) · v(f(i)) for every i. (
∏ i, u (f i) * v (f i)) - ·Multiplication
- u(f(i)) times v(f(i)). (
u (f i) * v (f i)) - aᵇPower
- ∑ j, u(j) · v(j) raised to the power k. (
(∑ j, u j * v j) ^ k)
theorem ua-tensor-power-inner-product {ι : Type} [Fintype ι] (k : ℕ) (u v : ι → ℝ) :
∑ f : Fin k → ι, ∏ i, u (f i) * v (f i) = (∑ j, u j * v j) ^ kΣ over f : Fin k → ι of ∏ u(f i)v(f i) equals (Σ u v)^k. Applied to Rubinstein's perfect-completeness / soundness-1/2 vectors, k-fold tensoring keeps YES at normalized inner product 1 and drives NO below 2^{-k}, at dimension O(log N)^k. Part of 'Unbiased randomized attention: cost x variance thresholds', round 3 (sharp threshold at score range ln n).
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
- 12 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.