Alphabeta Math
LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26
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.

For every prime p the congruence x2+y2+1≡0(modp) is solvable

Facts & Assumptions

Given: A prime p.

[F1]

An integer p is prime when p>1 and d∣p with d>0 force d=1 or d=p; in words, p exceeds 1, and its only positive divisors are 1 and p (Prime and composite integers: p is prime when p>1 and its only positive divisors are 1 and p).

[F2]

For a,b,n∈Z, a≡b(modn) means n∣(a−b) (Congruence modulo an integer: a≡b(modn) when n∣(a−b), including the moduli 0 and 1).

[F3]

For d,a∈Z, d∣a means a=dq for some q∈Z (Divisibility in Z: d∣a when a=dq for some integer q).

[L1]

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) (Every nonzero residue modulo an odd prime is a sum of two squares).

[L2]

The group of units of the commutative monoid (Z,⋅,1) is {1,−1}; equivalently, for u∈Z the condition u∣1 holds exactly when u=1 or u=−1 ((Z,⋅,1) is a commutative monoid whose group of units is {1,−1}; equivalently u∣1 holds exactly for u=1 and u=−1).

[L3]

If a≡a′(modn) and b≡b′(modn), then a+b≡a′+b′(modn), a−b≡a′−b′(modn) and ab≡a′b′(modn) (Congruent integers may be added, subtracted and multiplied: representative changes preserve both arithmetic operations).

Proof

technique · cases
1.1givenF1algebra

If 2∣p then 2 is a positive divisor of p, so [F1] forces 2=1 or 2=p, and 2≠1 leaves p=2; hence either p=2 or p is odd, and these two cases exhaust the primes.

1.2assume-case twoF2algebra

In the case p=2, take x=1 and y=0: then x2+y2+1=1+0+1=2 and 2∣(2−0), so x2+y2+1≡0(mod2).

1.3assume-case oddF1F3L2algebra

In the case p odd, p∤−1: otherwise −1=pq for some integer q by [F3], hence 1=p(−q), so p∣1 and [L2] gives p=1 or p=−1, both contradicting p>1 from [F1].

2.1step 1.3L1

For the odd case, apply [L1] to the odd prime p with a=−1, whose hypothesis p∤−1 is step 1.3: there are integers x,y with x2+y2≡−1(modp).

3.1step 2.1L3F2algebra

For the odd case, 1≡1(modp) since p∣0, so adding this to step 2.1 through [L3] gives x2+y2+1≡−1+1=0(modp).

4.1step 1.2step 3.1cases-exhaustive∎

Both cases produce integers x,y with x2+y2+1≡0(modp), and by step 1.1 no prime falls outside them.

Remarks

Where the odd case comes from. For odd p the work is done by Every nonzero residue modulo an odd prime is a sum of two squares at a=−1: the set Q of square classes modulo p, the zero class included, and the set of classes −1−z for z∈Q are two subsets of Z/p with (p+1)/2 elements each, so they meet, and a common value gives x2≡−1−y2. The hypothesis p∤a of that proposition is what step 1.3 discharges, by an argument that does not use oddness; oddness is needed only to make the proposition applicable at all.

Why p=2 is separate. The cited proposition is stated for odd primes, so it says nothing at p=2; the pair (1,0) settles that case by computation rather than by weakening the proposition's hypothesis.

Depends on

Used by

Dependency tree · two levels

34 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