arXiv:2609.07769cs.ITSep 2026

Manuscript Offprint

arXiv:2609.07769

A Note on Binary Quadratic Systems and their relation to complexity theory

Gabriele Radici, Massimiliano Sala

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Deciding whether a system of multivariate quadratic equations over F2\mathbb{F}_2 has a solution is a classical NP-complete problem, and remains so for square systems, with as many equations as variables. The hardness of this problem is one of the cornerstones of nowadays post-quantum cryptography. Let MQ0(n)\mathrm{MQ}_0(n) and MQ1(n)\mathrm{MQ}_1(n) denote the sets of square quadratic systems in nn variables having respectively no solutions and exactly one solution. ∪n≥2MQ0(n)\cup_{n\geq 2} \mathrm{MQ}_0(n) is a coNP-complete language, while ∪n≥2MQ1(n)\cup_{n\geq 2} \mathrm{MQ}_1(n) lies in DP. It is known that lim⁡n→∞∣MQ1(n)∣/∣MQ0(n)∣=1\lim_{n \to \infty} |\mathrm{MQ}_1(n)| / |\mathrm{MQ}_0(n)| = 1. Here we prove the explicit finite-nn bounds

∣MQ0(n)∣<∣MQ1(n)∣≤(1+12n−1)∣MQ0(n)∣,|\mathrm{MQ}_0(n)| < |\mathrm{MQ}_1(n)| \leq \left(1 + \frac{1}{2^n - 1}\right) |\mathrm{MQ}_0(n)|,

We find of interest that the two previous inequalities are equivalent to the existence of some injections MQ0(n)↪MQ1(n)\mathrm{MQ}_0(n) \hookrightarrow \mathrm{MQ}_1(n) (whose images omit at most a 2−n2^{-n} fraction of MQ1(n)\mathrm{MQ}_1(n)). Whether such an injection can be given explicitly, or computed or inverted in polynomial time, is open.

More generally, let QdQ_d be the space of polynomial functions (F2)n→F2(\mathbb{F}_2)^n \to \mathbb{F}_2 of degree at most dd, and let αk\alpha_k count square systems in (Qd)n(Q_d)^n having exactly kk solutions. Then

α0<α1≤(1+12n−1)α0,2≤d≤n.\alpha_0 < \alpha_1 \leq \left(1 + \frac{1}{2^n - 1}\right) \alpha_0,\qquad 2 \leq d \leq n.

The proof combines matroid and coding-theoretic methods. We interpret (F2)n(\mathbb{F}_2)^n as the ground set of the evaluation matroid of QdQ_d, express α0\alpha_0 and α1\alpha_1 through characteristic polynomials, and use a Whitney-type sign-reversing involution to show that the only terms that can push α1−α0\alpha_1 - \alpha_0 below α1/2n\alpha_1/2^n come from the elements of a matroid port. These are identified with minimal-support words of the Reed–Muller code RM(n−d−1,n)=RM(d,n)⊥\mathrm{RM}(n-d-1,n) = \mathrm{RM}(d,n)^\perp; the required estimate then follows from the MacWilliams identity, the minimum-distance bound 2d+12^{d+1}, and the even-weight structure of the code.

1 Introduction

In this paper we will present results of an algebraic, geometric and combinatorial nature, but which may open the path to results in complexity theory. These results are also connected to post-quantum cryptography. The reader unfamiliar with complexity theory will find in Section 8 a collection of notions and statements useful to understand the connection with our algebraic results.

Let F\mathbb{F} denote the finite field with 2 elements, usually denoted by F2\mathbb{F}_2 or GF(2)\mathrm{GF}(2). Deciding whether a system of multivariate quadratic equations over F\mathbb{F} has (at least) a solution is a classical NP-complete problem [7, 10]. As shown in Section 8, NP-completeness persists when

*Department of Mathematics, University of Trento, Italy. gabriele.radici@studenti.unitn.it

†Department of Mathematics, University of Trento, Italy. maxsalacodes@gmail.com one restricts to square systems, that is, to systems with as many equations as variables. Beyond its complexity-theoretic status, the hardness of this problem (in the more general finite-field setting) is the main hardness assumption underlying multivariate post-quantum cryptography. For example, of the nine candidates advanced by NIST to the third round of its additional digital signature process in May 2026, four are variants of the Unbalanced Oil and Vinegar scheme [12]: UOV itself, MAYO [2], QR-UOV [8] and SNOVA [21], whose security rests on the difficulty of solving systems of quadratic equations over a finite field [16].

For n≥2n \geq 2, let MQ0(n)\mathrm{MQ}_0(n) and MQ1(n)\mathrm{MQ}_1(n) denote the sets of square quadratic systems in nn variables over F\mathbb{F} having respectively no solutions and exactly one solution. The language ⋃n≥2MQ0(n)\bigcup_{n \geq 2} \mathrm{MQ}_0(n) is coNP-complete, whereas ⋃n≥2MQ1(n)\bigcup_{n \geq 2} \mathrm{MQ}_1(n) belongs to DP, not known to be either in NP or coNP. Moreover, ⋃n≥2MQ1(n)\bigcup_{n \geq 2} \mathrm{MQ}_1(n) is coNP-hard and, under randomized reductions, NP-hard. For the unique satisfiability problem these are the theorems of Blass and Gurevich [3] and of Valiant and Vazirani [20]; their transfer to square quadratic systems is discussed in Section 8.

The two families have remarkably close cardinalities. It is known [9] that

lim⁡n→∞∣MQ1(n)∣∣MQ0(n)∣=1.\lim_{n\to\infty}\frac{|\mathrm{MQ}_{1}(n)|}{|\mathrm{MQ}_{0}(n)|}=1.

Here we prove the explicit finite-nn bounds

∣MQ0(n)∣<∣MQ1(n)∣≤(1+12n−1)∣MQ0(n)∣.(1)|\mathrm{MQ}_{0}(n)|<|\mathrm{MQ}_{1}(n)|\leq\left(1+\frac{1}{2^{n}-1}\right)|\mathrm{MQ}_{0}(n)|. \tag{1}

Therefore, with only a relative excess of order 2−n2^{-n}, a uniformly-random square quadratic system is more likely to have exactly one solution than none.

The two inequalities in (1) are equivalent to the existence of an injection

MQ0(n)↪MQ1(n),for any n≥2,\mathrm{MQ}_{0}(n)\hookrightarrow\mathrm{MQ}_{1}(n),\qquad\mathrm{for~any~}n\geq2,

whose image omits at most a 2−n2^{-n} fraction of MQ1(n)\mathrm{MQ}_{1}(n). Whether such an injection can be given explicitly, or computed/inverted in polynomial time, is open: an injection of that kind would relate a coNP-complete language to a language in DP. While we make no complexity-theoretic claim in this paper, in Section 8 we will discuss some consequences.

Our result for quadratic systems is a special case of the more general statement that we prove in this paper. Let n≥2n\geq 2, V=FnV=\mathbb{F}^{n}, N=∣V∣=2nN=|V|=2^{n} and write

Q:=F[x1,…,xn]/⟨xi2−xi⟩Q:=\mathbb{F}[x_{1},\ldots,x_{n}]/\langle x_{i}^{2}-x_{i}\rangle

for the ring of polynomial functions V→FV\to\mathbb{F}. For 0≤d≤n0\leq d\leq n, let Qd⊆QQ_d\subseteq Q be the subspace of functions of degree at most dd, of dimension D=D(n,d)=∑j=0d(nj)D=D(n,d)=\sum_{j=0}^{d}\binom{n}{j}.

A square system of degree ≤d\leq d is an nn-tuple F∈(Qd)nF\in(Q_d)^n with variety X(F)⊆VX(F)\subseteq V, that is,

F=(f1,…,fn)∈(Qd)n,X(F):={v∈V∣f1(v)=⋯=fn(v)=0}.F=(f_1,\ldots,f_n)\in(Q_d)^n,\qquad X(F):=\{v\in V\mid f_1(v)=\cdots=f_n(v)=0\}.

For 0≤k≤N0\leq k\leq N, set

αk=αk(n,d):=∣{F∈(Qd)n:∣X(F)∣=k}∣.\alpha_{k}=\alpha_{k}(n,d):=\left|\{F\in(Q_{d})^{n}:|X(F)|=k\}\right|.

Thus, for d=2d=2,

∣MQk(n)∣=αk(n,2).|\mathrm{MQ}_{k}(n)|=\alpha_{k}(n,2).

Our main result is the following.

Theorem 1.1 (restated with proof as Theorem 7.1). Let n≥2n \geq 2 and 2≤d≤n2 \leq d \leq n. Then

(i)

α1−α0≤α1N,\alpha_{1}-\alpha_{0}\leq\frac{\alpha_{1}}{N},

with equality if and only if d = n;

(ii)

α1>α0;\alpha_{1}>\alpha_{0};

(iii) if d≤n−2d \leq n - 2, then

α1N−ND−33≤α1−α0≤α1N,α1N≥ND−4(N−1)(N−2)(2N+3)6≥ND−14;\frac{\alpha_{1}}{N}-\frac{N^{D-3}}{3}\leq\alpha_{1}-\alpha_{0}\leq\frac{\alpha_{1}}{N},\qquad\frac{\alpha_{1}}{N}\geq N^{D-4}\frac{(N-1)(N-2)(2N+3)}{6}\geq\frac{N^{D-1}}{4};

hence

(1−43N2)α1N≤α1−α0≤α1N.\left(1-\frac{4}{3N^{2}}\right)\frac{\alpha_{1}}{N}\leq\alpha_{1}-\alpha_{0}\leq\frac{\alpha_{1}}{N}.

Theorem 1.1 specializes for quadratic systems to (1), since

α1−α0≤α1N⟺α1≤(1+1N−1)α0.\alpha_{1}-\alpha_{0}\leq\frac{\alpha_{1}}{N}\quad\Longleftrightarrow\quad\alpha_{1}\leq\left(1+\frac{1}{N-1}\right)\alpha_{0}.

The equality in its upper bound occurs if and only if n = 2.

Two boundary cases of Theorem 1.1 are classical. For d=nd = n, QnQ_n is the space of all functions V→FV \to \mathbb{F}, the number of solutions of a uniformly random square system is exactly binomial with parameters NN and 1/N1/N [11, Theorem 1], and (i) holds with equality; by Theorem 1.1(i) itself, d=nd = n is the only degree ≥2\geq 2 for which the number of solutions is binomial (compare [11, Corollary 3.6]): the events “FF vanishes at vv”, v∈Vv \in V, are independent only in that case), which is what makes the case d<nd < n non-trivial. For d=1d = 1 the number of solutions of a random square linear system over F\mathbb{F} has the classical distribution governed by the rank of a random matrix [13, Chapter 3], and there the inequality goes the other way: α0>α1\alpha_0 > \alpha_1 for every n≥3n \geq 3 (Remark 7.2). So the hypothesis d≥2d \geq 2 in Theorem 1.1 cannot be dropped.

We briefly describe the proof. Section 2 collects the facts on matroids that we use. In Section 3, the point set VV is made into a matroid MM by declaring S⊆VS \subseteq V independent when the evaluation vectors of its points on QdQ_d are linearly independent. Inclusion-exclusion then gives

α0=χM(N),α1=NχM/v(N),\alpha_{0}=\chi_{M}(N),\qquad\alpha_{1}=N\chi_{M/v}(N),

where χ\chi denotes the characteristic polynomial and v∈Vv \in V is arbitrary.

In Section 4, a sign-reversing involution in the spirit of Whitney's broken-circuit theorem, adapted to the port of MM at vv, shows that the only terms that can push α1−α0\alpha_1 - \alpha_0 below α1/N\alpha_1/N come from the minimal sets of the port of odd cardinality. More precisely, if μj\mu_j denotes the number of minimal sets of the port of cardinality jj, we obtain

α1−α0≥α1N−∑joddμjND+1−j.\alpha_{1}-\alpha_{0}\geq\frac{\alpha_{1}}{N}-\sum_{j\mathrm{o d d}}\mu_{j}N^{D+1-j}.

In Section 5, these minimal sets are identified with the minimal-support words through v of the Reed–Muller code

RM(n−d−1,n)=RM(d,n)⊥,\mathrm{R M}(n-d-1,n)=\mathrm{R M}(d,n)^{\perp},

so that the μj\mu_j become weight-enumerator coefficients. In Section 6 the resulting error term is controlled through the MacWilliams identity: the minimum distance 2d+1≥82^{d+1} \geq 8 implies agreement with the corresponding binomial model through the first seven moments, while the even-weight structure gives the required sign for the upper bound, and a sixth-moment estimate makes the error term small enough. Section 7 assembles these ingredients into a proof of Theorem 1.1, and shows that its hypothesis d≥2d \geq 2 cannot be dropped.

Finally, in Section 8 some comments are given on the relation between the research carried out in this paper and complexity theory.