arXiv:2610.33452cs.CCOct 2026

Manuscript Offprint

arXiv:2610.33452

Bounds on polynomial approximations of the discrete logarithm function

Swastik Kopparty, Rishabh Kothary, Ashutosh Shankar

Abstract

We revisit a classical result of Coppersmith and Shparlinski [CS00] showing bounds on how well polynomials can approximate the discrete log function. They showed that for any univariate polynomial f(X)∈Fp[X]f(X) \in \mathbb{F}_p[X] with deg⁡(f)≤D\deg(f) \leq D, we have:

∣{x∈Fp×∣f(x)=dlog(x)}∣≤2Dp.|\{x\in\mathbb{F}_{p}^{\times}\mid f(x)=\mathsf{d l o g}(x)\}|\leq\sqrt{2D p}.

We show two improvements:

  • For all DD, we improve the upper bound above to (1+o(1))⋅Dp(1 + o(1)) \cdot \sqrt{Dp}. In particular, we give nontrivial upper bounds on the approximation even for D>p/2D > p/2. This new upper bound is the Johnson bound from the theory of list-decoding of error-correcting codes, and in fact our proof uses a connection to that problem, as well as other combinatorial ideas.

  • For D=1D = 1, where both the above bounds are O(p)\mathcal{O}(\sqrt{p}), we give an asymptotically improved upper bound of O(p2/5)\mathcal{O}(p^{2/5}). This is based on the sum-product phenomenon of additive combinatorics.

We also improve the [CS00] bounds on the number of points of the form (x,dlog(x))∈Fp2(x, \text{dlog}(x)) \in \mathbb{F}_p^2 that any bivariate polynomial Q(X,Y)∈Fp[X,Y]Q(X, Y) \in \mathbb{F}_p[X, Y] with deg⁡(Q)≤D\deg(Q) \leq D can vanish on, with our new bounds approaching the analogue of the Johnson bound for this problem.

1 Introduction

The discrete logarithm function has been a central object in cryptography since the work of Diffie and Hellman [DH76]. It plays a prominent role in innumerable cryptographic constructions. It is

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

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

‡^{\ddagger}Tata Institute of Fundamental Research, Mumbai, India. Email:ashutosh.shankar@tifr.res.in Research conducted while the author was visiting the University of Toronto.

therefore of great importance to understand its algebraic and combinatorial characteristics, with the goal of identifying any computational weakness.

This paper is concerned with the best low-degree approximation to the discrete log function in the finite field Fp\mathbb{F}_p, with prime pp. Concretely, for a given degree bound dd, we are interested in determining an upper bound AA such that for every polynomial f(X)∈Fp[X]f(X) \in \mathbb{F}_p[X] of degree at most DD, we have:

∣{x∈Fp∣f(x)=dlog(x)}∣≤A.|\{x\in\mathbb{F}_{p}\mid f(x)=\mathsf{d l o g}(x)\}|\leq A.

(Thus we are talking about approximation in terms of the number of points with exact equality, not any numerical approximation notion.)

This question was first studied by Coppersmith and Shparlinski [CS00], who showed that for any f(X)∈Fp[X]f(X) \in \mathbb{F}_p[X] of degree at most DD,

∣{x∈Fp∣f(x)=dlog(x)}∣≤2Dp.|\{x\in\mathbb{F}_{p}\mid f(x)=\mathsf{d l o g}(x)\}|\leq\sqrt{2D p}.

Subsequent work of Winterhof [Win02] extended this to non-prime finite fields Fq\mathbb{F}_q. Even further extensions, to fractional linear maps and beyond were given by Kiltz and Winterhof [KW06], Isik and Winterhof [IW18], and Bienvenu and Winterhof [BW26]. A different extension, of Niederreiter and Winterhof [NW02], gave bounds on the largest interval of agreement. However there has been no improvement of the Coppersmith-Shparlinski bound over prime fields for any DD.

Our first main result gives an improved bound. We show that for any f(X)∈Fp[X]f(X) \in \mathbb{F}_p[X] of degree at most DD,

∣{x∈Fp∣f(x)=dlog(x)}∣≤(1+o(1))⋅Dp.|\{x\in\mathbb{F}_{p}\mid f(x)=\mathsf{d l o g}(x)\}|\leq(1+o(1))\cdot\sqrt{D p}.

In particular, this gives nontrivial bounds even in the setting of D>p2D > \frac{p}{2}.

The quantity Dp\sqrt{Dp} in the upper bound is of special significance; it is the Johnson agreement parameter in the list-decoding of Reed-Solomon codes. The Johnson bound for Reed-Solomon codes states that if g:Fp→Fpg : \mathbb{F}_p \to \mathbb{F}_p is a function, and there exist distinct polynomials f1(X),…,fL(X)f_1(X), \ldots, f_L(X) of degree at most DD such that ∣{x∣fi(x)=g(x)}∣≥(1+ε)Dp|\{x \mid f_i(x) = g(x)\}| \geq (1 + \varepsilon) \sqrt{Dp}, then L≤Oε(p/D)L \leq \mathcal{O}_\varepsilon(\sqrt{p/D}). There are two steps to our proof: (1) we show that if some polynomial f(X)f(X) approximates dlog\text{dlog} well, then there are many polynomials f1(X),f2(X),…,fL(X)f_1(X), f_2(X), \ldots, f_L(X) of the same degree that also approximate dlog\text{dlog} quite well, and (2) using the list-decodability of Reed-Solomon codes to get a contradiction.

The first step uses the almost-homomorphism property of dlog(x)+dlog(y)∈dlog(xy)+{0,−1}\text{dlog}(x) + \text{dlog}(y) \in \text{dlog}(xy) + \{0, -1\}, where the last term is because of the mismatch between the sizes of Fp\mathbb{F}_p and Fp×\mathbb{F}_p^\times. The extra complexity introduced by the “almost” aspect is handled by some shifting arguments, along with Szemeredi’s theorem from additive combinatorics.

One consequence of our approach is that improved bounds on the list-decoding of Reed-Solomon codes, with sublinear list size L, will give improved bounds for our problem. We think this is strong evidence in favour of the existence of better upper bounds 1^{1}. In fact, we believe that the true upper bound is much smaller:

Conjecture 1.1. For any f(X)∈Fp[X]f(X) \in \mathbb{F}_p[X] of degree at most DD,

∣{x∈Fp∣f(x)=dlog(x)}∣≤(1+o(1))⋅D⋅log⁡plog⁡(D+1),|\{x\in\mathbb{F}_{p}\mid f(x)=\mathsf{d l o g}(x)\}|\leq(1+o(1))\cdot D\cdot\frac{\log p}{\log(D+1)},

as p→∞p \to \infty.

The quantitative form is motivated by the best known impossibility results for list-decodability of Reed-Solomon codes over prime fields.

Our second main result makes some further progress towards this conjecture for the case of D=1D = 1, i.e., linear polynomials. We show that for any f(X)∈Fp[X]f(X) \in \mathbb{F}_p[X] of degree at most 1:

∣{x∈Fp∣f(x)=dlog(x)}∣≤O(p2/5).|\{x\in\mathbb{F}_{p}\mid f(x)=\mathsf{d l o g}(x)\}|\leq\mathcal{O}(p^{2/5}).

This improves on the Θ(p)\Theta(\sqrt{p}) bound of Coppersmith-Shparlinski by a polynomial factor.

Our proof of the second result uses the sum-product phenomenon in finite fields [BKT04], and specifically its consequence for incidences between lines and points in Fp2\mathbb{F}_p^2 [BKT04, Lew26, MX26, Yu26]. The main technical construction comes from a 2-source extractor construction of Bourgain [Bou05] (see also Rao's exposition [Rao07]), who showed how to construct good two-source extractors from the discrete log function using the line-point incidence theorem in finite fields.

Finally, we also mention that Coppersmith and Shparlinski proved another bound on approximating the discrete log function with “algebraic functions”. Specifically, they showed that for any bivariate polynomial Q(X,Y)∈Fp[X,Y]Q(X,Y) \in \mathbb{F}_p[X,Y] of degree at most DD:

∣{(x,dlog(x))∈Fp2∣Q(x,y)=0}∣≤3⋅Dp.|\{(x,\mathsf{d l o g}(x))\in\mathbb{F}_{p}^{2}\mid Q(x,y)=0\}|\leq\sqrt{3}\cdot D\sqrt{p}.

We again improve this bound to the analogous Johnson bound 2^{2} threshold, namely (1+o(1))⋅Dp(1+o(1))\cdot D\sqrt{p}.

One final related work in the same spirit that we would like to mention is the paper of Kedlaya and Kopparty [KK23]. They gave limits on the approximation by polynomials of the (multi-valued) “square root” function in finite fields.

1^{1}We remark that the very recent breakthrough of Brakensiek, Chen, Putterman, Zhang and Zheng [BCP +^{+}26] on list-decoding Reed-Solomon codes over FpF_{p} (see also the paper of Harsha, Kumar and Saptharishi [HKS26]) does not yield anything yet because of the large polynomial list sizes in their result.

2^{2}Here the relevant Johnson bound is the following statement: if S⊆Fp2S \subseteq \mathbb{F}_p^2 is a set of size NN, and Q1(X,Y),…,QL(X,Y)Q_1(X,Y), \ldots, Q_L(X,Y) are distinct irreducible polynomials of degree at most DD, such that each QiQ_i vanishes at at least (1+ε)⋅DN(1 + \varepsilon) \cdot D\sqrt{N} points of SS, then L≤Oε(N/D)L \leq O_\varepsilon(\sqrt{N}/D). This follows from Bézout's theorem and the classical Johnson bound on set systems with restricted intersections.

AI use: The results were obtained without any AI involvement. The writing was done without any AI involvement. We used AI for literature search and for feedback on our writeup.

Organization of this paper: In the next section we set up some notation and preliminaries about list decoding and additive combinatorics. In Section 3 we prove our main structural lemmas about conjugates, which yields many approximations from one approximation. Our results for univariate polynomial approximation appear in Section 4. Our results for bivariate polynomial approximation appear in Section 5. Our results for degree D = 1 appear in Section 6.