Papers
Topics
Authors
Recent
Search
2000 character limit reached

Positive definite, positive semidefinite and totally positive matrices over finite fields

Published 18 Aug 2026 in math.RA and math.CO | (2608.17702v1)

Abstract: Motivated by the equivalent definitions of positive definite (resp. positive semidefinite) matrices over real and complex fields, we give four (resp. five) inequivalent definitions for these matrices over finite fields. Our starting point is the recent definition due to Cooper--Hanna--Whitlatch (RMJ. Math., 2024) of positive elements in finite fields. We also use this definition to study totally positive matrices over finite fields. For all of these cases, we give explicit enumeration formulae or give bounds. Most of our formulas are new, but we summarize results from the existing literature for completeness. For positive semidefinite matrices of type 5 and totally positive matrices, we give structural formulas using the rationality of the Weil zeta function, i.e. Dwork's theorem, and conjecture a quasipolynomial-type formula.

Summary

  • The paper shows that classical definitions of positive definiteness and semidefiniteness become distinct matrix classes over finite fields, then classifies their inclusions and derives exact counts, bounds, or generating functions for each type.
  • The authors use finite-field counting, congruence classifications, orthogonal-group actions, and Dwork’s rationality theorem to analyze difficult cases, including positive semidefinite and totally positive matrices.
  • The results establish formulas such as the type-1 positive-definite count and rank-based semidefinite counts, while identifying open problems involving quasipolynomial behavior, minimal field sizes, and unresolved inclusion relations.

The paper develops a systematic theory of positive definite, positive semidefinite, and totally positive matrices over finite fields Fq\mathbb{F}_q, building on the definition of a positive element of Fq×\mathbb{F}_q^\times as a nonzero square due to Cooper–Hanna–Whitlatch (2608.17702). Over R\mathbb{R} and C\mathbb{C}, the classical characterizations of positive definiteness — positivity of leading principal minors, Cholesky factorization A=LLA = LL^*, the Gram matrix property A=BBA = B^*B, and unitary diagonalization with positive spectrum — are all equivalent. The central observation of this work is that these equivalences collapse over finite fields: each criterion yields a distinct class of matrices, which the authors label types 1 through 4 for positive definiteness and types 1 through 5 for positive semidefiniteness. For each type they derive explicit enumeration formulas or bounds, relate the classes via Venn diagrams, and apply Dwork's rationality theorem to obtain structural formulas in the cases resisting closed-form treatment.

Positivity over finite fields

An element aFq×a \in \mathbb{F}_q^\times is positive if it is a square; in characteristic two every nonzero element is positive, while in odd characteristic exactly half are. A field is definite if every positive element has a positive square root, which holds precisely when q3(mod4)q \equiv 3 \pmod{4} or qq is even. Two elementary counting facts drive much of the paper: by a pigeonhole argument, every element of an odd-order field is a sum of two squares, and every positive element is a sum of two negative elements. The authors also prove that the number of yFq+y \in \mathbb{F}_q^+ with Fq×\mathbb{F}_q^\times0 equals Fq×\mathbb{F}_q^\times1 when Fq×\mathbb{F}_q^\times2 and Fq×\mathbb{F}_q^\times3 when Fq×\mathbb{F}_q^\times4; this count also determines the number of common neighbors of adjacent vertices in Paley graphs.

Positive definite matrices

Four inequivalent definitions are studied:

  • Type 1: all leading principal minors are positive.
  • Type 2: Fq×\mathbb{F}_q^\times5 with lower triangular Fq×\mathbb{F}_q^\times6 having positive diagonal entries (a finite-field Cholesky condition).
  • Type 3: Fq×\mathbb{F}_q^\times7 for some invertible Fq×\mathbb{F}_q^\times8 (Gram matrix).
  • Type 4: orthogonally similar to a diagonal matrix with positive diagonal entries.

For type 1, the count is Fq×\mathbb{F}_q^\times9 for odd R\mathbb{R}0 and R\mathbb{R}1 for even R\mathbb{R}2 (2608.17702). For type 2, the classes coincide on definite fields; over indefinite fields the authors prove a new formula, R\mathbb{R}3, obtained by showing that two lower triangular matrices with positive diagonal yield the same product R\mathbb{R}4 exactly when they differ by right multiplication by a sign diagonal matrix — equivalently, by a coset count via Lagrange's theorem. Type 3 counts go back to MacWilliams and Dickson, using the classification of symmetric matrices under congruence. Type 4 is new: generalizing a lemma of Kung from R\mathbb{R}5 to arbitrary subgroups, the authors express R\mathbb{R}6 as a sum over compositions of R\mathbb{R}7 of orbit sizes under orthogonal conjugation, yielding the generating-function identity

R\mathbb{R}8

where R\mathbb{R}9. The inclusion structure among the four types is worked out explicitly, with constructive witnesses for every region of the corresponding Venn diagrams. Notably, the authors point out an error in Cooper–Hanna–Whitlatch's claim that types 1, 2, and 3 coincide on definite fields: a Gram matrix built from linearly independent vectors need not have positive leading principal minors.

Positive semidefinite matrices

Five types arise here. Type 1 is defined via principal submatrices: for each C\mathbb{C}0 there exists C\mathbb{C}1 such that C\mathbb{C}2 is C\mathbb{C}3 and all larger principal submatrices are singular. The authors first establish, as an independent contribution valid over C\mathbb{C}4, a new characterization of psd matrices (condition (f) in their Theorem 2.2) via Bocher's theorem and Cauchy interlacing. They then derive a recurrence for C\mathbb{C}5 whose solution is C\mathbb{C}6 for odd C\mathbb{C}7. Type 2 (Cholesky with nonnegative diagonal) admits only upper bounds, e.g. C\mathbb{C}8 for C\mathbb{C}9, derived from the A=LLA = LL^*0-binomial theorem together with sign-change identifications. On definite fields the inclusion reverses relative to the definite case: A=LLA = LL^*1.

For type 3, the authors complete MacWilliams' program by proving that when A=LLA = LL^*2 is odd and A=LLA = LL^*3, every symmetric matrix of rank A=LLA = LL^*4 is psd of type 3 — this uses the fact that any negative element is a sum of two squares, so the "bad" congruence class A=LLA = LL^*5 with A=LLA = LL^*6 negative still factors as A=LLA = LL^*7. Thus A=LLA = LL^*8 for A=LLA = LL^*9, where A=BBA = B^*B0 counts symmetric matrices of rank A=BBA = B^*B1. Type 4 counts mirror the type-4 positive definite case with one extra zero eigenvalue allowed, giving a generating function raised to the power A=BBA = B^*B2.

Type 5 (all principal minors nonnegative) is trivial in characteristic two — every symmetric matrix qualifies — but subtle for odd A=BBA = B^*B3. The authors compute A=BBA = B^*B4 exactly, distinguishing A=BBA = B^*B5 and A=BBA = B^*B6, and prove that for A=BBA = B^*B7, A=BBA = B^*B8, so all five notions nest appropriately in that case; for A=BBA = B^*B9 there is no inclusion between aFq×a \in \mathbb{F}_q^\times0 and types 1 or 2. For aFq×a \in \mathbb{F}_q^\times1 no closed form is known; instead, the set aFq×a \in \mathbb{F}_q^\times2 is decomposed into aFq×a \in \mathbb{F}_q^\times3 pieces according to which principal minors vanish versus are positive, each piece realized as a projection of an algebraic set (with auxiliary variables aFq×a \in \mathbb{F}_q^\times4 satisfying aFq×a \in \mathbb{F}_q^\times5, fibers of size aFq×a \in \mathbb{F}_q^\times6). Applying Dwork's rationality theorem yields a structural formula: the count over aFq×a \in \mathbb{F}_q^\times7 is aFq×a \in \mathbb{F}_q^\times8 for algebraic numbers aFq×a \in \mathbb{F}_q^\times9. Based on this and computations, the authors conjecture a quasipolynomial behavior: degree-q3(mod4)q \equiv 3 \pmod{4}0 rational polynomials q3(mod4)q \equiv 3 \pmod{4}1 with the count equal to q3(mod4)q \equiv 3 \pmod{4}2 when q3(mod4)q \equiv 3 \pmod{4}3.

Totally positive matrices

A matrix is totally positive if every minor is positive. Scaling rows and columns by positive diagonals preserves total positivity, and each equivalence class contains a unique elementary totally positive matrix (first row and column all ones), giving q3(mod4)q \equiv 3 \pmod{4}4. Exact formulas follow for small orders: for instance, q3(mod4)q \equiv 3 \pmod{4}5 for even q3(mod4)q \equiv 3 \pmod{4}6 and q3(mod4)q \equiv 3 \pmod{4}7 in characteristic two. For odd q3(mod4)q \equiv 3 \pmod{4}8, SageMath computations show q3(mod4)q \equiv 3 \pmod{4}9 for qq0, with the first nonzero values at qq1.

Two structural results constrain existence. First, when qq2, any nontrivial row or column permutation destroys total positivity, since the relevant qq3 minors become negative. Second, a monotonicity argument on ordered subsets of positive elements yields necessary conditions: if an qq4 totally positive matrix exists with qq5, then qq6 for even qq7, qq8 for qq9, and yFq+y \in \mathbb{F}_q^+0 for yFq+y \in \mathbb{F}_q^+1. The authors note plainly that their proof uses only order-2 minors of a restricted form, so these bounds are likely far from optimal. As with yFq+y \in \mathbb{F}_q^+2, Dwork's theorem gives structural formulas for the count over extension fields yFq+y \in \mathbb{F}_q^+3 — of the form yFq+y \in \mathbb{F}_q^+4 for even yFq+y \in \mathbb{F}_q^+5, and yFq+y \in \mathbb{F}_q^+6 times such a sum for odd yFq+y \in \mathbb{F}_q^+7 — supporting a conjectured quasipolynomial formula with polynomials of degree yFq+y \in \mathbb{F}_q^+8.

Limitations and open questions

Several gaps are acknowledged explicitly. No closed forms exist for yFq+y \in \mathbb{F}_q^+9 (only bounds), for Fq×\mathbb{F}_q^\times00 with Fq×\mathbb{F}_q^\times01 over odd Fq×\mathbb{F}_q^\times02, or for Fq×\mathbb{F}_q^\times03 beyond small orders; the quasipolynomial conjectures remain unproven. The Venn diagrams for the psd types are presented as heuristic rather than fully verified — for example, it is unknown whether matrices exist that are both Fq×\mathbb{F}_q^\times04 and Fq×\mathbb{F}_q^\times05 but neither Fq×\mathbb{F}_q^\times06 nor Fq×\mathbb{F}_q^\times07. The growth rate of the minimal field size admitting an Fq×\mathbb{F}_q^\times08 totally positive matrix is posed as an open question, with the current bounds expected to be improvable.

Conclusion

This paper demonstrates that the classical equivalences among definitions of matrix positivity fragment over finite fields into genuinely distinct combinatorial objects, and it supplies exact enumerations for most of them. The combination of elementary finite-field counting, group actions of orthogonal groups, and arithmetic-geometric input via Dwork's theorem provides both concrete formulas and a structural framework, leaving the quasipolynomial conjectures and the minimal-field-size question as well-defined targets for further work.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.