Alphabeta Math
PropositionStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + claude-opus-5[1m])audited 2026-08-24
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.

Every nonzero residue modulo an odd prime is a sum of two squares

Statement

Let p be an odd prime and let a∈Z with p∤a. Then there are integers x,y such that

x2+y2≡a(modp).

Facts & Assumptions

Given: An odd prime p and a nonzero class [a]∈Z/p.

[L1]

For an odd prime p, exactly (p−1)/2 nonzero classes are quadratic residues modulo p (An odd prime has (p−1)/2 nonzero quadratic residues and as many nonresidues).

[L4]

A subset of a finite set is finite and has cardinality at most that of the ambient set (A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A).

[L5]

For every n∈N, (Z/n,+,[0]n) is an abelian group, and multiplication distributes over addition on both sides (For every natural n, (Z/n,+) is an abelian group, multiplication is a commutative monoid operation, and both distributive laws hold).

Proof

technique · contradiction
1.1givenL1algebra

Let Q be the set of all square classes in Z/p, including zero. By [L1], ∣Q∣=(p+1)/2.

2.1step 1.1L5algebraconstruct

Translation and negation are bijections of the additive group, so a−Q:={a−z:z∈Q} also has (p+1)/2 elements.

3.1step 1.1step 2.1L3assume-contraalgebra

Suppose, for contradiction, that Q and a−Q are disjoint. Then [L3] gives ∣Q∪(a−Q)∣=(p+1)/2+(p+1)/2=p+1.

4.1step 3.1L2L4algebra

But Q∪(a−Q)⊆Z/p, so [L2] and [L4] give ∣Q∪(a−Q)∣≤p, contradicting step 3.1.

5.1step 4.1L5choosealgebradischarge-contradiction∎

Choose z∈Q∩(a−Q). Write z=[x2] and z=[a−y2] for integers x,y. Then [x2+y2]=[a] by [L5], which is the required congruence.

Depends on

Used by

Dependency tree · two levels

39 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