Provedalphabaguettenoether-checksumreview-2
Floating-point threshold from the standard model: |Σ aᵢⱼ(1+δᵢⱼ) − Σ aᵢⱼ| ≤ γ·Σ|aᵢⱼ|
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
- m, n range over natural numbers: the statement must hold for every choice. (
(m n : ℕ)) - 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 m. Lean writes f x; papers write f(x). (
Fin m) - x : TVariables
- a, δ range over Fin m → Fin n → ℝ: the statement must hold for every choice. (
(a δ : Fin m → Fin n → ℝ)) - ∀For all
- The statement after the comma holds for every i, j. (
∀ i j, |δ i j| ≤ γ) - -Subtraction
- ∑ i, ∑ j, a(i, j) · (1 + δ(i, j)) minus ∑ i, ∑ j, a(i, j). On ℕ, Lean's subtraction stops at 0: 2 − 5 = 0. (
∑ i, ∑ j, a i j * (1 + δ i j) - ∑ i, ∑ …) - ∑Summation
- Add up a(i, j) · (1 + δ(i, j)) for every j. (
∑ j, a i j * (1 + δ i j)) - |x|Absolute value
- The size of δ(i, j) without its sign. (
|δ i j|) - ≤At most
- |δ(i, j)| is less than or equal to γ. (
|δ i j| ≤ γ) - ⟹Implies
- If Fin(n), then ℝ. (Between types, A → B is the type of functions from A to B.) (
Fin n → ℝ) - ·Multiplication
- a(i, j) times 1 + δ(i, j). (
a i j * (1 + δ i j)) - RReal numbers
- The real numbers: every point on the number line. (
ℝ) - +Addition
- 1 plus δ(i, j). (
1 + δ i j)
theorem nc2-standard-model-residual-bound {m n : ℕ} (a δ : Fin m → Fin n → ℝ) (γ : ℝ) (hδ : ∀ i j, |δ i j| ≤ γ) :
|∑ i, ∑ j, a i j * (1 + δ i j) - ∑ i, ∑ j, a i j| ≤ γ * ∑ i, ∑ j, |a i j|Under the standard rounding model (each product enters the computed sum with relative error |δ| ≤ γ, e.g. Higham's γₙ for an n-term FP32 accumulation of BF16 products), a checksum whose exact value is Σaᵢⱼ is computed within γ·Σ|aᵢⱼ|. For zero-sum checksums (C1), this gives the certified threshold of nc-certified-threshold-rule with aⱼ = Σᵢ|aᵢⱼ|. The floating-point model itself is assumed, not formalized. Part of 'Noether checksums for Baguette's backward kernels' (review pass 2).
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
- 22 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.