Alphabeta Math
DefinitionDefinition: AI-adaptedProof: AI-generatedSession-authored (Fable 5 assisted)verified 2026-08-02 (claude-opus-5)
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.

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}

Definition

Let a:NNa : \mathbb{N} \to \mathbb{N}, written aka_k for a(k)a(k), with addition and multiplication of natural numbers as in Addition of natural numbers and Multiplication of natural numbers. Finite sums and finite products of aa inside N\mathbb{N} are defined by recursion on the upper index, which is legitimate by the recursion theorem (The recursion theorem).

That theorem produces a function of one variable, so the running index has to be carried inside the value. Apply it to the set A=N×NA = \mathbb{N} \times \mathbb{N}, the starting element (0,0)(0,0) and the function f(k,s)=(σ(k),s+ak)f(k, s) = (\sigma(k),\, s + a_k): there is a unique g:NN×Ng : \mathbb{N} \to \mathbb{N} \times \mathbb{N} with

g(0)=(0,0),g(σ(n))=f(g(n))(nN).g(0) = (0,0), \qquad g(\sigma(n)) = f(g(n)) \quad (n \in \mathbb{N}).

Write g(n)=(π1(g(n)),Sn)g(n) = \big(\pi_1(g(n)),\, S_n\big) for its two coordinates.

The first coordinate is the index itself, and that is an induction, not an observation (The principle of mathematical induction). Indeed π1(g(0))=0\pi_1(g(0)) = 0; and if π1(g(n))=n\pi_1(g(n)) = n then g(σ(n))=f(π1(g(n)),Sn)=(σ(π1(g(n))),Sn+aπ1(g(n)))=(σ(n),Sn+an)g(\sigma(n)) = f\big(\pi_1(g(n)), S_n\big) = \big(\sigma(\pi_1(g(n))),\, S_n + a_{\pi_1(g(n))}\big) = \big(\sigma(n),\, S_n + a_n\big), so π1(g(σ(n)))=σ(n)\pi_1(g(\sigma(n))) = \sigma(n). Only now may the second coordinates of the two displayed clauses be read off, and doing so gives

S0=0,Sσ(n)=Sn+an.S_0 = 0, \qquad S_{\sigma(n)} = S_n + a_n .

SS is moreover the unique function NN\mathbb{N} \to \mathbb{N} with those two properties: if SS' also has them then n(n,Sn)n \mapsto (n, S'_n) satisfies the two clauses defining gg, hence equals gg by the uniqueness clause of The recursion theorem, so S=SS' = S. We write

k<nak:=Sn.\sum_{k<n} a_k := S_n .

The same construction with starting element (0,1)(0,1) and f(k,p)=(σ(k),pak)f(k,p) = (\sigma(k),\, p \cdot a_k), with the same induction on the first coordinate and the same uniqueness argument, gives the unique P:NNP : \mathbb{N} \to \mathbb{N} with

P0=1,Pσ(n)=Pnan,P_0 = 1, \qquad P_{\sigma(n)} = P_n \cdot a_n ,

and we write k<nak:=Pn\prod_{k<n} a_k := P_n.

The empty sum is 00 and the empty product is 11, by the base clause of the recursion and by nothing else: no convention is imported from anywhere.

Notation. We abbreviate k=0nak:=k<n+1ak\sum_{k=0}^{n} a_k := \sum_{k<n+1} a_k and likewise for products, using σ(n)=n+1\sigma(n) = n+1. Only finitely many values of aa enter k<nak\sum_{k<n} a_k, so the notation is also used for a list a0,,an1a_0, \dots, a_{n-1} of naturals given without reference to any extension to all of N\mathbb{N}: extend the list by ak=0a_k = 0 (respectively ak=1a_k = 1) for knk \ge n and apply the definition. Where the two kinds of finite sum have to be told apart, we write N\sum^{\mathbb{N}} and N\prod^{\mathbb{N}} for the ones defined here and R\sum^{\mathbb{R}}, R\prod^{\mathbb{R}} for those of Finite sums and finite products, by recursion; elsewhere the ambient set is fixed by the terms being summed.

Truncated difference, fixed here for the whole page. For m,nNm, n \in \mathbb{N} we write nmn - m for the unique jNj \in \mathbb{N} with m+j=nm + j = n when mnm \le n, and for 00 when n<mn < m. Existence in the first case is the definition of \le (Order on the natural numbers) and uniqueness is commutativity with cancellation (Addition is commutative, Addition is cancellative). The two cases are exhaustive and mutually exclusive, since exactly one of m<nm < n, m=nm = n, n<mn < m holds (Trichotomy of the order on N\mathbb{N}), so the notation names a single natural number for every mm and nn. Every use of nmn-m on this page is this operation; no negative number is ever formed, and where a statement is true only under mnm \le n that hypothesis is written out.

Remarks

  • Why a second finite sum is needed at all. Finite sums and finite products, by recursion defines k<nak\sum_{k<n} a_k for a sequence of reals, and its value is a real number. Every count on this page is a natural number, so the sum rule, the row sums of Pascal's triangle, the condition iki=n\sum_i k_i = n on a multinomial coefficient and the stars-and-bars count all need a sum that stays in N\mathbb{N}. The two notions are related, not rival: the bridge ι(k<nNak)=k<nRι(ak)\iota\big(\sum^{\mathbb{N}}_{k<n} a_k\big) = \sum^{\mathbb{R}}_{k<n}\iota(a_k) is proved in the next item, and it is what lets an identity between counts be read inside R\mathbb{R} and back.

  • The monoid version, later. The same recursion is carried out in an arbitrary monoid in The product g0g1gn1g_0 g_1 \cdots g_{n-1} of a finite list in a monoid, by recursion, with the empty product (n=0n = 0) equal to the identity , which comes later in the reading order; (N,+,0)(\mathbb{N},+,0) and (N,,1)(\mathbb{N},\cdot,1) are instances of it, and the agreement is immediate because the recursion clauses are identical. That pointer is orientation only: nothing here depends on it, and the notion defined above is complete as it stands.

  • 00 is an index. k<n\sum_{k<n} runs over k=0,1,,n1k = 0, 1, \dots, n-1, so k<1ak=a0\sum_{k<1} a_k = a_0 and k<0ak=0\sum_{k<0} a_k = 0. A claim about k<nak\sum_{k<n} a_k must be checked at n=0n = 0, where it is a claim about 00, and a claim about k<nak\prod_{k<n} a_k at n=0n = 0, where it is a claim about 11.

Depends on

Used by

Dependency tree · next 3 levels

Direct dependencies and their dependencies through the next three levels: 46 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