arXiv:2610.06362cs.CROct 2026

Manuscript Offprint

arXiv:2610.06362

Explicit Nonlinear Functions beyond the Fourier bound

Swastik Kopparty, Rishabh Kothary, Shanthanu S. Rai

Abstract

We study the problem of constructing highly nonlinear vectorial maps F:F2n→F2mF : \mathbb{F}_2^n \to \mathbb{F}_2^m. Concretely, we want an FF and an A=A(m,n)>0A = A(m, n) > 0 as small as possible, so that for every affine map L:F2n→F2mL : \mathbb{F}_2^n \to \mathbb{F}_2^m (of the form L(x)=Mx+bL(x) = Mx + b) we have:

agree(F,L):=∣{x∈F2n∣F(x)=L(x)}∣≤A.\mathsf{a g r e e}(F,L):=|\{x\in\mathbb{F}_{2}^{n}\mid F(x)=L(x)\}|\leq A.

Such questions have been studied by Nyberg [Nyb91, Nyb93], Carlet and Ding [CD04, CD07], Liu, Mesnager and Chen [LMC17], Nagy [Nag25], and Biryukov, Turecek, and Udovenko [BTU26]. There is a classical method of constructing such functions from bent-functions and Fourier analytic ideas; the best bound achievable by this method is:

A(m,n)=Θ(2n−m+2n/2),A(m,n)=\Theta(2^{n-m}+2^{n/2}),

and in particular, is never smaller than 2n/22^{n/2}.

In this work, we show how to construct highly nonlinear functions beyond this Fourier bound. Concretely, we show how to construct for every γ>0\gamma > 0, a function F:F2n→F2mF : \mathbb{F}_2^n \to \mathbb{F}_2^m with m=Oγ(n)m = \mathcal{O}_\gamma(n), achieving

A(m,n)≤(1+γ)n.A(m,n)\leq(1+\gamma)^{n}.

Surprisingly, we even achieve the same quantitative behavior for the much harder question of having low agreement with m-tuples of degree dd polynomials Q:F2n→F2mQ : \mathbb{F}_2^n \to \mathbb{F}_2^m, with m=Oγ,d(n)m = \mathcal{O}_{\gamma,d}(n). Here the previously best bounds were of the form A(m,n)=O(2−n2d+1⋅2n)A(m,n) = \mathcal{O}(2^{-\frac{n}{2d+1}} \cdot 2^n) of Ben-Sasson and Kopparty [Kop10], based on Gowers-norm-type arguments.

All our results generalize to all finite fields Fq\mathbb{F}_q in place of F2\mathbb{F}_2.

Our methods are based on a new connection to classical results on counting solutions to systems of polynomial equations via algebraic methods. This connection brings us to basic questions in combinatorics, about graphs and hypergraphs with simultaneously a small number of edges and independent sets.

1 Introduction

This paper is about highly nonlinear functions F:F2n→F2mF : \mathbb{F}_2^n \to \mathbb{F}_2^m, and their degree dd analogues. Our main result is the first explicit construction of functions whose nonlinearity goes beyond the classical Fourier bound, and corresponding results for the degree dd analogues. Our results are obtained by a new connection of this problem to (1) the basic algebraic problem of bounding the number of solutions to systems of polynomial equations, and (2) the basic combinatorial problem of bounding the number of independent sets in graphs or hypergraphs with a given number of edges.

*Department of Mathematics and Department of Computer Science, University of Toronto. Email: swastik.kopparty@utoronto.ca. Research partially supported by an NSERC Discovery Grant.

†^{\dagger}Department of Computer Science, University of Toronto. Email: rishabh.kothary@mail.utoronto.ca. Research partially supported by an NSERC Discovery Grant.

†^{\dagger}School of Technology and Computer Science, Tata Institute of Fundamental Research, Mumbai. Email: shanthanu.rai@tifr.res.in. Research supported by the Department of Atomic Energy, Government of India, under project number RTI4014, TCS Research Fellowship and in part by research grants from Google Research, Premji Invest and SERB.

A vectorial Boolean function is a function F:F2n→F2mF : \mathbb{F}_2^n \to \mathbb{F}_2^m. Linearity properties of vectorial Boolean functions have been extensively studied in differential cryptanalysis and symmetric-key cryptography (where vectorial Boolean functions are called substitution boxes or S-boxes).

An important parameter of a vectorial Boolean function FF is its nonlinearity1^{1} nl(F)\mathsf{nl}(F). This is defined as the minimum Hamming distance of FF from affine maps L:F2n→F2mL: \mathbb{F}_2^n \to \mathbb{F}_2^m (namely, maps where L(x)=Mx+bL(x) = Mx + b for a matrix MM and vector bb):

nl(F)=min⁡L:F2n→F2maffine map∣{x∈F2n∣F(x)≠L(x)}∣.\mathsf{n l}(F)=\min_{\substack{L:\mathbb{F}_{2}^{n}\to\mathbb{F}_{2}^{m}\\ \mathrm{a f f i n e~m a p}}}\left|\{x\in\mathbb{F}_{2}^{n}\mid F(x)\neq L(x)\}\right|.

For our discussion, it will be more natural to talk about the “linearity”, denoted maxagree(F,deg⁡1)\text{maxagree}(F, \deg 1) defined to equal 2n−nl(F)2^n - \text{nl}(F), which is equivalently the smallest A≥0A \geq 0 such that for all affine L:F2n→F2mL : \mathbb{F}_2^n \to \mathbb{F}_2^m:

∣{x∈F2n∣F(x)=L(x)}∣≤A.|\{x\in\mathbb{F}_{2}^{n}\mid F(x)=L(x)\}|\leq A.

For cryptography and pseudorandomness purposes, it is interesting to find F which have provably small maxagree(F, deg 1). This (and its higher degree analogue) is the main question that our paper focuses on.

Nonlinearity of vectorial Boolean functions has been studied by many authors [Nyb91, Nyb93, CD04, CD07, CF01, LC14, LMC17, Nag25, BTU26]. In the very recent work of Biryukov, Turecek, and Udovenko [BTU26], nonlinearity plays a central role in their study of linearization of S-boxes.

For the case m=1m = 1 (namely the case of Boolean functions), it is well known that the smallest that maxagree(F,deg⁡1)\text{maxagree}(F, \deg 1) can be is 12⋅2n+O(2n/2)\frac{1}{2} \cdot 2^n + O(2^{n/2}). That it cannot be smaller is proved by studying the Fourier transform of FF and applying Parseval's inequality. Functions which achieve equality are known as (almost) bent functions, and have been very well studied with numerous applications.

For general m>1m > 1, a simple application of the probabilistic method shows that there are F:F2n→F2mF : \mathbb{F}_2^n \to \mathbb{F}_2^m with

maxagree(F,deg⁡1)≤{(1+o(1))⋅12m⋅2nm≪npoly(n)m≥n.\mathrm{maxagree}(F,\deg1)\leq\begin{cases}(1+o(1))\cdot\frac{1}{2^{m}}\cdot2^{n}&m\ll n\\ \mathrm{poly}(n)&m\geq n\end{cases}.

and this is also known to be best possible.

In particular, once m≥nm \geq n, there exist FF with maxagree(F,deg⁡1)≤poly(n)\text{maxagree}(F, \deg 1) \leq \text{poly}(n).

However, constructions of F with this behaviour are not known. There is a very natural and elegant approach to constructing nonlinear vectorial Boolean functions based on bent functions and Fourier analysis. This dates back to Nyberg [Nyb91],

with more recent work by [CD04, CD07, CF01, LC14, LMC17, BTU26, Nag25]. Specifically, suppose F:F2n→F2mF : \mathbb{F}_2^n \to \mathbb{F}_2^m is such that for every nonzero y∈F2my \in \mathbb{F}_2^m, the one-bit-output function Fy:F2n→F2F_y : \mathbb{F}_2^n \to \mathbb{F}_2 given by:

Fy(x)=⟨F(x),y⟩F_{y}(x)=\langle F(x),y\rangle

is almost bent; namely maxagree(Fy,deg⁡1)≤12⋅2n+O(2n/2)\text{maxagree}(F_y, \deg 1) \leq \frac{1}{2} \cdot 2^n + O(2^{n/2}). Then, via the results in these papers, we have:

maxagree(F,deg⁡1)≤12m⋅2n+O(2n/2).\mathrm{maxagree}(F,\deg1)\leq\frac{1}{2^{m}}\cdot2^{n}+O(2^{n/2}).

We call this the Fourier bound on maxagree(F,deg⁡1)\text{maxagree}(F, \deg 1). It is the best possible bound on maxagree(F,deg⁡1)\text{maxagree}(F, \deg 1) based solely on the smallness of all the maxagree(Fy,deg⁡1)\text{maxagree}(F_y, \deg 1).

For m≪nm \ll n, this is quite close to best possible, but for m≥nm \geq n it is significantly suboptimal. The best upper bound on maxagree(F,deg⁡1)\text{maxagree}(F, \deg 1) that can be proved via this method is 2n/22^{n/2}. There are no better upper bounds known for any explicit function, and it is of great interest to develop new techniques to prove strong upper bounds on maxagree(F,deg⁡1)\text{maxagree}(F, \deg 1).

Our main result for degree 1 (see Theorem 4.12) gives explicit functions which provably go beyond the Fourier bound. Specifically, for every fixed γ>0\gamma > 0, for large enough nn and m≥Ωγ(n)m \geq \Omega_\gamma(n), we give explicit functions F:F2n→F2mF : \mathbb{F}_2^n \to \mathbb{F}_2^m with

maxagree(F,deg⁡1)≤(1+γ)n.\mathrm{maxagree}(F,\deg1)\leq(1+\gamma)^{n}.

1^{1}This specific definition is more commonly called nonlinearity of the second type, or vector nonlinearity [Nag25].

One can ask similar questions for higher degree d=O(1)d = O(1). Here we replace affine maps L:F2n→F2mL : \mathbb{F}_2^n \to \mathbb{F}_2^m with mm-tuples of degree dd polynomials. Specifically, define maxagree(F,deg⁡d)\text{maxagree}(F, \deg d) to be the smallest AA such that for all mm-tuples Q=(Q1,…,Qm)Q = (Q_1, \ldots, Q_m) of polynomials (where Qi∈F2[X1,…,Xn]Q_i \in \mathbb{F}_2[X_1, \ldots, X_n], with deg⁡(Qi)≤d\deg(Q_i) \leq d), we have:

∣{x∈F2n∣F(x)=Q(x)}∣≤A.|\{x\in\mathbb{F}_{2}^{n}\mid F(x)=Q(x)\}|\leq A.

For m≪nm \ll n, it is again known that the smallest possible value of maxagree(F,deg⁡d)\text{maxagree}(F, \deg d) is about (12m+o(1))⋅2n\left(\frac{1}{2^m} + o(1)\right) \cdot 2^n, and explicit constructions of such functions are known from multiple routes: (1) the Weil bounds and the Fourier bound, or (2) the direct product theorem of Viola and Wigderson [VW08]. However for m≥nm \geq n, the known results get much weaker. Using ideas related to the Gowers' norm (which is a higher-degree version of Fourier analysis), Ben-Sasson and Kopparty [Kop10, Theorem 7.2.1] gave constructions of explicit functions FF satisfying:

maxagree(F,deg⁡d)≤2−n/2d+1⋅2n.\mathsf{m a x a g r e e}(F,\deg d)\leq2^{-n/2^{d+1}}\cdot2^{n}.

As far as we could find, this is the best upper bound known for any m=O(n)m = O(n) and d≥2d \geq 2.

Our main result for degree dd (see Theorem 4.15) gives explicit functions significantly improving this. In fact, our bounds for general (constant) dd even bypass the Fourier bound from the d=1d=1 case! Concretely, for every fixed γ>0\gamma>0 and d∈Nd\in\mathbb{N}, for large enough nn and m≥Ωγ,d(n)m\geq\Omega_{\gamma,d}(n), we give explicit functions F:F2n→F2mF:\mathbb{F}_2^n\to\mathbb{F}_2^m with:

maxagree(F,deg⁡d)≤(1+γ)n.\mathsf{m a x a g r e e}(F,\deg d)\leq(1+\gamma)^{n}.

Our results also generalize to Fq\mathbb{F}_q in place of F2\mathbb{F}_2, achieving the same qualitative behaviour of going below the Fourier bound (see Theorem 5.14).

References (25)