Alphabeta Math
TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-16
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 quadratic-residue lemma

Statement

Let p be an odd prime and let p∤a. Let N(a,p) be the number of least positive residues of

a,2a,…,p−12a

modulo p that exceed p/2. Then

(ap)=(−1)N(a,p).

Facts & Assumptions

Given: An odd prime p, an integer a with p∤a, and m=(p−1)/2.

[L1]

There are unique signs εj∈{±1} and a permutation r1,…,rm of 1,…,m with aj≡εjrj(modp) for 1≤j≤m (Multiplication by a with p∤a permutes an odd prime's signed half-system up to sign).

[L3]

A class [u]p is a unit exactly when gcd⁡(u,p)=1 (For n≥1, [a]n is a unit if and only if gcd⁡(a,n)=1).

[L4]

Euler's criterion gives (a/p)≡a(p−1)/2(modp) (Euler's criterion: (a/p)≡a(p−1)/2(modp)).

[L7]

For an odd prime p, (ap)=1 when p∤a and a is a quadratic residue modulo p, and (ap)=−1 when p∤a and a is a quadratic nonresidue modulo p (The Legendre symbol, including its zero value).

Proof

technique · direct
1.1L1given

Use [L1] to write aj≡εjrj(modp) for 1≤j≤m. A sign is negative exactly when the least positive residue of aj exceeds p/2, so exactly N(a,p) of the signs are negative.

2.1L2L5step 1.1algebra

Multiply the m congruences using [L2] and [L5]. Since the rj permute 1,…,m, this gives amm!≡(−1)N(a,p)m!(modp).

3.1L3L5L6step 2.1

Every factor j satisfies 1≤j≤m<p, so p∤j and [L6] gives gcd⁡(j,p)=1; then [L3] makes each [j]p a unit, so their product [m!]p is a unit and can be cancelled from step 2.1. Hence am≡(−1)N(a,p)(modp).

4.1L4L7step 3.1givenalgebra∎

By [L4], (a/p)≡am≡(−1)N(a,p)(modp). Since p∤a, [L7] gives (a/p)∈{1,−1}, and (−1)N(a,p) is likewise 1 or −1; two such integers differing by a multiple of the odd prime p differ by at most 2<p, so the congruence is equality in Z.

Depends on

Used by

Dependency tree · two levels

42 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