Alphabeta Math
ExampleConstruction: Literature-sourcedVerification: AI-adaptedprecheck passjudge pass (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.

Odd primes congruent to 1 or 3 modulo 8 are represented by x2+2y2

Example

An odd prime p is represented by x2+2y2 if and only if

p≡1(mod8)orp≡3(mod8).

Facts & Assumptions

Given: An odd prime p.

[L1]

The unique reduced primitive form of discriminant −8 is (1,0,2), so every primitive positive-definite form of discriminant −8 is properly equivalent to x2+2y2 (The reduced primitive forms of discriminant −8).

[L2]
[L3]

An integral binary quadratic form is positive definite exactly when its leading coefficient is positive and its discriminant is negative (An integral binary quadratic form is positive definite exactly when its leading coefficient is positive and its discriminant is negative).

[L4]

For an odd prime p, (−1p)=1 exactly when p≡1(mod4), and (−1p)=−1 exactly when p≡3(mod4) (First supplement: (−1/p)=(−1)(p−1)/2).

[L5]

For an odd prime p, (2p)=1 exactly when p≡1 or 7(mod8), and (2p)=−1 exactly when p≡3 or 5(mod8) (Second supplement: (2/p)=(−1)(p2−1)/8).

[L6]

For every odd prime p and integers u,v, (uvp)=(up)(vp) (The Legendre symbol is multiplicative for all integer numerators).

[L7]

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

Verification

technique · direct
1.1givenalgebra

If p=x2+2y2, then reducing modulo 8 shows x2≡1(mod8) and 2y2≡0 or 2(mod8), because squares modulo 8 are 0,1,4 and p is odd. Hence p≡1 or 3(mod8).

1.2L4L5L6L7givenalgebra

Conversely, suppose p≡1 or 3(mod8). Then [L4] and [L5] give (−1p)(2p)=1, so [L6] yields (−2p)=1. By [L7], there is an integer t with t2≡−2(modp).

2.1L1L2L3step 1.2givenconstructalgebra

Set c=(t2+2)/p, which is an integer by step 1.2, and define f=(p,2t,c). Then Δ(f)=(2t)2−4pc=4t2−4(t2+2)=−8, and f(1,0)=p, so f represents p. If a divisor d of p, 2t, and c were greater than 1, then d=p because p is prime; but p∣2t would force p∣t, hence p∣t2+2, so p∣2, impossible for an odd prime. Thus f is primitive. Since its leading coefficient is p>0 and its discriminant is −8<0, [L3] makes f positive definite. Therefore [L1] shows that f is properly equivalent to x2+2y2, and then [L2] shows that x2+2y2 represents p.

3.1step 1.1step 2.1∎

Steps 1.1 and 2.1 prove the claimed criterion.

Depends on

Used by

Nothing in the library uses this result yet.

Dependency tree · two levels

23 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