Provedalphabaguettebaguette-zschedule
Any two-way split of an integer reduction recombines exactly
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. (
ℕ) - 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 n. Lean writes f x; papers write f(x). (
Fin n) - ⟹Implies
- If Fin(n), then ℤ. (Between types, A → B is the type of functions from A to B.) (
Fin n → ℤ) - Finset
- Finset: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
Finset) - ∑Summation
- Add up q(i) for each i in s. (
∑ i ∈ s, q i) - +Addition
- ∑ i, q(i) plus ∑ i, q(i). (
∑ i ∈ s, q i + ∑ i ∈ sᶜ, q i) - =Equality
- (∑ i, q(i)) + (∑ i, q(i)) and ∑ i, q(i) are the same. (
∑ i ∈ s, q i + ∑ i ∈ sᶜ, q i = ∑ i, q i) - ZIntegers
- The integers …, −2, −1, 0, 1, 2, …. (
ℤ) - sᶜ
- sᶜ: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
sᶜ)
theorem bz-two-way-split-invariance {n : ℕ} (q : Fin n → ℤ) (s : Finset (Fin n)) :
∑ i ∈ s, q i + ∑ i ∈ sᶜ, q i = ∑ i, q iΣ_{i∈s} q + Σ_{i∉s} q = Σ q for every subset s: tree-shaped reductions of any shape agree. Part of the plan 'Baguette-Z: closed-loop certified integer-state training'.
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
- 12 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.