- 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, building on the definition of a positive element of Fq× as a nonzero square due to Cooper–Hanna–Whitlatch (2608.17702). Over R and C, the classical characterizations of positive definiteness — positivity of leading principal minors, Cholesky factorization A=LL∗, the Gram matrix property A=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 a∈Fq× 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 q≡3(mod4) or q 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 y∈Fq+ with Fq×0 equals Fq×1 when Fq×2 and Fq×3 when Fq×4; 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×5 with lower triangular Fq×6 having positive diagonal entries (a finite-field Cholesky condition).
- Type 3: Fq×7 for some invertible Fq×8 (Gram matrix).
- Type 4: orthogonally similar to a diagonal matrix with positive diagonal entries.
For type 1, the count is Fq×9 for odd R0 and R1 for even R2 (2608.17702). For type 2, the classes coincide on definite fields; over indefinite fields the authors prove a new formula, R3, obtained by showing that two lower triangular matrices with positive diagonal yield the same product R4 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 R5 to arbitrary subgroups, the authors express R6 as a sum over compositions of R7 of orbit sizes under orthogonal conjugation, yielding the generating-function identity
R8
where R9. 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 C0 there exists C1 such that C2 is C3 and all larger principal submatrices are singular. The authors first establish, as an independent contribution valid over C4, 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 C5 whose solution is C6 for odd C7. Type 2 (Cholesky with nonnegative diagonal) admits only upper bounds, e.g. C8 for C9, derived from the A=LL∗0-binomial theorem together with sign-change identifications. On definite fields the inclusion reverses relative to the definite case: A=LL∗1.
For type 3, the authors complete MacWilliams' program by proving that when A=LL∗2 is odd and A=LL∗3, every symmetric matrix of rank A=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=LL∗5 with A=LL∗6 negative still factors as A=LL∗7. Thus A=LL∗8 for A=LL∗9, where A=B∗B0 counts symmetric matrices of rank A=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=B∗B2.
Type 5 (all principal minors nonnegative) is trivial in characteristic two — every symmetric matrix qualifies — but subtle for odd A=B∗B3. The authors compute A=B∗B4 exactly, distinguishing A=B∗B5 and A=B∗B6, and prove that for A=B∗B7, A=B∗B8, so all five notions nest appropriately in that case; for A=B∗B9 there is no inclusion between a∈Fq×0 and types 1 or 2. For a∈Fq×1 no closed form is known; instead, the set a∈Fq×2 is decomposed into a∈Fq×3 pieces according to which principal minors vanish versus are positive, each piece realized as a projection of an algebraic set (with auxiliary variables a∈Fq×4 satisfying a∈Fq×5, fibers of size a∈Fq×6). Applying Dwork's rationality theorem yields a structural formula: the count over a∈Fq×7 is a∈Fq×8 for algebraic numbers a∈Fq×9. Based on this and computations, the authors conjecture a quasipolynomial behavior: degree-q≡3(mod4)0 rational polynomials q≡3(mod4)1 with the count equal to q≡3(mod4)2 when q≡3(mod4)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 q≡3(mod4)4. Exact formulas follow for small orders: for instance, q≡3(mod4)5 for even q≡3(mod4)6 and q≡3(mod4)7 in characteristic two. For odd q≡3(mod4)8, SageMath computations show q≡3(mod4)9 for q0, with the first nonzero values at q1.
Two structural results constrain existence. First, when q2, any nontrivial row or column permutation destroys total positivity, since the relevant q3 minors become negative. Second, a monotonicity argument on ordered subsets of positive elements yields necessary conditions: if an q4 totally positive matrix exists with q5, then q6 for even q7, q8 for q9, and y∈Fq+0 for y∈Fq+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 y∈Fq+2, Dwork's theorem gives structural formulas for the count over extension fields y∈Fq+3 — of the form y∈Fq+4 for even y∈Fq+5, and y∈Fq+6 times such a sum for odd y∈Fq+7 — supporting a conjectured quasipolynomial formula with polynomials of degree y∈Fq+8.
Limitations and open questions
Several gaps are acknowledged explicitly. No closed forms exist for y∈Fq+9 (only bounds), for Fq×00 with Fq×01 over odd Fq×02, or for Fq×03 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×04 and Fq×05 but neither Fq×06 nor Fq×07. The growth rate of the minimal field size admitting an Fq×08 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.