Alphabeta Math
DefinitionDefinition: AI-adaptedProof: Not applicableaudited 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 m≥1, and a word of length m over a set X is a function a from {0,1,…,m−1} to X, written a=a0a1⋯am−1 (Finite words, contiguous factors, avoidance and proper-prefix states).

Remainders. For every j∈Z there is exactly one pair (q,r) of integers with j=qm+r and 0≤r<m (Division with remainder for any nonzero divisor: for a∈Z and b≠0 there are unique q,r∈Z with a=qb+r and 0≤r<∣b∣, whose bound 0≤r<∣m∣ is 0≤r<m here because m≥1, The absolute value ∣a∣ of an integer). Write j mod m:=r for that remainder, so 0≤j mod m<m for every integer j, including negative j.

Cyclic shifts. For j∈Z 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) mod m(0≤i<m).

Since (i+j) mod m lies in {0,…,m−1} this is again a word of length m, and σja begins at the position j mod m 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 g0g1⋯gn−1 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:Z→Z by

Sa(j):=q ∥a∥+∑i<raiwhere j=qm+r, 0≤r<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 0≤j≤m 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 j∈Z: if j=qm+r with 0≤r<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(j−1)=a(j−1) mod m for every j∈Z. Write j−1=qm+r with 0≤r<m, so (j−1) mod m=r and Sa(j−1)=q∥a∥+∑i<rai. If r+1<m then j=qm+(r+1), so Sa(j)=q∥a∥+∑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 ∥a∥−∑i<m−1ai, which is am−1=ar by the same clause applied at r=m−1.

Remarks

  • The shift index is a position, not a rotation count in the other direction. σja reads a starting at position j mod m, 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 ai≤1 and ∥a∥≥1 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