Alphabeta Math
TheoremStatement: Literature-sourcedProof: AI-adaptedSession-authored (Fable 5 assisted)precheck 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 pa. Let N(a,p) be the number of least positive residues of

a,2a,,p12a

modulo p that exceed p/2. Then

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

Facts & Assumptions

Given: An odd prime p, an integer a with pa, and m=(p1)/2.

[L1]

There are unique signs εj{±1} and a permutation r1,,rm of 1,,m with ajεjrj(modp) for 1jm (Multiplication by a with pa 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 n1, [a]n is a unit if and only if gcd(a,n)=1).

[L4]

Euler's criterion gives (a/p)a(p1)/2(modp) (Euler's criterion: (a/p)a(p1)/2(modp)).

[L7]

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

Proof

technique · direct
1.1

Use [L1] to write ajεjrj(modp) for 1jm. 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.

L1given
2.1

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

L2L5step 1.1algebra
3.1

Every factor j satisfies 1jm<p, so pj 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).

L3L5L6step 2.1
4.1

By [L4], (a/p)am(1)N(a,p)(modp). Since pa, [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.

L4L7step 3.1givenalgebra

Depends on

Used by

Dependency tree · next 3 levels

Direct dependencies and their dependencies through the next three levels: 106 results over 28 levels. An arrow runs from a result to what uses it, and this result sits at the bottom with a heavier outline. Click the chart to enlarge it.

Sources