Provedproposal-principleattentionunifiedprinciple
Average-row target allocation: budgets b_i ∝ √V_i give average MSE exactly ε at total budget (Σ√V_i)²/(nε)
For all , and , if , and , then
What the notation means · or point at any symbol
- NNatural numbers
- The natural numbers 0, 1, 2, …. In Lean they start at 0. (
ℕ) - 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) - f(x)Function application
- Fin applied to n. Lean writes f x; papers write f(x). (
Fin n) - ⟹Implies
- If Fin(n), then ℝ. (Between types, A → B is the type of functions from A to B.) (
Fin n → ℝ) - <Less than
- 0 is strictly smaller than n. (
0 < n) - ∀For all
- The statement after the comma holds for every i. (
∀ i, 0 < s i) - =Equality
- 1/n · (∑ i, s(i)^2/(s(i) · (∑ k, s(k))/(n · ε))) and ε are the same. (
(1 / (n : ℝ)) * ∑ i, s i ^ 2 / (s i * (…) - ∧And
- Both hold: 1/n · (∑ i, s(i)^2/(s(i) · (∑ k, s(k))/(n · ε))) = ε, and (∑ i, s(i) · (∑ k, s(k))/(n · ε)) = (∑ k, s(k))^2/(n · ε). (
(1 / (n : ℝ)) * ∑ i, s i ^ 2 / (s i * (…) - a/bDivision
- 1 divided by n. In Lean, dividing by 0 gives 0. (
1 / (n : ℝ)) - (x : T)As real numbers
- n read as an element of real numbers. Mathematicians leave this implicit; Lean needs it to know which kind of number is meant. (
(n : ℝ)) - RReal numbers
- The real numbers: every point on the number line. (
ℝ) - aᵇPower
- s(i) raised to the power 2. (
s i ^ 2) - ·Multiplication
- s(i) times ∑ k, s(k). (
s i * (∑ k, s k)) - ∑Summation
- Add up s(k) for every k. (
∑ k, s k)
theorem pp-average-target-allocation {n : ℕ} (s : Fin n → ℝ) (ε : ℝ) (hn : 0 < n) (hs : ∀ i, 0 < s i) (hε : 0 < ε) :
(1 / (n : ℝ)) * ∑ i, s i ^ 2 / (s i * (∑ k, s k) / (n * ε)) = ε ∧ ∑ i, s i * (∑ k, s k) / (n * ε) = (∑ k, s k) ^ 2 / (n * ε)Disproval Loop 3 repair: the Proposal Principle is target-relative. For an average-MSE target the optimal per-row sample budgets are proportional to √(1+χ²_i), and the cost is (Σ_i √(1+χ²_i))²/(nε) rather than Σ_i (1+χ²_i)/ε. 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
- 19 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.