Alphabeta Math
TheoremStatement: AI-adaptedProof: AI-generatedSession-authored (Fable 5 assisted)precheck passjudge pass (z-ai/glm-5.2)audited 2026-07-27
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.

Generalised associativity: in a monoid the product of a finite list does not depend on the bracketing, and in a commutative monoid it does not depend on the order of the factors either

Statement

Let (M,,e)(M,\cdot,e) be a monoid and let g:NMg : \mathbb{N} \to M, with finite products i<ngi\prod_{i<n} g_i as 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.

  1. Splitting law. For all m,nNm, n \in \mathbb{N},

    i<m+ngi  =  (i<mgi)(j<ngm+j).\prod_{i<m+n} g_i \;=\; \Bigl(\prod_{i<m} g_i\Bigr) \cdot \Bigl(\prod_{j<n} g_{m+j}\Bigr).

  2. Regrouping law (bracketing does not matter). Let s:NNs : \mathbb{N} \to \mathbb{N} satisfy s0=0s_0 = 0 and sjsσ(j)s_j \le s_{\sigma(j)} for every jj, and for each jj let cjc_j be the unique natural number with sj+cj=sσ(j)s_j + c_j = s_{\sigma(j)}. Put Bj:=l<cjgsj+lB_j := \prod_{l<c_j} g_{s_j + l}, the product of the jj-th block of consecutive factors. Then for every rNr \in \mathbb{N},

    j<rBj  =  i<srgi.\prod_{j<r} B_j \;=\; \prod_{i<s_r} g_i .

    In words: cut the list g0,,gsr1g_0, \dots, g_{s_r - 1} into consecutive blocks in any way whatever, multiply out each block, and multiply the results in order; the answer is the product of the whole list.

  3. Commutative case (order does not matter). Suppose in addition that MM is commutative. Let nNn \in \mathbb{N} and let πSym(n)\pi \in \operatorname{Sym}(n) be a permutation of the von Neumann natural n={0,,n1}n = \{0,\dots,n-1\} (The symmetric group Sym(X)\operatorname{Sym}(X): the bijections of a set XX under composition). Let h:NMh : \mathbb{N} \to M be any family with hi=gπ(i)h_i = g_{\pi(i)} for every i<ni < n. Then

    i<nhi  =  i<ngi.\prod_{i<n} h_i \;=\; \prod_{i<n} g_i .

Facts & Assumptions

Given: A monoid (M,,e)(M,\cdot,e), a family g:NMg : \mathbb{N} \to M, and the products of 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 satisfy i<0ui=e\prod_{i<0} u_i = e and i<σ(n)ui=(i<nui)un\prod_{i<\sigma(n)} u_i = \bigl(\prod_{i<n} u_i\bigr) \cdot u_n for every family u:NMu : \mathbb{N} \to M, and whose value i<nui\prod_{i<n} u_i depends only on u0,,un1u_0, \dots, u_{n-1}.

[L1]

Induction on N\mathbb{N} (The principle of mathematical induction).

[L2]

The monoid laws: \cdot is associative and ee is a two-sided identity (Semigroup and monoid).

[L3]

Addition on N\mathbb{N}: m+0=mm + 0 = m and m+σ(n)=σ(m+n)m + \sigma(n) = \sigma(m+n), so in particular m+1=σ(m)m + 1 = \sigma(m) (Addition of natural numbers); addition is commutative and associative (Addition is commutative, Addition is associative) and cancellative (Addition is cancellative).

[L4]

Order on N\mathbb{N}: mnm \le n means m+k=nm + k = n for some kNk \in \mathbb{N}, and m<nm < n means mnm \le n with mnm \ne n (Order on the natural numbers); mn    m+kn+km \le n \iff m + k \le n + k and m<n    m+k<n+km < n \iff m + k < n + k (Order is compatible with addition); exactly one of m<nm < n, m=nm = n, n<mn < m holds (Trichotomy of the order on N\mathbb{N}); m<n    σ(m)nm < n \iff \sigma(m) \le n (Discreteness: σ(n)\sigma(n) is the immediate successor); and every n0n \ne 0 is a successor (Every nonzero natural number is a successor).

[L5]

On N\mathbb{N} the order is membership: m<n    mnm < n \iff m \in n, so n={m:m<n}n = \{\, m : m < n \,\}; and m<σ(n)    mnm < \sigma(n) \iff m \le n; and nnn \notin 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)).

[L6]

A permutation of nn is a bijection nnn \to n; bijections are injective and surjective, and composites of injections are injective (The symmetric group Sym(X)\operatorname{Sym}(X): the bijections of a set XX under composition, Injection, surjection, bijection).

Proof

technique · induction
1.1

Splitting law, base n=0n = 0: the left side is i<m+0gi=i<mgi\prod_{i<m+0} g_i = \prod_{i<m} g_i, and the right side is (i<mgi)j<0gm+j=(i<mgi)e=i<mgi\bigl(\prod_{i<m} g_i\bigr) \cdot \prod_{j<0} g_{m+j} = \bigl(\prod_{i<m} g_i\bigr) \cdot e = \prod_{i<m} g_i; so the two agree, for every mm.

basegivenL2L3
1.2

Splitting law, inductive hypothesis: fix nn and assume i<m+ngi=(i<mgi)(j<ngm+j)\prod_{i<m+n} g_i = \bigl(\prod_{i<m} g_i\bigr) \cdot \bigl(\prod_{j<n} g_{m+j}\bigr) for every mm and every family gg.

ih
1.3

Write uj:=gm+ju_j := g_{m+j}, a family NM\mathbb{N} \to M, so that j<ngm+j=j<nuj\prod_{j<n} g_{m+j} = \prod_{j<n} u_j and un=gm+nu_n = g_{m+n}.

given
1.4

In claim 2 the natural cjc_j exists because sjsσ(j)s_j \le s_{\sigma(j)}, and it is unique by cancellation, so BjB_j is well defined for every jj and B:NMB : \mathbb{N} \to M is a family.

givenL3L4
1.5

Regrouping law, base r=0r = 0: the left side is j<0Bj=e\prod_{j<0} B_j = e and the right side is i<s0gi=i<0gi=e\prod_{i<s_0} g_i = \prod_{i<0} g_i = e.

basegiven
1.6

Regrouping law, inductive hypothesis: assume j<rBj=i<srgi\prod_{j<r} B_j = \prod_{i<s_r} g_i for this rr.

ih
1.7

Commutative case, base n=0n = 0: both products are empty, hence both equal ee.

basegiven
1.8

Commutative case, inductive hypothesis: fix nn and assume that for every family gg, every πSym(n)\pi \in \operatorname{Sym}(n) and every family hh with hi=gπ(i)h_i = g_{\pi(i)} for i<ni<n, one has i<nhi=i<ngi\prod_{i<n} h_i = \prod_{i<n} g_i.

ih
1.9

Successor step, the data. Let πSym(σ(n))\pi \in \operatorname{Sym}(\sigma(n)) and let hh satisfy hi=gπ(i)h_i = g_{\pi(i)} for every i<σ(n)i < \sigma(n). Put k:=π1(n)k := \pi^{-1}(n), so k<σ(n)k < \sigma(n), that is knk \le n, and let rr be the natural with k+r=nk + r = n; then k+σ(r)=σ(k+r)=σ(n)k + \sigma(r) = \sigma(k+r) = \sigma(n).

givenL3L4L5L6choose
1.10

The skip map. Define δ:NN\delta : \mathbb{N} \to \mathbb{N} by δ(i)=i\delta(i) = i when i<ki < k and δ(i)=σ(i)\delta(i) = \sigma(i) when kik \le i; the two clauses are exhaustive and mutually exclusive by trichotomy, so δ\delta is a function. It is injective: two arguments below kk with equal images are equal; two arguments at least kk have equal images only if their successors agree, hence only if they agree; and if i<kji < k \le j then δ(i)=i<kj<σ(j)=δ(j)\delta(i) = i < k \le j < \sigma(j) = \delta(j).

L4L5construct
2.1

Splitting law, successor step: m+σ(n)=σ(m+n)m + \sigma(n) = \sigma(m+n), so i<m+σ(n)gi=i<σ(m+n)gi=(i<m+ngi)gm+n\prod_{i<m+\sigma(n)} g_i = \prod_{i<\sigma(m+n)} g_i = \bigl(\prod_{i<m+n} g_i\bigr) \cdot g_{m+n}; applying the hypothesis and then associativity, this equals ((i<mgi)j<nuj)un=(i<mgi)((j<nuj)un)=(i<mgi)j<σ(n)uj\bigl(\bigl(\prod_{i<m} g_i\bigr) \cdot \prod_{j<n} u_j\bigr) \cdot u_n = \bigl(\prod_{i<m} g_i\bigr) \cdot \bigl(\bigl(\prod_{j<n} u_j\bigr) \cdot u_n\bigr) = \bigl(\prod_{i<m} g_i\bigr) \cdot \prod_{j<\sigma(n)} u_j, which is the claim at σ(n)\sigma(n).

step 1.2step 1.3givenL2L3
2.2

δ\delta maps nn into σ(n){k}\sigma(n) \setminus \{k\}, and onto it. If i<ki < k then δ(i)=ik\delta(i) = i \ne k and i<kn<σ(n)i < k \le n < \sigma(n). If ki<nk \le i < n then δ(i)=σ(i)\delta(i) = \sigma(i) with ki<σ(i)k \le i < \sigma(i), so δ(i)k\delta(i) \ne k, and i<ni < n gives σ(i)<σ(n)\sigma(i) < \sigma(n) by compatibility of the order with adding 11. Conversely let y<σ(n)y < \sigma(n) with yky \ne k. If y<ky < k then y<kny < k \le n, so y<ny < n and y=δ(y)y = \delta(y). If k<yk < y then y0y \ne 0, so y=σ(x)y = \sigma(x) for some xx; from k<σ(x)k < \sigma(x) we get kxk \le x, and from σ(x)<σ(n)\sigma(x) < \sigma(n) we get x<nx < n, so y=σ(x)=δ(x)y = \sigma(x) = \delta(x) with x<nx < n.

step 1.9step 1.10L4L5
3.1

By induction the splitting law holds for all m,nNm, n \in \mathbb{N}; this is claim 1.

step 1.1step 2.1L1
3.2

The reduced permutation. Set π:=πδ\pi' := \pi \circ \delta restricted to nn. By step 2.2 it maps nn into π[σ(n){k}]\pi[\sigma(n) \setminus \{k\}], and since π\pi is a bijection of σ(n)\sigma(n) with π(k)=n\pi(k) = n, that image set is σ(n){n}=n\sigma(n) \setminus \{n\} = n; the same step gives surjectivity onto it, and π\pi' is injective as a composite of injections. So πSym(n)\pi' \in \operatorname{Sym}(n).

step 1.9step 2.2L5L6
4.1

Regrouping law, successor step: j<σ(r)Bj=(j<rBj)Br=(i<srgi)l<crgsr+l\prod_{j<\sigma(r)} B_j = \bigl(\prod_{j<r} B_j\bigr) \cdot B_r = \bigl(\prod_{i<s_r} g_i\bigr) \cdot \prod_{l<c_r} g_{s_r+l} by the hypothesis, and the splitting law with m=srm = s_r and n=crn = c_r turns the right-hand side into i<sr+crgi=i<sσ(r)gi\prod_{i<s_r + c_r} g_i = \prod_{i<s_{\sigma(r)}} g_i. By induction claim 2 holds for every rr.

step 3.1step 1.4step 1.5step 1.6givenL1
4.2

Splitting the permuted product. By step 1.9 and the splitting law, i<σ(n)hi=i<k+σ(r)hi=(i<khi)(j<σ(r)hk+j)\prod_{i<\sigma(n)} h_i = \prod_{i<k+\sigma(r)} h_i = \bigl(\prod_{i<k} h_i\bigr) \cdot \bigl(\prod_{j<\sigma(r)} h_{k+j}\bigr); and since σ(r)=1+r\sigma(r) = 1 + r, a second application of the splitting law to the family jhk+jj \mapsto h_{k+j} gives j<σ(r)hk+j=(j<1hk+j)(l<rhk+1+l)=hkl<rhk+σ(l)\prod_{j<\sigma(r)} h_{k+j} = \bigl(\prod_{j<1} h_{k+j}\bigr) \cdot \bigl(\prod_{l<r} h_{k+1+l}\bigr) = h_k \cdot \prod_{l<r} h_{k+\sigma(l)}.

step 3.1step 1.9givenL3
4.3

Recognising the shorter permuted product. Let wi:=hδ(i)w_i := h_{\delta(i)}. For i<ki<k one has wi=hiw_i = h_i, and for l<rl<r one has wk+l=hσ(k+l)=hk+σ(l)w_{k+l} = h_{\sigma(k+l)} = h_{k+\sigma(l)}; so the splitting law at m=km = k, n=rn = r gives i<nwi=(i<khi)l<rhk+σ(l)\prod_{i<n} w_i = \bigl(\prod_{i<k} h_i\bigr) \cdot \prod_{l<r} h_{k+\sigma(l)}. Moreover wi=hδ(i)=gπ(δ(i))=gπ(i)w_i = h_{\delta(i)} = g_{\pi(\delta(i))} = g_{\pi'(i)} for every i<ni<n, by step 2.2 and step 3.2.

step 3.1step 1.9step 1.10step 2.2step 3.2L3
5.1

Moving the removed factor to the end. hk=gπ(k)=gnh_k = g_{\pi(k)} = g_n, and MM is commutative, so (i<khi)(hkl<rhk+σ(l))=((i<khi)l<rhk+σ(l))gn\bigl(\prod_{i<k} h_i\bigr) \cdot \bigl(h_k \cdot \prod_{l<r} h_{k+\sigma(l)}\bigr) = \bigl(\bigl(\prod_{i<k} h_i\bigr) \cdot \prod_{l<r} h_{k+\sigma(l)}\bigr) \cdot g_n, using commutativity to exchange hkh_k with the block to its right and associativity to regroup.

step 1.9step 4.2givenL2
6.1

Applying the hypothesis. The family ww satisfies wi=gπ(i)w_i = g_{\pi'(i)} for i<ni<n with πSym(n)\pi' \in \operatorname{Sym}(n), so the inductive hypothesis gives i<nwi=i<ngi\prod_{i<n} w_i = \prod_{i<n} g_i; combining with steps 4.2, 5.1 and 4.3, i<σ(n)hi=(i<ngi)gn=i<σ(n)gi\prod_{i<\sigma(n)} h_i = \bigl(\prod_{i<n} g_i\bigr) \cdot g_n = \prod_{i<\sigma(n)} g_i, which is the claim at σ(n)\sigma(n).

step 1.8step 3.2step 4.2step 5.1step 4.3given
7.1

By induction claim 3 holds for every nn; with claims 1 and 2 already established, the theorem is proved.

step 3.1step 4.1step 1.7step 6.1L1discharge-induction

Remarks

  • What "does not depend on the bracketing" means here, exactly. The library introduces no formal syntax of bracketed expressions, so the claim is made in the equivalent working form of claim 2: any way of cutting the list into consecutive blocks, multiplying each block out, and multiplying the block values in order returns the same element. Every bracketing of g0g1gn1g_0 g_1 \cdots g_{n-1} is obtained by iterating that cut, so claim 2 is what is used whenever one drops brackets in a long product.

  • The order of the factors is a separate question from the bracketing. Claim 2 holds in any monoid and never moves a factor past another; claim 3 does move factors, and is false without commutativity. In Sym({1,2,3})\operatorname{Sym}(\{1,2,3\}) the two transpositions (12)(1\,2) and (23)(2\,3) already give τρρτ\tau\rho \ne \rho\tau (Sym(X)\operatorname{Sym}(X) is a group under composition, and it is non-abelian whenever XX has at least three distinct elements).

  • The empty product carries the induction. Both inductions start at n=0n = 0 with the value ee; N\mathbb{N} contains 00, so this is a real base case and not a degenerate convention.

Depends on

Used by

Dependency tree · next 3 levels

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