Alphabeta Math
LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passaudited 2026-08-17
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.

Gauss's lemma as a lower-half lattice-point count

Statement

Let p and q be distinct odd primes. Put Sp,q:=∣{(x,y)∈Z2:1≤x≤(p−1)/2, 0<py<qx}∣.

Then (qp)=(−1)Sp,q.

Thus Gauss's sign count (Gauss's quadratic-residue lemma) can be read as the parity of a finite set of lattice points, without introducing floor notation.

Facts & Assumptions

Given: Distinct odd primes p,q, and m=(p−1)/2.

[L1]

If N(q,p) is the number of least positive residues of q,2q,…,mq modulo p that exceed p/2, then (qp)=(−1)N(q,p) (Gauss's quadratic-residue lemma).

[L2]

For every integer A and positive integer p, there are unique integers t,ρ such that A=pt+ρ and 0≤ρ<p (Division with remainder in Z: for a∈Z and b>0 there are unique q,r∈Z with a=qb+r and 0≤r<b).

[L3]

For each 1≤x≤m, there are unique εx∈{1,−1} and ux∈{1,…,m} such that qx≡εxux(modp), and u1,…,um is a permutation of 1,…,m (Multiplication by a with p∤a permutes an odd prime's signed half-system up to sign).

Proof

technique · direct
1.1L2givenalgebra

For each 1≤x≤m, [L2] gives qx=ptx+ρx with 0≤ρx<p; since p∤qx, one has 0<ρx<p. The positive integers y satisfying py<qx=ptx+ρx are exactly 1,…,tx, so Sp,q=∑x=1mtx.

2.1step 1.1L1L3algebra∎

In the notation of [L3], ρx=ux when εx=1 and ρx=p−ux when εx=−1; the negative signs are exactly the residues counted by N(q,p). Summing the equations of step 1.1 and reducing modulo 2 gives ∑xx≡Sp,q+∑xρx(mod2), because p and q are odd. Also ∑xρx≡∑xux+N(q,p)(mod2), while the permutation in [L3] gives ∑xux=∑xx. Hence Sp,q≡N(q,p)(mod2), and [L1] yields (qp)=(−1)Sp,q.

Depends on

Used by

Dependency tree · two levels

24 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