Alphabeta Math
LemmaStatement: AI-adaptedProof: AI-adaptedSession-authored (Fable 5 assisted)precheck 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 m1 and let aZ. Then there is exactly one integer r with

ar(modm)andm<2rm,

that is, exactly one integer r satisfying ar(modm) and m<2rm, and consequently 4r2m2. Call this r the least absolute remainder of a modulo m.

Facts & Assumptions

Given: An integer m with m1 and an integer a.

[F1]

For a,b,nZ, ab(modn) means n(ab) (Congruence modulo an integer: ab(modn) when n(ab), including the moduli 0 and 1).

[F2]

For d,aZ, da means a=dq for some qZ (Divisibility in Z: da when a=dq for some integer q).

[L1]

For a,bZ with b0 there is exactly one pair (q,r) of integers with a=qb+r and 0r<b; moreover ba holds exactly when r=0 (Division with remainder for any nonzero divisor: for aZ and b0 there are unique q,rZ with a=qb+r and 0r<b).

Proof

technique · direct
1.1

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

givenL1algebra
2.1

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

step 1.1construct
3.1

In either branch ar is an integer multiple of m, since ar0=qm and a(r0m)=(q+1)m; hence m(ar) and ar(modm).

step 2.1F1F2algebra
3.2

In either branch m<2rm: the first branch gives 02r0m from r00 and its own condition, while the second has 2r0>m and 2r0<2m, so 2r=2r02m satisfies m<2r<0.

step 2.1algebra
4.1

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

step 3.2algebra
4.2

If an integer r also satisfies ar(modm) and m<2rm, then ar=mq1 and ar=mq2 for integers q1,q2 by [F1] and [F2], so rr=m(q2q1) and m(rr); adding m<2rm to m2r<m gives 2m<2(rr)<2m, so rr<m, and were rr0 then [L2] would give m=mrr<m; hence r=r.

step 3.2F1F2L2algebra
5.1

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

step 3.1step 3.2step 4.1step 4.2

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 tm are congruent modulo m with t=tm, and the convention keeps t. Without the half-open choice both values would satisfy 2rm and the uniqueness clause would be false as stated.

The bound is stated in integers. Writing 4r2m2 rather than rm/2 avoids introducing a quotient that need not be an integer, and it is the form the estimates in Some multiple pm with 1m<p is a sum of four squares and The centred residue quadruple of pm=a2+b2+c2+d2 has norm mn with 1n<m use. The inequality 4r2m2 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