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 be an odd prime and let . Let be the number of least positive residues of
modulo that exceed . Then
Facts & Assumptions
Given: An odd prime , an integer with , and .
There are unique signs and a permutation of with for (Multiplication by with permutes an odd prime's signed half-system up to sign).
A finite indexed family in a monoid has a recursively defined product (The product of a finite list in a monoid, by recursion, with the empty product () equal to the identity).
A class is a unit exactly when (For , is a unit if and only if ).
Euler's criterion gives (Euler's criterion: ).
Multiplication on is associative and commutative with identity (For every natural , is an abelian group, multiplication is a commutative monoid operation, and both distributive laws hold).
If is prime and , then (For a prime and any integer , is when and otherwise; so makes and coprime).
For an odd prime , when and is a quadratic residue modulo , and when and is a quadratic nonresidue modulo (The Legendre symbol, including its zero value).
Proof
Use [L1] to write for . A sign is negative exactly when the least positive residue of exceeds , so exactly of the signs are negative.
Multiply the congruences using [L2] and [L5]. Since the permute , this gives .
Every factor satisfies , so and [L6] gives ; then [L3] makes each a unit, so their product is a unit and can be cancelled from step 2.1. Hence .
By [L4], . Since , [L7] gives , and is likewise or ; two such integers differing by a multiple of the odd prime differ by at most , so the congruence is equality in .
Depends on
- Multiplication by $a$ with $p\nmid a$ permutes an odd prime's signed half-system up to sign
- Euler's criterion: $(a/p)\equiv a^{(p-1)/2}\pmod p$
- The product $g_0 g_1 \cdots g_{n-1}$ of a finite list in a monoid, by recursion, with the empty product ($n = 0$) equal to the identity
- For every natural $n$, $(\mathbb{Z}/n,+)$ is an abelian group, multiplication is a commutative monoid operation, and both distributive laws hold
- For $n\ge1$, $[a]_n$ is a unit if and only if $\gcd(a,n)=1$
- For a prime $p$ and any integer $a$, $\gcd(p,a)$ is $p$ when $p \mid a$ and $1$ otherwise; so $p \nmid a$ makes $p$ and $a$ coprime
- The Legendre symbol, including its zero value
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
- H. Hackman, Elementary Number Theory, Chapter D, Section D.IV (standard reference, not scraped)
- W. Stein, Elementary Number Theory, Lemma 4.3.1 (standard reference, not scraped)