Alphabeta Math
PropositionStatement: AI-adaptedProof: AI-adaptedSession-authored (Fable 5 assisted)precheck passaudited 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.

Quadratic residuosity is representative-independent and the residues are the image of squaring

Statement

Let n2. Whether an integer a with gcd(a,n)=1 is a quadratic residue modulo n depends only on its class [a]n. Moreover, the quadratic-residue classes are exactly

{u2:u(Z/n)×},

the image of squaring on the unit group.

Facts & Assumptions

Given: An integer n2 and integers representing unit classes modulo n.

[L1]

For gcd(a,n)=1, the integer a is a quadratic residue modulo n exactly when some integer x satisfies x2a(modn) (Quadratic residues and nonresidues modulo an integer).

[L2]

Two classes in Z/n are equal exactly when their representatives are congruent modulo n (The congruence class [a]n and the quotient set Z/n).

[L3]

The class [a]n is a unit exactly when gcd(a,n)=1, and this condition depends only on the class (For n1, [a]n is a unit if and only if gcd(a,n)=1).

[L4]

A class uZ/n is a unit exactly when some vZ/n satisfies uv=[1]n (The unit group (Z/n)× and Euler's totient φ(n)=(Z/n)× for n1).

Proof

technique · direct
1.1

If ab(modn) and x2a(modn), then [x]n2=[a]n=[b]n, so x2b(modn); reversing the roles of a and b gives the converse.

L1L2given
2.1

By [L3], congruent representatives are simultaneously units. If [x]n2=[a]n and [a]n is a unit with inverse v, then [x]n([x]nv)=[x]n2v=[1]n, so [x]n is a unit. Thus every quadratic-residue class lies in the image of squaring on (Z/n)×.

L3L4L5step 1.1
3.1

Conversely, let u=[x]n be a unit with u2=[a]n. By [L4] there is v with uv=[1]n, so u2v2=[1]n by [L5] and [a]n=u2 is itself a unit; [L3] then gives gcd(a,n)=1, which is the hypothesis [L1] requires. Since [x]n2=[a]n, [L2] gives x2a(modn), so [L1] makes a a quadratic residue. Hence the quadratic-residue classes are exactly the displayed image.

L1L2L3L4L5step 1.1step 2.1

Depends on

Used by

Dependency tree · next 3 levels

Direct dependencies and their dependencies through the next three levels: 75 results over 20 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