Provedalphabaguettenoether-checksumcontrast
Exact detection power of C2: its residual equals the total corruption of the dO copy the kernel used
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. (
ℕ) - 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) - x : TVariables
- dO, dO' range over Fin T → Fin D → ℝ: the statement must hold for every choice. (
(dO dO' : Fin T → Fin D → ℝ)) - ∀For all
- The statement after the comma holds for every i. (
∀ i, ∑ j, P i j = 1) - -Subtraction
- ∑ j, ∑ i, P(i, j) · dO'(i, c) minus ∑ i, dO(i, c). On ℕ, Lean's subtraction stops at 0: 2 − 5 = 0. (
∑ j, ∑ i, P i j * dO' i c - ∑ i, dO i c) - ∑Summation
- Add up P(i, j) for every j. (
∑ j, P i j) - =Equality
- ∑ j, P(i, j) and 1 are the same. (
∑ j, P i j = 1) - ⟹Implies
- If Fin(T), then ℝ. (Between types, A → B is the type of functions from A to B.) (
Fin T → ℝ) - ·Multiplication
- P(i, j) times dO'(i, c). (
P i j * dO' i c) - RReal numbers
- The real numbers: every point on the number line. (
ℝ)
theorem nc-value-checksum-detection-power {T D : ℕ} (P : Fin T → Fin T → ℝ) (dO dO' : Fin T → Fin D → ℝ) (hP : ∀ i, ∑ j, P i j = 1) (c : Fin D) :
∑ j, ∑ i, P i j * dO' i c - ∑ i, dO i c = ∑ i, (dO' i c - dO i c)If the key kernel computes dV from a corrupted copy dO′ (as in Baguette's packed-transpose bug), the C2 residual Σⱼ dV′ⱼ − Σᵢ dOᵢ equals Σᵢ (dO′ᵢ − dOᵢ). So C2 detects exactly the corruptions that change the column sum, and nothing about P is needed. 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
- 16 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.