The Hasse-Minkowski theorem says that a nondegenerate quadratic form over a number field has a nonzero isotropic vector over that field if and only if it has one over every completion. In particular, over one tests and every . For the present integral form, a rational isotropic vector can be multiplied by a common denominator to give an integer one. This is the Hasse-Minkowski principle.
Write , and . All three primes are odd and exceed three: or would make composite. The second supplementary law for quadratic reciprocity gives
Necessity at . Scale any nonzero vector over so that its coordinates lie in and at least one is a unit. Reduction of its equation modulo gives , since twelve is invertible modulo . If the Legendre symbol is , this forces . The original equation then forces , because its other two terms are divisible by . This contradicts the normalization. Thus
Sufficiency at the coefficient primes. Suppose . A nonzero solution modulo is . Its -derivative is nonzero modulo , so fixing the other two coordinates and applying the Hensel lemma lifts it to .
Since , the same Legendre symbol criterion gives . Modulo , the equation reduces to , and the vector is a simple zero in the coordinate. It lifts to . Modulo , the coefficients of and are respectively and , so is a zero with nonzero -derivative. It lifts to .
The remaining odd primes. If is odd and divides none of , the reduced ternary quadratic form is nondegenerate. An elementary finite-field argument finds a zero with : if its coefficients are , the sets
both have elements, so intersect. The resulting vector has nonzero -derivative , and the Hensel lemma lifts it. This isotropy of nondegenerate ternary quadratic forms over finite fields verifies every remaining odd completion without an extra congruence condition.
The dyadic and real places. Setting reduces the dyadic problem to
The right side is a 2-adic unit congruent to modulo eight. The unit square classes of the p-adic integers computed above show that it is a square in . This also explains the printed hint: its integer can be taken as . Over , the positive and negative coefficients make the form indefinite; for instance gives a nonzero zero.
All completions now have a nonzero isotropic vector. The Hasse-Minkowski theorem, followed by clearing denominators, proves
A strong lifting lemma. Let be a complete discrete valuation ring, with fraction field and normalized discrete valuation . A useful strong form of Hensel lemma says that for and satisfying
there is a root with
If , take . Otherwise the hypothesis ensures that . The root is unique among satisfying . In particular, a simple root of the reduction of lifts uniquely with its specified residue.
Here is a proof by Newton iteration over a valued field. Put and
Write and . Taylor expansion over shows, inductively, that the increment has valuation , that , and that
Indeed, the constant and linear terms of cancel, leaving terms of valuation at least twice that of the increment. The change in has valuation greater than , so its valuation stays . Thus all iterates lie in and form a Cauchy sequence. Completeness and continuity give a root . The later increments have strictly larger valuations than the first, proving the displayed distance formula. For uniqueness, if are in the stated ball, Taylor expansion factors
The second factor is nonzero, so two roots must coincide. This proves Hensel's lemma in the form needed here.
Odd residue characteristic. For odd , a p-adic unit is a square exactly when its reduction is a square in . Necessity follows by reduction. For sufficiency, a nonzero residue root of has derivative invertible modulo , so the Hensel lemma lifts it. The multiplicative group of a finite field is cyclic, and its subgroup of squares has index two. Therefore
Representatives are and any unit whose reduction is a quadratic nonresidue.
Residue characteristic two. An odd integer has square congruent to one modulo eight, so a square 2-adic unit must lie in . Conversely, if , take and . Then , and the strong form of Hensel lemma produces a square root. Hence
The four unit square classes of the p-adic integers have representatives .