Alphabeta Math
LemmaStatement: AI-adaptedProof: AI-generatedSession-authored (Fable 5 assisted)precheck passjudge pass (z-ai/glm-5.2)audited 2026-07-29
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced — the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted — a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated — a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

Laws of finite sums and products in N\mathbb{N}, and ι(k<nak)=k<nι(ak)\iota\big(\sum_{k<n} a_k\big) = \sum_{k<n} \iota(a_k)

Statement

Let a,b:NNa, b : \mathbb{N} \to \mathbb{N}, let cNc \in \mathbb{N}, and let m,nNm, n \in \mathbb{N}, with N\sum^{\mathbb{N}} and N\prod^{\mathbb{N}} as in Finite sums and finite products of natural numbers, k<nak\sum_{k<n} a_k and k<nak\prod_{k<n} a_k in N\mathbb{N} and R\sum^{\mathbb{R}}, R\prod^{\mathbb{R}} as in Finite sums and finite products, by recursion. Let ι:NR\iota : \mathbb{N} \to \mathbb{R} be the canonical natural of The canonical natural ι(n)=n1F\iota(n) = n \cdot 1_F of a field, so ι(0)=0\iota(0) = 0 and ι(σ(n))=ι(n)+1\iota(\sigma(n)) = \iota(n) + 1. Then:

  1. ι\iota is additive and multiplicative. ι(1)=1\iota(1) = 1, and ι(m+n)=ι(m)+ι(n)\iota(m+n) = \iota(m) + \iota(n) and ι(mn)=ι(m)ι(n)\iota(m n) = \iota(m)\,\iota(n) for all m,nNm, n \in \mathbb{N}, the cases where a factor is 00 included.
  2. Additivity. k<n(ak+bk)=k<nak+k<nbk\displaystyle\sum_{k<n}(a_k + b_k) = \sum_{k<n} a_k + \sum_{k<n} b_k.
  3. Constants. k<nc=nc\displaystyle\sum_{k<n} c = n \cdot c, the summand being the constant list.
  4. Splitting. If mnm \le n and d:=nmd := n - m, then k<nak=k<mak+j<dam+j\displaystyle\sum_{k<n} a_k = \sum_{k<m} a_k + \sum_{j<d} a_{m+j}, and k<nak=(k<mak)(j<dam+j)\displaystyle\prod_{k<n} a_k = \Big(\prod_{k<m} a_k\Big)\Big(\prod_{j<d} a_{m+j}\Big).
  5. Monotonicity. If akbka_k \le b_k for every k<nk < n then k<nakk<nbk\sum_{k<n} a_k \le \sum_{k<n} b_k; and ajk<naka_j \le \sum_{k<n} a_k for every j<nj < n.
  6. Products. k<n(akbk)=(k<nak)(k<nbk)\displaystyle\prod_{k<n}(a_k b_k) = \Big(\prod_{k<n} a_k\Big)\Big(\prod_{k<n} b_k\Big); and if ak0a_k \ne 0 for every k<nk < n then k<nak0\prod_{k<n} a_k \ne 0.
  7. The bridge into R\mathbb{R}. ι(k<nNak)=k<nRι(ak)\displaystyle\iota\Big(\sum^{\mathbb{N}}_{k<n} a_k\Big) = \sum^{\mathbb{R}}_{k<n} \iota(a_k) and ι(k<nNak)=k<nRι(ak)\displaystyle\iota\Big(\prod^{\mathbb{N}}_{k<n} a_k\Big) = \prod^{\mathbb{R}}_{k<n} \iota(a_k).
  8. ι\iota is strictly increasing, hence injective. m<nm < n if and only if ι(m)<ι(n)\iota(m) < \iota(n), and m=nm = n if and only if ι(m)=ι(n)\iota(m) = \iota(n).

Clauses 6 and 7 together are the licence used everywhere below: an identity between natural numbers may be proved by proving the corresponding identity between their canonical naturals in R\mathbb{R}, and conversely a real identity whose two sides are canonical naturals is an identity in N\mathbb{N}.

Facts & Assumptions

Given: Lists a,b:NNa, b : \mathbb{N} \to \mathbb{N}, a natural cc, naturals m,nm, n, and the ambient ordered field R\mathbb{R}. Recall σ(n)=n+1\sigma(n) = n + 1 and the truncated difference nmn - m of Finite sums and finite products of natural numbers, k<nak\sum_{k<n} a_k and k<nak\prod_{k<n} a_k in N\mathbb{N}.

[L1]

Induction: a property holding at 00 and inherited by successors holds at every natural (The principle of mathematical induction).

[L2]

Recursion clauses in N\mathbb{N} (Finite sums and finite products of natural numbers, k<nak\sum_{k<n} a_k and k<nak\prod_{k<n} a_k in N\mathbb{N}): k<0ak=0\sum_{k<0} a_k = 0, k<σ(n)ak=k<nak+an\sum_{k<\sigma(n)} a_k = \sum_{k<n} a_k + a_n, k<0ak=1\prod_{k<0} a_k = 1, k<σ(n)ak=(k<nak)an\prod_{k<\sigma(n)} a_k = \big(\prod_{k<n} a_k\big)\cdot a_n.

[L3]

Recursion clauses in R\mathbb{R} (Finite sums and finite products, by recursion): k<0Rxk=0\sum^{\mathbb{R}}_{k<0} x_k = 0, k<σ(n)Rxk=k<nRxk+xn\sum^{\mathbb{R}}_{k<\sigma(n)} x_k = \sum^{\mathbb{R}}_{k<n} x_k + x_n, and likewise k<0Rxk=1\prod^{\mathbb{R}}_{k<0} x_k = 1, k<σ(n)Rxk=(k<nRxk)xn\prod^{\mathbb{R}}_{k<\sigma(n)} x_k = \big(\prod^{\mathbb{R}}_{k<n} x_k\big)\cdot x_n.

[L4]

Arithmetic of N\mathbb{N}: addition and multiplication are associative and commutative, 0+n=n0 + n = n and n+0=nn + 0 = n, 1n=n1=n1 \cdot n = n \cdot 1 = n and 0n=n0=00 \cdot n = n \cdot 0 = 0, multiplication distributes over addition, and σ(a)n=an+n\sigma(a)\cdot n = a \cdot n + n (Addition is associative, Addition is commutative, Left identity for addition, Multiplication is associative, Multiplication is commutative, Zero and one under multiplication, Distributivity and the successor law for multiplication, Addition of natural numbers, Multiplication of natural numbers).

[L5]

Order of N\mathbb{N}: mnm \le n means m+j=nm + j = n for some jj, that jj is unique, mn    m+kn+km \le n \iff m + k \le n + k, and m<n    σ(m)nm < n \iff \sigma(m) \le n, so n0n \ne 0 is the same as 1n1 \le n; exactly one of m<nm<n, m=nm=n, n<mn<m holds (Order on the natural numbers, Addition is cancellative, Order is compatible with addition, Discreteness: σ(n)\sigma(n) is the immediate successor, Trichotomy of the order on N\mathbb{N}). Transitivity of \le follows from the definition and associativity: m+j=nm + j = n and n+i=pn + i = p give m+(j+i)=pm + (j+i) = p.

[L6]

The canonical natural (The canonical natural ι(n)=n1F\iota(n) = n \cdot 1_F of a field): ι(0)=0R\iota(0) = 0_{\mathbb{R}} and ι(σ(n))=ι(n)+1R\iota(\sigma(n)) = \iota(n) + 1_{\mathbb{R}}; ι(n)\iota(n) is also written n1Rn \cdot 1_{\mathbb{R}}.

[L7]

For n1n \ge 1, with n1Fn \cdot 1_F defined by 11F=1F1 \cdot 1_F = 1_F and (n+1)1F=n1F+1F(n+1)\cdot 1_F = n \cdot 1_F + 1_F: n1F>0n \cdot 1_F > 0, and (m+n)1F=m1F+n1F(m+n)\cdot 1_F = m\cdot 1_F + n\cdot 1_F and (mn)1F=(m1F)(n1F)(mn)\cdot 1_F = (m\cdot 1_F)(n \cdot 1_F) for all m,n1m, n \ge 1 (Canonical naturals are positive and strictly increasing). These identities are asserted for m,n1m, n \ge 1 only; the cases with a zero argument are checked separately below.

[L8]

In a field, 0x=00 \cdot x = 0 (Multiplication by zero: 0a=00 \cdot a = 0); and R\mathbb{R} is an ordered field, so its addition and multiplication are associative and commutative with identities 00 and 11, and its order is total and compatible with addition (Field, Ordered field).

[L9]

Cancellation in N\mathbb{N}: mk=nkm \cdot k = n \cdot k with k0k \ne 0 implies m=nm = n (Cancellation for multiplication by a nonzero factor); and σ(n)0\sigma(n) \ne 0, so 101 \ne 0 (The von Neumann naturals form a Peano system).

Proof

technique · induction
1.1

Every clause is proved by induction on the upper index, using only the recursion clauses [L2], [L3] and the arithmetic [L4], [L8]; the inductions are written out one clause at a time.

given
1.2

The two notations agree: ι(n)=n1R\iota(n) = n \cdot 1_{\mathbb{R}} for every n1n \ge 1. At n=1n = 1, ι(1)=ι(σ(0))=ι(0)+1R=1R=11R\iota(1) = \iota(\sigma(0)) = \iota(0) + 1_{\mathbb{R}} = 1_{\mathbb{R}} = 1 \cdot 1_{\mathbb{R}}; and the successor clauses of the two recursions coincide, ι(σ(n))=ι(n)+1R\iota(\sigma(n)) = \iota(n) + 1_{\mathbb{R}} and (n+1)1R=n1R+1R(n+1)\cdot 1_{\mathbb{R}} = n \cdot 1_{\mathbb{R}} + 1_{\mathbb{R}}. So the two agree at every n1n \ge 1 by induction, and [L7] may be read as a statement about ι\iota.

L1L6L7
1.3

Clause 1 at n=0n = 0: both sides are the empty sum, 0=0+00 = 0 + 0.

baseL2L4
1.4

Clause 1, inductive hypothesis: assume k<n(ak+bk)=k<nak+k<nbk\sum_{k<n}(a_k+b_k) = \sum_{k<n} a_k + \sum_{k<n} b_k for a fixed nn and all lists a,ba, b.

ih
1.5

Clause 2, by induction on nn. At n=0n = 0 both sides are 00, since 0c=00 \cdot c = 0. If k<nc=nc\sum_{k<n} c = n \cdot c, then k<σ(n)c=k<nc+c=nc+c=σ(n)c\sum_{k<\sigma(n)} c = \sum_{k<n} c + c = n\cdot c + c = \sigma(n)\cdot c, the last equality being the successor law σ(a)n=an+n\sigma(a)\cdot n = a\cdot n + n of [L4].

L1L2L4
1.6

Clause 3, by induction on dd, with mm fixed and n=m+dn = m + d. At d=0d = 0 we have n=mn = m and the second sum is empty, so the claim reads k<mak=k<mak+0\sum_{k<m} a_k = \sum_{k<m} a_k + 0. Assuming it at dd, and using m+σ(d)=σ(m+d)m + \sigma(d) = \sigma(m+d), we get k<σ(n)ak=k<nak+an=(k<mak+j<dam+j)+am+d=k<mak+(j<dam+j+am+d)=k<mak+j<σ(d)am+j\sum_{k<\sigma(n)} a_k = \sum_{k<n} a_k + a_n = \big(\sum_{k<m} a_k + \sum_{j<d} a_{m+j}\big) + a_{m+d} = \sum_{k<m} a_k + \big(\sum_{j<d} a_{m+j} + a_{m+d}\big) = \sum_{k<m} a_k + \sum_{j<\sigma(d)} a_{m+j}. The product form is the same argument with ++ replaced by \cdot and 00 by 11.

L1L2L4L5
1.7

Clause 5, by induction on nn. At n=0n = 0 both sides are 1=111 = 1 \cdot 1; and k<σ(n)(akbk)=(k<n(akbk))anbn=(k<nak)(k<nbk)anbn=(k<σ(n)ak)(k<σ(n)bk)\prod_{k<\sigma(n)}(a_kb_k) = \big(\prod_{k<n}(a_kb_k)\big)a_nb_n = \big(\prod_{k<n}a_k\big)\big(\prod_{k<n}b_k\big)a_nb_n = \big(\prod_{k<\sigma(n)}a_k\big)\big(\prod_{k<\sigma(n)}b_k\big) by associativity and commutativity. For the second assertion, note first that a product of two nonzero naturals is nonzero: if xy=0xy = 0 with y0y \ne 0, then xy=0yxy = 0 \cdot y, so x=0x = 0 by [L9]. Now induct: k<0ak=10\prod_{k<0}a_k = 1 \ne 0 by [L9], and k<σ(n)ak=(k<nak)an\prod_{k<\sigma(n)}a_k = \big(\prod_{k<n}a_k\big)a_n is a product of two nonzero naturals.

L1L2L4L9
2.1

Clause 1, inductive step. Using [L2] twice and the associativity and commutativity of addition, k<σ(n)(ak+bk)=k<n(ak+bk)+(an+bn)=(k<nak+k<nbk)+(an+bn)=(k<nak+an)+(k<nbk+bn)=k<σ(n)ak+k<σ(n)bk\sum_{k<\sigma(n)}(a_k+b_k) = \sum_{k<n}(a_k+b_k) + (a_n+b_n) = \big(\sum_{k<n}a_k + \sum_{k<n}b_k\big) + (a_n+b_n) = \big(\sum_{k<n}a_k + a_n\big) + \big(\sum_{k<n}b_k + b_n\big) = \sum_{k<\sigma(n)}a_k + \sum_{k<\sigma(n)}b_k, where the inductive hypothesis of step 1.4 was used at the second equality.

step 1.4L2L4
2.2

Clause 0. First ι(1)=1\iota(1) = 1, computed in step 1.2. For m,n1m, n \ge 1 the two identities are [L7], read through step 1.2. If n=0n = 0 then ι(m+0)=ι(m)=ι(m)+0=ι(m)+ι(0)\iota(m+0) = \iota(m) = \iota(m) + 0 = \iota(m) + \iota(0), and ι(m0)=ι(0)=0=ι(m)0=ι(m)ι(0)\iota(m \cdot 0) = \iota(0) = 0 = \iota(m)\cdot 0 = \iota(m)\iota(0) by [L8]; the case m=0m = 0 follows from these by the commutativity of addition and multiplication in N\mathbb{N} and in R\mathbb{R}. So both identities hold for all m,nNm, n \in \mathbb{N}.

step 1.2L4L7L8
2.3

Clause 4. Monotonicity is an induction: at n=0n = 0 both sums are 00; and if k<nakk<nbk\sum_{k<n}a_k \le \sum_{k<n}b_k and anbna_n \le b_n, then k<nak+ank<nbk+ank<nbk+bn\sum_{k<n}a_k + a_n \le \sum_{k<n}b_k + a_n \le \sum_{k<n}b_k + b_n by [L5], so k<σ(n)akk<σ(n)bk\sum_{k<\sigma(n)}a_k \le \sum_{k<\sigma(n)}b_k by transitivity. For the second assertion let j<nj < n, so 1nj1 \le n - j; splitting at jj and then splitting the tail at 11, and using i<1aj+i=0+aj=aj\sum_{i<1}a_{j+i} = 0 + a_j = a_j, gives k<nak=(k<jak+aj)+R\sum_{k<n}a_k = \big(\sum_{k<j}a_k + a_j\big) + R for some RNR \in \mathbb{N}, and aj(k<jak+aj)+Ra_j \le \big(\sum_{k<j}a_k + a_j\big) + R because aja_j plus something equals it.

step 1.6L2L4L5
3.1

Clause 1 holds for every nn, by step 1.3 and step 2.1 together with induction.

step 1.3step 2.1L1
3.2

Clause 7. If m<nm < n put d=nmd = n - m, so m+d=nm + d = n and d0d \ne 0, hence d1d \ge 1 and ι(d)>0\iota(d) > 0 by [L7]; then ι(n)=ι(m)+ι(d)>ι(m)\iota(n) = \iota(m) + \iota(d) > \iota(m) by step 2.2. Conversely, if ι(m)<ι(n)\iota(m) < \iota(n) then m=nm = n and n<mn < m are both excluded, the first because the order of R\mathbb{R} is irreflexive and the second by what was just proved, so m<nm < n by trichotomy in N\mathbb{N}. The statement about equality follows by trichotomy on both sides.

step 2.2L5L7L8
3.3

Clause 6, by induction on nn. At n=0n = 0, ι(k<0ak)=ι(0)=0=k<0Rι(ak)\iota\big(\sum_{k<0}a_k\big) = \iota(0) = 0 = \sum^{\mathbb{R}}_{k<0}\iota(a_k). Assuming the identity at nn, ι(k<σ(n)ak)=ι(k<nak+an)=ι(k<nak)+ι(an)=k<nRι(ak)+ι(an)=k<σ(n)Rι(ak)\iota\big(\sum_{k<\sigma(n)}a_k\big) = \iota\big(\sum_{k<n}a_k + a_n\big) = \iota\big(\sum_{k<n}a_k\big) + \iota(a_n) = \sum^{\mathbb{R}}_{k<n}\iota(a_k) + \iota(a_n) = \sum^{\mathbb{R}}_{k<\sigma(n)}\iota(a_k), the second equality by step 2.2. The product form is the same induction, starting from ι(1)=1\iota(1) = 1 and using multiplicativity.

step 2.2L1L2L3L6
4.1

Clause 0 is step 2.2, clause 1 is step 3.1, clause 2 is step 1.5, clause 3 is step 1.6, clause 4 is step 2.3, clause 5 is step 1.7, clause 6 is step 3.3 and clause 7 is step 3.2.

step 1.5step 1.6step 1.7step 2.3step 3.1step 3.2step 3.3discharge-induction

Remarks

  • Why the zero cases are done by hand. Canonical naturals are positive and strictly increasing states (m+n)1F=m1F+n1F(m+n)\cdot 1_F = m \cdot 1_F + n \cdot 1_F and (mn)1F=(m1F)(n1F)(mn)\cdot 1_F = (m\cdot 1_F)(n \cdot 1_F) for m,n1m, n \ge 1 only, because the notation n1Fn \cdot 1_F is introduced there by a recursion that starts at 11. Every count on this page can be 00, so the two one-line checks at 00 in step 2.2 are not pedantry: without them clause 0 would be a citation to a statement that was not made.

  • The real-valued laws are the same list. Laws of finite sums and finite products proves additivity, scaling, splitting, monotonicity, telescoping and the product laws for sums of reals. The clauses above are their N\mathbb{N}-valued counterparts, proved from the same recursion, and clause 6 is what ties the two lists together. Neither list contains a permutation-invariance clause; that is proved separately in the next item, and it is what the sum over a finite index set needs.

  • What clause 7 buys. Because ι\iota is injective, a proof may cross into R\mathbb{R}, use subtraction or division there, and come back: if ι(x)=ι(y)\iota(x) = \iota(y) with x,yNx, y \in \mathbb{N} then x=yx = y. The binomial theorem below lives in R\mathbb{R} for exactly this reason, while every coefficient in it is a count.

Depends on

Used by

Dependency tree · next 3 levels

Direct dependencies and their dependencies through the next three levels: 56 results over 16 levels. An arrow runs from a result to what uses it, and this result sits at the bottom with a heavier outline. Click the chart to enlarge it.

Sources