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.

A finite sum is unchanged by a permutation of its index range: k<naπ(k)=k<nak\sum_{k<n} a_{\pi(k)} = \sum_{k<n} a_k for every bijection π:nn\pi : n \to n

Statement

Let nNn \in \mathbb{N} and let π:nn\pi : n \to n be a bijection (Injection, surjection, bijection). Then:

  1. for every list a:nRa : n \to \mathbb{R}, k<naπ(k)=k<nak\displaystyle\sum_{k<n} a_{\pi(k)} = \sum_{k<n} a_k and k<naπ(k)=k<nak\displaystyle\prod_{k<n} a_{\pi(k)} = \prod_{k<n} a_k (Finite sums and finite products, by recursion);
  2. for every list a:nNa : n \to \mathbb{N}, k<naπ(k)=k<nak\displaystyle\sum_{k<n} a_{\pi(k)} = \sum_{k<n} a_k and k<naπ(k)=k<nak\displaystyle\prod_{k<n} a_{\pi(k)} = \prod_{k<n} a_k (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}).

This is not in Laws of finite sums and finite products. That item proves additivity, scaling, splitting, monotonicity, telescoping and the product laws, and states no invariance clause; the same is true of the N\mathbb{N}-valued list on this page. Permutation invariance is exactly what makes a sum over a finite set of indices well posed, which is the next item, so it is proved here first.

Facts & Assumptions

Given: A natural number nn, a bijection π:nn\pi : n \to n, and a list aa of length nn. Throughout, σ(n)=n{n}\sigma(n) = n \cup \{n\}, n={k:k<n}n = \{\, k : k < n\,\}, and \ast denotes any one of the four operations (R,+)(\mathbb{R},+), (R,)(\mathbb{R},\cdot), (N,+)(\mathbb{N},+), (N,)(\mathbb{N},\cdot), with ee the corresponding identity element 00, 11, 00, 11. Write k<nck\bigstar_{k<n} c_k for the associated iterated operation, that is, for k<nck\sum_{k<n} c_k in the two additive cases and k<nck\prod_{k<n} c_k in the two multiplicative ones.

[L2]

The four iterated operations obey the same two recursion clauses: k<0ck=e\bigstar_{k<0} c_k = e and k<σ(n)ck=(k<nck)cn\bigstar_{k<\sigma(n)} c_k = \big(\bigstar_{k<n} c_k\big) \ast c_n (Finite sums and finite products, by recursion, 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}).

[L3]

Each of the four operations is associative and commutative on its set and has ee as a two-sided identity (Field, Ordered field for R\mathbb{R}; Addition is associative, Addition is commutative, Multiplication is associative, Multiplication is commutative, Left identity for addition, Zero and one under multiplication for N\mathbb{N}). These three properties are the only facts about \ast used below, which is why one argument proves all four clauses.

[L4]

Order and membership: k<n    knk < n \iff k \in n, n={k:k<n}n = \{\, k : k < n\,\}, k<σ(n)    knk < \sigma(n) \iff k \le n, nnn \notin n, and σ(n){n}=n\sigma(n) \setminus \{n\} = n (On N\mathbb{N} the order is membership: m<n    mnm < n \iff m \in n, The natural numbers N\mathbb{N} (von Neumann), Order on the natural numbers).

[L5]

Discreteness and successors: m<n    σ(m)nm < n \iff \sigma(m) \le n; every nonzero natural is σ(s)\sigma(s) for a unique ss (Discreteness: σ(n)\sigma(n) is the immediate successor, Every nonzero natural number is a successor, The von Neumann naturals form a Peano system).

[L6]

Maps: a composite of bijections is a bijection; a bijection restricted to a subset of its domain is a bijection onto the image of that subset (Injection, surjection, bijection).

Proof

technique · induction
1.1

For nNn \in \mathbb{N} and jnj \le n define djn:nσ(n)d^{n}_{j} : n \to \sigma(n) by djn(k)=kd^{n}_{j}(k) = k for k<jk < j and djn(k)=σ(k)d^{n}_{j}(k) = \sigma(k) for jk<nj \le k < n; this is the increasing enumeration of σ(n){j}\sigma(n) \setminus \{j\}. It is a bijection of nn onto σ(n){j}\sigma(n) \setminus \{j\}: its values lie in σ(n)\sigma(n) and avoid jj, since k<jk < j in the first clause and σ(k)>kj\sigma(k) > k \ge j in the second; it is injective, being strictly increasing on each clause and satisfying k<jσ(k)k < j \le \sigma(k') across them; and it is surjective, since tσ(n)t \in \sigma(n) with t<jt < j has t<nt < n and djn(t)=td^{n}_{j}(t) = t, while t>jt > j is nonzero, so t=σ(s)t = \sigma(s) with jsj \le s by [L5] and s<ns < n because σ(s)n\sigma(s) \le n, giving djn(s)=td^{n}_{j}(s) = t.

L4L5L6construct
1.2

Claim (A)(A) at n=0n = 0: for a list cc of length σ(0)=1\sigma(0) = 1 and the only admissible index j=0j = 0, both sides of (A)(A) read c0c_0, since k<1ck=ec0=c0\bigstar_{k<1} c_k = e \ast c_0 = c_0 and (k<0cd00(k))c0=ec0=c0\big(\bigstar_{k<0} c_{d^{0}_{0}(k)}\big) \ast c_0 = e \ast c_0 = c_0.

baseL2L3
1.3

Inductive hypothesis for (A)(A): fix nn and assume that for every list cc of length σ(n)\sigma(n) and every jnj \le n one has k<σ(n)ck=(k<ncdjn(k))cj\bigstar_{k<\sigma(n)} c_k = \big(\bigstar_{k<n} c_{d^{n}_{j}(k)}\big) \ast c_j.

ih
1.4

The main claim at n=0n = 0: the only bijection 000 \to 0 is the empty map and both sides are the empty iterate ee.

L2
2.1

Inductive step for (A)(A). Let cc be a list of length σ(σ(n))\sigma(\sigma(n)) and let jσ(n)j \le \sigma(n). If j=σ(n)j = \sigma(n) then djσ(n)d^{\sigma(n)}_{j} is the identity of σ(n)\sigma(n), so the right-hand side is (k<σ(n)ck)cσ(n)\big(\bigstar_{k<\sigma(n)} c_k\big) \ast c_{\sigma(n)}, which is the left-hand side by [L2]. If instead jnj \le n, apply the hypothesis of step 1.3 to the restriction of cc to σ(n)\sigma(n) to get k<σ(n)ck=(k<ncdjn(k))cj\bigstar_{k<\sigma(n)} c_k = \big(\bigstar_{k<n} c_{d^{n}_{j}(k)}\big) \ast c_j; hence k<σ(σ(n))ck=((k<ncdjn(k))cj)cσ(n)=((k<ncdjn(k))cσ(n))cj\bigstar_{k<\sigma(\sigma(n))} c_k = \big(\big(\bigstar_{k<n} c_{d^{n}_{j}(k)}\big) \ast c_j\big) \ast c_{\sigma(n)} = \big(\big(\bigstar_{k<n} c_{d^{n}_{j}(k)}\big) \ast c_{\sigma(n)}\big) \ast c_j by [L3]. Finally djσ(n)d^{\sigma(n)}_{j} agrees with djnd^{n}_{j} on nn and sends nn to σ(n)\sigma(n), because jnj \le n, so the inner bracket is k<σ(n)cdjσ(n)(k)\bigstar_{k<\sigma(n)} c_{d^{\sigma(n)}_{j}(k)} by [L2], which is the right-hand side at σ(n)\sigma(n).

step 1.3L2L3
3.1

Claim (A)(A) therefore holds for every nn: for every list cc of length σ(n)\sigma(n) and every jnj \le n, k<σ(n)ck=(k<ncdjn(k))cj\bigstar_{k<\sigma(n)} c_k = \big(\bigstar_{k<n} c_{d^{n}_{j}(k)}\big) \ast c_j. Informally, any single entry may be moved to the end without changing the value.

step 1.2step 2.1L1
4.1

Inductive step for the main claim. Assume it at nn, for every list of length nn and every bijection of nn. Let π:σ(n)σ(n)\pi : \sigma(n) \to \sigma(n) be a bijection, let aa be a list of length σ(n)\sigma(n), and put j:=π1(n)nj := \pi^{-1}(n) \le n. Applying (A)(A) to the list ck:=aπ(k)c_k := a_{\pi(k)} at the index jj gives k<σ(n)aπ(k)=(k<naρ(k))aπ(j)\bigstar_{k<\sigma(n)} a_{\pi(k)} = \big(\bigstar_{k<n} a_{\rho(k)}\big) \ast a_{\pi(j)} with ρ:=πdjn\rho := \pi \circ d^{n}_{j} and aπ(j)=ana_{\pi(j)} = a_n. Now ρ\rho is a bijection of nn onto nn: djnd^{n}_{j} is a bijection of nn onto σ(n){j}\sigma(n)\setminus\{j\} by step 1.1, and π\pi restricts to a bijection of σ(n){j}\sigma(n)\setminus\{j\} onto σ(n){n}=n\sigma(n)\setminus\{n\} = n. So the inductive hypothesis applies to ρ\rho and gives k<naρ(k)=k<nak\bigstar_{k<n} a_{\rho(k)} = \bigstar_{k<n} a_k, whence k<σ(n)aπ(k)=(k<nak)an=k<σ(n)ak\bigstar_{k<\sigma(n)} a_{\pi(k)} = \big(\bigstar_{k<n} a_k\big) \ast a_n = \bigstar_{k<\sigma(n)} a_k.

step 1.1step 3.1assume-hypL2L4L6
5.1

By induction the main claim holds for every nNn \in \mathbb{N}, every list of length nn and every bijection π:nn\pi : n \to n.

step 1.4step 4.1L1
6.1

Since \ast was any one of the four operations of the Given, and [L3] holds for each of them, step 5.1 is exactly clauses 1 and 2.

step 5.1L3discharge-induction

Remarks

  • Where the deletion map earns its keep. The usual textbook proof says "move the term ana_n to the end and delete it", and leaves the resulting map on the shorter index range unexamined. That map is djnd^{n}_{j} composed with π\pi, and checking that it really is a bijection of nn onto nn is the only place where anything can go wrong; step 1.1 writes it down and verifies it in both directions.

  • One proof, four statements. Only associativity, commutativity, the identity and the two recursion clauses are used, so the argument is indifferent to which of the four operations is meant. The same observation is what later licenses the identical statement in an arbitrary monoid, where it belongs; nothing here needs that generality.

  • No choice is used. The index j=π1(n)j = \pi^{-1}(n) is determined, not selected, because π\pi is a bijection.

Depends on

Used by

Dependency tree · next 3 levels

Direct dependencies and their dependencies through the next three levels: 61 results over 20 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