Provedproposal-principleattentionunifiedcrux
Conversion step: an additive-ε estimate of a branch mass, clipped and smoothed as (p̂_c + ε)/(1 + 2ε), under-proposes neither branch by more than 1 + 2ε
For all , if , , and , then
What the notation means · or point at any symbol
- RReal numbers
- The real numbers: every point on the number line. (
ℝ) - x ∈ TVariables
- p, phat, ε range over real numbers: the statement must hold for every choice. (
(p phat ε : ℝ)) - ≤At most
- 0 is less than or equal to p. (
0 ≤ p) - <Less than
- 0 is strictly smaller than ε. (
0 < ε) - |x|Absolute value
- The size of phat − p without its sign. (
|phat - p|) - ∧And
- Both hold: p ≤ (1 + 2 · ε) · ((max(0, min(1, phat)) + ε)/(1 + 2 · ε)), and 1 − p ≤ (1 + 2 · ε) · ((1 − max(0, min(1, phat)) + ε)/(1 +…. (
p ≤ (1 + 2 * ε) * ((max 0 (min 1 phat) …) - -Subtraction
- phat minus p. On ℕ, Lean's subtraction stops at 0: 2 − 5 = 0. (
phat - p) - +Addition
- 1 plus 2 · ε. (
1 + 2 * ε) - ·Multiplication
- 2 times ε. (
2 * ε) - a/bDivision
- max(0, min(1, phat)) + ε divided by 1 + 2 · ε. In Lean, dividing by 0 gives 0. (
(max 0 (min 1 phat) + ε) / (1 + 2 * ε)) - maxMaximum
- The larger of 0 and min(1, phat). (
max 0 (min 1 phat)) - minMinimum
- The smaller of 1 and phat. (
min 1 phat)
theorem cv-smoothed-branch-ratio (p phat ε : ℝ) (hp0 : 0 ≤ p) (hp1 : p ≤ 1) (hε : 0 < ε) (hacc : |phat - p| ≤ ε) :
p ≤ (1 + 2 * ε) * ((max 0 (min 1 phat) + ε) / (1 + 2 * ε)) ∧ 1 - p ≤ (1 + 2 * ε) * ((1 - max 0 (min 1 phat) + ε) / (1 + 2 * ε))Conversion Theorem (crux of the Proposal Principle): any attention algorithm that is additively ε-accurate on arbitrary key subsets, queried with indicator values, gives estimated conditional masses down a binary tree of key blocks; smoothing makes each level's likelihood ratio ≤ 1 + 2ε. Part of 'The Proposal Principle: attention complexity is proposal complexity'.
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
- 25 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.