Alphabeta Math
DefinitionDefinition: AI-adaptedProof: Not applicableSession-authored (Fable 5 assisted)audited 2026-08-26
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.

Cyclic shifts of an integer word and its periodic partial-sum function

Definition

Throughout, m is a natural number with m1, and a word of length m over a set X is a function a from {0,1,,m1} to X, written a=a0a1am1 (Finite words, contiguous factors, avoidance and proper-prefix states).

Remainders. For every jZ there is exactly one pair (q,r) of integers with j=qm+r and 0r<m (Division with remainder for any nonzero divisor: for aZ and b0 there are unique q,rZ with a=qb+r and 0r<b, whose bound 0r<m is 0r<m here because m1, The absolute value a of an integer). Write jmodm:=r for that remainder, so 0jmodm<m for every integer j, including negative j.

Cyclic shifts. For jZ the shift σja of a word a of length m over X is the word of length m over X given by

(σja)i:=a(i+j)modm(0i<m).

Since (i+j)modm lies in {0,,m1} this is again a word of length m, and σja begins at the position jmodm of a.

Weight. Let now a be a word of length m of integers (The integers as equivalence classes of pairs of naturals). Its weight is

a:=i<mai,

the finite sum in the commutative monoid (Z,+,0) (The integers form a commutative ring, Semigroup and monoid), that is the finite product of The product g0g1gn1 of a finite list in a monoid, by recursion, with the empty product (n=0) equal to the identity written additively, whose two clauses read i<0ai=0 and i<r+1ai=i<rai+ar.

The periodic partial-sum function. Define Sa:ZZ by

Sa(j):=qa+i<raiwhere j=qm+r, 0r<m.

This is well defined because the pair (q,r) is unique. Defining Sa on all of Z by a closed formula, rather than by extending a one-sided sequence, is what makes the statements below about all integers j available at once.

Three identities, proved here because everything below uses them.

(a) On the first period Sa is the ordinary partial sum. For 0jm one has Sa(j)=i<jai. For j<m this is the definition with q=0 and r=j; for j=m it is the definition with q=1 and r=0, giving Sa(m)=a=i<mai. In particular Sa(0)=0.

(b) Quasiperiodicity. Sa(j+m)=Sa(j)+a for every jZ: if j=qm+r with 0r<m then j+m=(q+1)m+r with the same r, so the two values differ by exactly one copy of a.

(c) The one-step difference. Sa(j)Sa(j1)=a(j1)modm for every jZ. Write j1=qm+r with 0r<m, so (j1)modm=r and Sa(j1)=qa+i<rai. If r+1<m then j=qm+(r+1), so Sa(j)=qa+i<r+1ai and the difference is ar by the second clause of the finite sum. If r+1=m then j=(q+1)m+0, so Sa(j)=(q+1)a and the difference is ai<m1ai, which is am1=ar by the same clause applied at r=m1.

Remarks

  • The shift index is a position, not a rotation count in the other direction. σja reads a starting at position jmodm, so σ1a drops the first letter of a and appends it at the end. The sources cut necklaces at both ends and a page that mixes the two conventions gets the correspondences of the cycle lemma pointing the wrong way; the convention here is fixed once, in this definition, and is restated where it is used.

  • The weight is an integer and may be negative or zero. Nothing in this definition constrains the letters. The hypotheses ai1 and a1 that the cycle lemma needs are stated in the results that use them, not built into the objects.

Depends on

Used by

Dependency tree · two levels

30 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources