Provedproposal-principleattentionunifiedcrux
Prefix masses on the key tree: root mass 1, leaf mass π_b, and the two children of a node (bit at ℓ set true/false) partition the parent mass
For all , and , if , then
What the notation means · or point at any symbol
- NNatural numbers
- The natural numbers 0, 1, 2, …. In Lean they start at 0. (
ℕ) - ∑Summation
- Add up π(b) for every b. (
∑ b, π b) - =Equality
- ∑ b, π(b) and 1 are the same. (
∑ b, π b = 1) - 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 L. Lean writes f x; papers write f(x). (
Fin L) - ⟹Implies
- If Fin(L), then Bool. (Between types, A → B is the type of functions from A to B.) (
Fin L → Bool) - πPi
- The ratio of a circle's circumference to its diameter, ≈ 3.14159. (
π) - Bool
- Bool: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
Bool) - RReal numbers
- The real numbers: every point on the number line. (
ℝ) - { a if c; b otherwiseCases (if … then … else)
- π(b') when ∀ i, i < 0 → b'(i) = b(i), and 0 otherwise. (
if (∀ i : Fin L, (i : ℕ) < 0 → b' i = b…) - ∀For all
- The statement after the comma holds for every i. (
∀ i : Fin L, (i : ℕ) < 0 → b' i = b i) - (x : T)As natural numbers
- i read as an element of natural numbers. Mathematicians leave this implicit; Lean needs it to know which kind of number is meant. (
(i : ℕ)) - <Less than
- i is strictly smaller than 0. (
(i : ℕ) < 0) - ∧And
- Both hold: (∑ b', π(b') if ∀ i, i < L → b'(i) = b(i), else 0) = π(b), and ∀ ℓ, h, (∑ b', π(b') if ∀ i, i < ℓ + 1 → b'(i) = update(b,…. (
(∑ b' : Fin L → Bool, (if (∀ i : Fin L,…) - +Addition
- ℓ plus 1. (
ℓ + 1) - update
- Function.update: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
Function.update) - ⟨a, b⟩Anonymous constructor
- Builds a structure (a pair, a subtype element, …) from ℓ, h. (
⟨ℓ, h⟩) - true
- true: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
true) - false
- false: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
false)
theorem cv-prefix-masses {L : ℕ} (π : (Fin L → Bool) → ℝ) (hπs : ∑ b, π b = 1) (b : Fin L → Bool) :
(∑ b' : Fin L → Bool, (if (∀ i : Fin L, (i : ℕ) < 0 → b' i = b i) then π b' else 0)) = 1 ∧ (∑ b' : Fin L → Bool, (if (∀ i : Fin L, (i : ℕ) < L → b' i = b i) then π b' else 0)) = π b ∧ (∀ ℓ (h : ℓ < L), (∑ b' : Fin L → Bool, (if (∀ i : Fin L, (i : ℕ) < ℓ + 1 → b' i = Function.update b ⟨ℓ, h⟩ true i) then π b' else 0)) + (∑ b' : Fin L → Bool, (if (∀ i : Fin L, (i : ℕ) < ℓ + 1 → b' i = Function.update b ⟨ℓ, h⟩ false i) then π b' else 0)) = ∑ b' : Fin L → Bool, (if (∀ i : Fin L, (i : ℕ) < ℓ → b' i = b i) then π b' else 0))Defines m ℓ b = Σ_{b' agreeing with b below ℓ} π b' and proves the three structural facts the descent needs. With cv-node-mass-inheritance, cv-end-to-end-abstract and cv-tree-proposal-sums-to-one, the binary-tree instantiation of the Conversion Theorem is formal link by link; only their assembly into one statement remains. 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
- 43 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.