Alphabeta Math
LemmaStatement: AI-adaptedProof: 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.

The least absolute remainder modulo a positive integer

Statement

Let m be an integer with m≥1 and let a∈Z. Then there is exactly one integer r with

a≡r(modm)and−m<2r≤m,

that is, exactly one integer r satisfying a≡r(modm) and −m<2r≤m, and consequently 4r2≤m2. Call this r the least absolute remainder of a modulo m.

Facts & Assumptions

Given: An integer m with m≥1 and an integer a.

[F1]

For a,b,n∈Z, a≡b(modn) means n∣(a−b) (Congruence modulo an integer: a≡b(modn) when n∣(a−b), including the moduli 0 and 1).

[F2]

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

[L1]

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

Proof

technique · direct
1.1givenL1algebra

Since m≥1, the modulus is nonzero and ∣m∣=m, so [L1] supplies exactly one pair (q,r0) of integers with a=qm+r0 and 0≤r0<m.

2.1step 1.1construct

Define r:=r0 when 2r0≤m, and r:=r0−m otherwise; the two branches are mutually exclusive and exhaustive, so r is a well-defined integer.

3.1step 2.1F1F2algebra

In either branch a−r is an integer multiple of m, since a−r0=qm and a−(r0−m)=(q+1)m; hence m∣(a−r) and a≡r(modm).

3.2step 2.1algebra

In either branch −m<2r≤m: the first branch gives 0≤2r0≤m from r0≥0 and its own condition, while the second has 2r0>m and 2r0<2m, so 2r=2r0−2m satisfies −m<2r<0.

4.1step 3.2algebra

From −m<2r≤m it follows that ∣2r∣≤m, and squaring the inequality between nonnegative integers gives 4r2=(2r)2≤m2.

4.2step 3.2F1F2L2algebra

If an integer r′ also satisfies a≡r′(modm) and −m<2r′≤m, then a−r=mq1 and a−r′=mq2 for integers q1,q2 by [F1] and [F2], so r−r′=m(q2−q1) and m∣(r−r′); adding −m<2r≤m to −m≤−2r′<m gives −2m<2(r−r′)<2m, so ∣r−r′∣<m, and were r−r′≠0 then [L2] would give m=∣m∣≤∣r−r′∣<m; hence r=r′.

5.1step 3.1step 3.2step 4.1step 4.2∎

So r exists by steps 3.1 and 3.2, is unique by step 4.2, and satisfies 4r2≤m2 by step 4.1.

Remarks

Where the tie falls. The normalisation is deliberately half-open on the right: 2r=m is permitted and 2r=−m is not. The case ∣2r∣=m can arise only for even m, where r0 may equal the integer t with m=2t; then t and t−m are congruent modulo m with ∣t∣=∣t−m∣, and the convention keeps t. Without the half-open choice both values would satisfy ∣2r∣≤m and the uniqueness clause would be false as stated.

The bound is stated in integers. Writing 4r2≤m2 rather than ∣r∣≤m/2 avoids introducing a quotient that need not be an integer, and it is the form the estimates in Some multiple pm with 1≤m<p is a sum of four squares and The centred residue quadruple of pm=a2+b2+c2+d2 has norm mn with 1≤n<m use. The inequality 4r2≤m2 is an equality exactly when 2r=m.

Depends on

Used by

Dependency tree · two levels

16 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