Alphabeta Math
LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)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.

If ∥a∥=1 then j↦#{r:0≤r<m, Sa(j+r)≤Sa(j)} is a bijection from {0,…,m−1} onto {1,…,m}

Statement

Let m≥1 and let a be a word of length m of integers with ∥a∥=1 (Cyclic shifts of an integer word and its periodic partial-sum function). For j∈Z put

X(j):=∣{ r∈N:0≤r<m, Sa(j+r)≤Sa(j) }∣,

the number of the m partial sums of the shift σja, counted from r=0, at which Sa has not risen strictly above its value at j. Then

X:{0,1,…,m−1}⟶{1,2,…,m}

is a bijection (Injection, surjection, bijection). In particular each of the values 1,2,…,m is realised by exactly one j in {0,…,m−1}.

Facts & Assumptions

Given: a natural number m≥1 and a word a of length m of integers with ∥a∥=1.

[F1]

Sa(j+m)=Sa(j)+∥a∥ for every j∈Z; Sa(0)=0; and j mod m is the unique r with j=qm+r and 0≤r<m (Cyclic shifts of an integer word and its periodic partial-sum function).

[L1]

For d,x∈Z, d divides x when x=dq for some q∈Z (Divisibility in Z: d∣a when a=dq for some integer q).

[L2]

For x,b∈Z with b≠0 there is exactly one pair (q,r) of integers with x=qb+r and 0≤r<∣b∣ (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∣).

[L3]

Let A be a finite set and B⊆A; then B is finite, ∣B∣≤∣A∣, and ∣B∣=∣A∣ if and only if B=A (A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A, clauses 1, 2 and 3).

[L4]

If m′<n′ then there is no injection from n′ to m′ (The pigeonhole principle on N, clause 2).

[L5]

∣n∣=n for a natural number n, and a bijection transports finiteness and cardinality (The cardinality ∣A∣ of a finite set).

[L6]

A function is a bijection when it is both injective and surjective (Injection, surjection, bijection).

Proof

technique · direct
1.1F1algebra

The integer key T(i):=m Sa(i)−i is m-periodic: T(i+m)=m(Sa(i)+1)−(i+m)=m Sa(i)−i=T(i), using ∥a∥=1 in the quasiperiodicity clause of [F1].

1.2L1L2algebra

T is injective on {0,…,m−1}: if T(i)=T(j) with i,j in that range, then m(Sa(i)−Sa(j))=i−j, so m divides i−j while −m<i−j<m, and writing i−j=mq forces q=0 by [L2], since q≥1 would give i−j≥m and q≤−1 would give i−j≤−m.

1.3F1algebra

For every j∈Z and every r with 0≤r<m: Sa(j+r)≤Sa(j) if and only if T(j+r)≤T(j). Put d:=Sa(j+r)−Sa(j), so T(j+r)−T(j)=md−r. If d≤0 then md−r≤−r≤0; if d≥1 then md−r≥m−r≥1, and this is the only place the hypothesis r<m is used. So the sign of md−r decides, and the two conditions agree.

2.1F1L5step 1.1step 1.3

For 0≤j<m one has X(j)=∣{ i∈N:i<m, T(i)≤T(j) }∣. Indeed r↦(j+r) mod m is a bijection of {0,…,m−1} onto itself, with inverse i↦(i−j) mod m; by step 1.1 and the periodicity of T one has T((j+r) mod m)=T(j+r), and T(j) is the value at j itself since j mod m=j in this range; so step 1.3 identifies the set counted by X(j) with the displayed set through that bijection, and [L5] preserves the count.

3.1L3step 1.2step 2.1

X is injective on {0,…,m−1}. Let i≠j lie in that range; by step 1.2 the values T(i) and T(j) differ, say T(i)<T(j). Then { l<m:T(l)≤T(i) } is contained in { l<m:T(l)≤T(j) } and does not contain j, which the second set does; so it is a proper subset of a finite set and [L3] gives a strictly smaller cardinality, that is X(i)<X(j) by step 2.1.

3.2L3L5step 2.1

X takes values in {1,…,m}: the index r=0 always satisfies Sa(j)≤Sa(j), so the counted set is nonempty and X(j)≥1; and it is a subset of an m-element set, so X(j)≤m by [L3] and [L5].

4.1L4L5L6step 3.1step 3.2∎

Both {0,…,m−1} and {1,…,m} have exactly m elements. If X omitted a value of {1,…,m}, then by steps 3.1 and 3.2 it would be an injection from an m-element set into a set of at most m−1 elements, which [L4] forbids; so X is surjective as well as injective and is a bijection by [L6].

Remarks

  • This is not the cycle lemma. The cycle lemma counts the shifts all of whose partial sums are positive, and for weight 1 that is exactly one shift. This lemma sorts every shift, by how many of its partial sums fail to rise above the starting value, and finds that the m shifts realise the m possible counts once each. The shift with count 1 is the one the cycle lemma singles out.

  • Why an integer key and not a rational one. The source perturbs Sa by i/m to break ties; multiplying through by m gives T(i)=m Sa(i)−i, which does the same work without leaving Z. The tie-breaking is exactly the injectivity of step 1.2.

Depends on

Used by

Dependency tree · two levels

34 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