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, is a natural number with , and a word of length over a set is a function from to , written (Finite words, contiguous factors, avoidance and proper-prefix states).
Remainders. For every there is exactly one pair of integers with and (Division with remainder for any nonzero divisor: for and there are unique with and , whose bound is here because , The absolute value of an integer). Write for that remainder, so for every integer , including negative .
Cyclic shifts. For the shift of a word of length over is the word of length over given by
Since lies in this is again a word of length , and begins at the position of .
Weight. Let now be a word of length of integers (The integers as equivalence classes of pairs of naturals). Its weight is
the finite sum in the commutative monoid (The integers form a commutative ring, Semigroup and monoid), that is the finite product of The product of a finite list in a monoid, by recursion, with the empty product () equal to the identity written additively, whose two clauses read and .
The periodic partial-sum function. Define by
This is well defined because the pair is unique. Defining on all of by a closed formula, rather than by extending a one-sided sequence, is what makes the statements below about all integers available at once.
Three identities, proved here because everything below uses them.
(a) On the first period is the ordinary partial sum. For one has . For this is the definition with and ; for it is the definition with and , giving . In particular .
(b) Quasiperiodicity. for every : if with then with the same , so the two values differ by exactly one copy of .
(c) The one-step difference. for every . Write with , so and . If then , so and the difference is by the second clause of the finite sum. If then , so and the difference is , which is by the same clause applied at .
Remarks
-
The shift index is a position, not a rotation count in the other direction. reads starting at position , so drops the first letter of 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 and that the cycle lemma needs are stated in the results that use them, not built into the objects.
Depends on
- The integers as equivalence classes of pairs of naturals
- Finite words, contiguous factors, avoidance and proper-prefix states
- Division with remainder for any nonzero divisor: for $a \in \mathbb{Z}$ and $b \ne 0$ there are unique $q, r \in \mathbb{Z}$ with $a = qb + r$ and $0 \le r < |b|$
- The product $g_0 g_1 \cdots g_{n-1}$ of a finite list in a monoid, by recursion, with the empty product ($n = 0$) equal to the identity
- Semigroup and monoid
- The integers form a commutative ring
- The absolute value $|a|$ of an integer
Used by
- The cycle lemma on the word (-1,+1,+1,-1,+1,-1,+1) Example
- Cyclic shifting is an action of ℤ/m on the words of length m over a set Lemma
- If ‖ a‖=1 then j↦#{r:0≤ r<m, Sₐ(j+r)≤ Sₐ(j)} is a bijection from {0,…,m-1} onto {1,…,m} Lemma
- If every aᵢ≤1 and ‖ a‖≥1, the strict right minima form a two-sided increasing list on which Sₐ increases by exactly 1 at each successive index Lemma
- If gcd(‖ a‖,m)=1 then the shift stabiliser of a is trivial, so its orbit has exactly m elements Lemma
- σʲa has all partial sums positive exactly when Sₐ(i)>Sₐ(j) for every i>j Lemma
- (2n+1) Cₙ=C(2n+1, n), a second derivation of the Catalan count Theorem
- The Chung–Feller theorem: for each k with 0≤ k≤ n, exactly Cₙ of the diagonal paths from (0,0) to (2n,0) have exactly 2k steps lying above level 0 Theorem
- The cycle lemma (Dvoretzky–Motzkin): if every aᵢ≤1 and ‖ a‖=k≥1, then exactly k of the m cyclic shifts of a have all partial sums positive Theorem
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
- N. Dershowitz and S. Zaks, "The Cycle Lemma and Some Applications", Europ. J. Combinatorics 11 (1990) 35–40, §1 (standard reference, not scraped)
- C. Krattenthaler, "Lattice Path Enumeration", ch. 10 of the Handbook of Enumerative Combinatorics, §10.4 (standard reference, not scraped)