Points on nondegenerate quadrics over a finite field #
Let F be a finite field of odd characteristic with q elements and quadratic character χ. For
a nondegenerate quadratic form Q in n variables over F with discriminant Δ, the number
N(c) of solutions of Q(x) = c depends only on n, on χ of the signed discriminant, and on
c only through χ(c) in odd rank and through whether c vanishes in even rank:
n = 2m + 1: N(c) = q^{2m} + χ((-1)^m Δ c) q^m,
n = 2m + 2: N(c) = q^{2m+1} + χ((-1)^{m+1} Δ) q^m ν(c), where ν(0) = q - 1, ν(c) = -1 for c ≠ 0.
For n = 1 this is the count 1 + χ(c / a) of the square roots of c / a, which is Mathlib's
quadraticChar_card_sqrts. In general the formulas are proved for diagonal forms
∑ wᵢ xᵢ² with all wᵢ ≠ 0, with Δ = ∏ wᵢ, by adding one variable at a time: adding the term
a t² turns the count N into c ↦ qⁿ + ∑ᵤ χ(a u) N(c - u), and the two parities alternate,
the odd-to-even step evaluating the Jacobi sum ∑ᵤ χ(u (c - u)) with
TauCeti.sum_quadraticChar_mul_sub. Since every symmetric matrix is
congruent to a diagonal one when 2 is invertible, the same formulas count the solutions of
xᵀ A x = c for a symmetric matrix A with det A ≠ 0, with Δ = det A.
These are the point counts from which the orders of the finite orthogonal groups, and with them the local densities of an integral lattice at the primes not dividing twice its determinant, are computed.
Main results #
TauCeti.card_sum_mul_sq_eq_of_card_eq_two_mul_add_one,TauCeti.card_sum_mul_sq_eq_of_card_eq_two_mul_add_two: the number of solutions of∑ wᵢ xᵢ² = cin odd and in even rank.Matrix.IsSymm.card_dotProduct_mulVec_eq_of_card_eq_two_mul_add_one,Matrix.IsSymm.card_dotProduct_mulVec_eq_of_card_eq_two_mul_add_two: the number of solutions ofxᵀ A x = cfor a nondegenerate symmetric matrixA, in odd and in even rank.
References #
- R. Lidl and H. Niederreiter, Finite Fields, Encyclopedia of Mathematics and its Applications 20, Cambridge University Press (1997), Theorems 6.26 and 6.27.
- K. Ireland and M. Rosen, A Classical Introduction to Modern Number Theory, Graduate Texts in Mathematics 84, Springer (1990), Chapter 8, §6.
Points on a diagonal quadric in odd rank. Over a finite field of odd characteristic with
q elements, if w : ι → F has nonzero entries and ι has 2m + 1 elements, then
∑ wᵢ xᵢ² = c has q^{2m} + χ((-1)^m (∏ wᵢ) c) q^m solutions.
Points on a diagonal quadric in even rank. Over a finite field of odd characteristic with
q elements, if w : ι → F has nonzero entries and ι has 2m + 2 elements, then
∑ wᵢ xᵢ² = c has q^{2m+1} + χ((-1)^{m+1} ∏ wᵢ) q^m ν(c) solutions, where ν(0) = q - 1 and
ν(c) = -1 for c ≠ 0.
Points on a nondegenerate quadric in odd rank. Over a finite field of odd characteristic
with q elements, if A is a symmetric matrix with det A ≠ 0 indexed by a type with 2m + 1
elements, then xᵀ A x = c has q^{2m} + χ((-1)^m det A · c) q^m solutions.
Points on a nondegenerate quadric in even rank. Over a finite field of odd characteristic
with q elements, if A is a symmetric matrix with det A ≠ 0 indexed by a type with 2m + 2
elements, then xᵀ A x = c has q^{2m+1} + χ((-1)^{m+1} det A) q^m ν(c) solutions, where
ν(0) = q - 1 and ν(c) = -1 for c ≠ 0.