Provedbalanced-conversionconversion-theoremattention-compute-lawlower-bound
Partial knowledge: with signs known on some levels, Σ_σ π_σ(b)² = Π_known 2 f_ℓ(b)² · Π_unknown (1/2 + 2ε²) at every leaf
For all , , , and :
What the notation means · or point at any symbol
- NNatural numbers
- The natural numbers 0, 1, 2, …. In Lean they start at 0. (
ℕ) - 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) - 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) - ∑Summation
- Add up (∏ ℓ, 1/2 + ε if τ(ℓ) = b(ℓ), else 1/2 − ε if known(ℓ), el… for every σ in Fin(L) → Bool. (
∑ σ : Fin L → Bool, (∏ ℓ, (if known ℓ t…) - 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) - aᵇPower
- ∏ ℓ, 1/2 + ε if τ(ℓ) = b(ℓ), else 1/2 − ε if known(ℓ), els… raised to the power 2. (
(∏ ℓ, (if known ℓ then (if τ ℓ = b ℓ th…) - ∏Product
- Multiply together 1/2 + ε if τ(ℓ) = b(ℓ), else 1/2 − ε if known(ℓ), else 1/2… for every ℓ. (
∏ ℓ, (if known ℓ then (if τ ℓ = b ℓ the…) - { a if c; b otherwiseCases (if … then … else)
- 1/2 + ε when τ(ℓ) = b(ℓ), and 1/2 − ε otherwise. (
if τ ℓ = b ℓ then 1 / 2 + ε else 1 / 2 …) - =Equality
- τ(ℓ) and b(ℓ) are the same. (
τ ℓ = b ℓ) - a/bDivision
- 1 divided by 2. In Lean, dividing by 0 gives 0. (
1 / 2) - +Addition
- 1/2 plus ε. (
1 / 2 + ε) - -Subtraction
- 1/2 minus ε. On ℕ, Lean's subtraction stops at 0: 2 − 5 = 0. (
1 / 2 - ε) - ·Multiplication
- 2 times 1/2 + ε if τ(ℓ) = b(ℓ), else 1/2 − ε^2. (
2 * (if τ ℓ = b ℓ then 1 / 2 + ε else 1…)
theorem bc2-partial-knowledge-second-moment (L : ℕ) (ε : ℝ) (known : Fin L → Bool) (τ : Fin L → Bool) (b : Fin L → Bool) :
∑ σ : Fin L → Bool, (∏ ℓ, (if known ℓ then (if τ ℓ = b ℓ then 1 / 2 + ε else 1 / 2 - ε) else (if σ ℓ = b ℓ then 1 / 2 + ε else 1 / 2 - ε))) ^ 2 = ∏ ℓ, (if known ℓ then 2 * (if τ ℓ = b ℓ then 1 / 2 + ε else 1 / 2 - ε) ^ 2 else 1 / 2 + 2 * ε ^ 2)The family second moment when an algorithm knows the biases on a set of levels and nothing about the rest: the unknown levels contribute the constant factor 1/2 + 2ε² each. Part of Balanced Conversion: the Conversion Theorem's two-way descent factor is exactly 1 + (p−q)²/(q(1−q)), so additive oracle error is second order at mass-balanced nodes; a mass-balanced descent converts any deterministic additive-ε oracle with loss n^{O(ε²)}, and the biased product family shows this is tight. Quantifies the last residual class of the Attention Compute Law.
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
- 15 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.