QR ∈ coNP

Inclusion · folklore

Statement

The quadratic residuosity language is in coNP. If , non-membership is checked directly; otherwise a divisor of with Jacobi symbol certifies , and such a exists for every non-residue. No primality certificate is needed — folklore. Hence quadratic residuosity is in (QR ∈ NP) and is not -hard under Cook reductions unless — standard.

Sketch

For odd and coprime to , is a square modulo iff it is a square modulo every prime , by the Chinese remainder theorem and Hensel’s lemma; a non-residue therefore has Legendre symbol for some prime , and is a certificate. Conversely, is the product of the Legendre symbols of over the prime factors of with multiplicity, so forces for some prime , and is not a square modulo . The Jacobi symbol is computed in polynomial time by quadratic reciprocity without factoring — standard.

Notes

  • Both the language and its complement among Jacobi-symbol-one elements have perfect zero-knowledge proofs: QR ∈ SZK — GMR85.