Provedalphabaguettenoether-checksumattention
The query kernel's D = ⟨dO, O⟩ equals the key kernel's Σₖ Pₖ⟨dO, Vₖ⟩
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. (
ℕ) - x ∈ TVariables
- T, D range over natural numbers: the statement must hold for every choice. (
(T D : ℕ)) - 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 T. Lean writes f x; papers write f(x). (
Fin T) - ⟹Implies
- If Fin(T), then ℝ. (Between types, A → B is the type of functions from A to B.) (
Fin T → ℝ) - =Equality
- ∑ k, P(k) · (∑ c, dO(c) · V(k, c)) and ∑ c, dO(c) · (∑ k, P(k) · V(k, c)) are the same. (
∑ k, P k * (∑ c, dO c * V k c) = ∑ c, d…) - RReal numbers
- The real numbers: every point on the number line. (
ℝ) - ∑Summation
- Add up dO(c) · V(k, c) for every c. (
∑ c, dO c * V k c) - ·Multiplication
- dO(c) times V(k, c). (
dO c * V k c)
theorem nc-flash-d-identity {T D : ℕ} (P : Fin T → ℝ) (dO : Fin D → ℝ) (V : Fin T → Fin D → ℝ) :
∑ k, P k * (∑ c, dO c * V k c) = ∑ c, dO c * (∑ k, P k * V k c)Σₖ Pₖ·⟨dO, Vₖ⟩ = ⟨dO, Σₖ Pₖ Vₖ⟩ = ⟨dO, O⟩. Baguette's query and key backward kernels may form the row statistic in either way; this identity is why both must agree, and a wrong V buffer in one kernel breaks it. Part of 'Noether checksums for Baguette's backward kernels'.
How it was proved
- Proved
- 3 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
- 14 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.