Manuscript Offprint
arXiv:2610.33452Bounds on polynomial approximations of the discrete logarithm function
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 with , we have:
We show two improvements:
-
For all , we improve the upper bound above to . In particular, we give nontrivial upper bounds on the approximation even for . 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 , where both the above bounds are , we give an asymptotically improved upper bound of . 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 that any bivariate polynomial with 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.
Department of Computer Science, University of Toronto, Canada. Email: rishabh.kothary@mail.utoronto.ca. Research partially supported by an NSERC Discovery Grant
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 , with prime . Concretely, for a given degree bound , we are interested in determining an upper bound such that for every polynomial of degree at most , we have:
(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 of degree at most ,
Subsequent work of Winterhof [Win02] extended this to non-prime finite fields . 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 .
Our first main result gives an improved bound. We show that for any of degree at most ,
In particular, this gives nontrivial bounds even in the setting of .
The quantity 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 is a function, and there exist distinct polynomials of degree at most such that , then . There are two steps to our proof: (1) we show that if some polynomial approximates well, then there are many polynomials of the same degree that also approximate 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 , where the last term is because of the mismatch between the sizes of and . 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 . In fact, we believe that the true upper bound is much smaller:
Conjecture 1.1. For any of degree at most ,
as .
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 , i.e., linear polynomials. We show that for any of degree at most 1:
This improves on the 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 [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 of degree at most :
We again improve this bound to the analogous Johnson bound threshold, namely .
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.
We remark that the very recent breakthrough of Brakensiek, Chen, Putterman, Zhang and Zheng [BCP 26] on list-decoding Reed-Solomon codes over (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.
Here the relevant Johnson bound is the following statement: if is a set of size , and are distinct irreducible polynomials of degree at most , such that each vanishes at at least points of , then . 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.
Definition 2.1 (Discrete logarithm). For , is defined to be the unique with in .
We will invoke the following well-known result from algebra.
Theorem 2.2 (Bézout's theorem [Ful89]). Let such that , and are co-prime. Then, the number of common zeroes of and is at most .
We will also talk about sumsets. For a subset V of an abelian group G, we let denote the m-fold sumset .
2.1 Johnson bound
The Johnson bound is generally stated as a bound on the number of codewords within a certain radius of a received word, given that the code has some minimum distance. Simple forms of the Johnson bound are proved by counting methods. We use the following rearrangement of standard Johnson bound statements, for instance Theorem 4.2 of [GRS00], so it is phrased as a bound on the size of the agreement sets (i.e. a lower bound on the radius) given a list of codewords and the minimum distance of the code.
Lemma 2.3 (Johnson Bound). Let be such that for all , and for any , , then
2.2 Theorems from additive combinatorics
In the sections on low-degree univariate and bivariate polynomials (Sections 4 and 5), we will use results on arithmetic-progression-free sets. Szeméredi's Theorem states that a large enough set of natural numbers must contain a long arithmetic progression. Below we state a quantitative version due to Gowers.
Theorem 2.4 ([Gow01]). For every , there exists a constant such that for any and where , then contains a term arithmetic progression.
In the section on linear functions (Section 6), we will invoke the following bound on line-point incidences. Let be a set of points and a set of lines in . An incidence is a pair of and with . The set of incidences is denoted . The first nontrivial upper bounds on the number of incidences over prime fields were obtained by Bourgain, Katz and Tao [BKT04]. The main challenge that [BKT04] had to overcome is that finite fields which contain subfields actually have point-line configurations with many incidences; a nontrivial upper bound needs to use the absence of subfields of . The very recent breakthrough works of Lewko [Lew26] and Miao and Xie [MX26] gave optimal quantitative estimates for the number of incidences (see also the elegant paper of Yu [Yu26]). We will use the following estimate by Lewko [Lew26]:
Theorem 2.5 ([Lew26]). Let be a set of points in and be a set of lines in . Let and if , then
3 Agreement sets and conjugates
3.1 Distinctness of Conjugates
In this section, we define the conjugates of a bivariate polynomial and prove some properties of the conjugates. At the high level, the conjugates of are bivariate polynomials such that if vanishes at many points of the form , then so do (many of) the conjugates. They are based on the algebraic properties of the discrete log function.
Definition 3.1 (Conjugates). Let be a non-zero polynomial, then for any and , define
These are called the conjugates of .
These conjugates will serve as our “list elements”. Our proof will proceed by showing that the agreement set cannot be too large if all of these are to be in the list.
We formally define this agreement set below, along with some conjugate agreement sets.
Definition 3.2 (Agreement set ). Let be a non-zero polynomial, then define as
Further for any , define
In particular note that .
The latter set is meant to handle the case when exceeds . Notice that for , we have .
Now we will show that contain the projection of the roots of onto the second coordinate.
Proposition 3.3. For any , let . Then .
Proof. Let , then by definition . Evaluating at , we get
(Since and )
(Since )
which finishes the proof.
Lemma 3.4 (Distinctness of conjugates). Let be a non-zero polynomial of degree less than such that depends on both and . For any where , we have for any .
Proof. Let be of the form
where . Since depends on both and , there exists some such that . For the sake of contradiction suppose there exists such that . Then it follows that
by comparing monomials in of degree . By comparing coefficients of the largest degree monomial in the above expression we get that and . However since , it follows that . Since , this is only possible if . This contradicts our choice of and thus we are done.
3.2 Structure of agreement set
Here we will state the main observation about the geometry of when Q is an irreducible polynomial. In particular we show that cannot contain long arithmetic progressions.
Lemma 3.5. Let be an irreducible non-zero polynomial of degree . Then cannot contain an arithmetic progression (over ) of size .
Proof. For the sake of contradiction assume has an arithmetic progression of size . Let be the starting point of the arithmetic progression and be the common difference. Then,
Since and the arithmetic progression is over the integers,
By definition of , it follows that
and thus by Proposition 3.3, is a root of for . Hence and have common roots.
Recall that is irreducible. By Lemma 3.4, we know that for any . Thus . By Bezout's theorem (Theorem 2.2), we get that and can have at most common roots, which is a contradiction.
Corollary 3.6. Let be an irreducible non-zero polynomial of degree at most , then there exists a constant such that for any , .
Proof. Since is an irreducible and non-zero polynomial of degree at most , is also an irreducible polynomial of degree at most . Since (Proposition 3.3), then by Lemma 3.5, does not contain any arithmetic progression of size . Since , by Theorem 2.4,
Further note that which implies
which is the required relation.
4 Approximation by univariate polynomials
In this section, we consider low-degree univariate polynomials . We are interested in the number of points for which we can have , that is, agrees with on .
Theorem 4.1. For any , there exists such that for any , the following is true. Let be a non-zero polynomial of degree . Define as . Then,
where .
Proof. Let for ease of notation. Let be a parameter which we will set later and set . Define a list of polynomials as . For any , define .
Our goal is to invoke the Johnson bound (Lemma 2.3) on the sets . We have to show the hypotheses for it are satisfied. The proof will proceed based on two cases.
• Case : Note that . Since , this implies which in turn implies
Hence for every , we have
Next we will show that for all , . For , define . Then for any ,
By Lemma 3.4, for any , . If , then and hence is a root of . Since is a non-zero polynomial of degree at most , can have at most roots. Since for any , , we get .
Now we can apply the Johnson bound (Lemma 2.3) on , and get that
Setting , we get
Hence we have shown that
which finishes this case.
- Case : We will use , to get a better bound on than the previous case. Just like the previous case we know that . By Corollary 3.6, it follows that
Thus for all , it follows that
where .
For any , just like the previous case, it follows that . Now we apply the Johnson Bound (Lemma 2.3) on and get that
Rearranging the terms we get
Setting , we get
Hence we have shown that
which finishes this case.
Remark 4.2. The lower-order term may be improved using stronger quantitative estimates for Szeméredi's Theorem, for instance [GT17] and [LSS24]. For ease of presentation we do not invoke those in this paper.
5 Approximation by bivariate polynomials
In this section, we will be interested in the number of locations where a bivariate polynomial may satisfy . Recall from Definition 3.2 that this set is denoted .
Theorem 5.1. For any , there exists such that for any , if is a non-zero polynomial of degree then,
where .
Proof. Let be the irreducible factorization of over . (The polynomials need not be distinct.) By an averaging argument, there exists
such that
For ease of notation let , and .
Let be a parameter which we will set later and set . Define where . For any , define . The proof will move ahead based on two cases, similar to the univariate case. Once again, our goal is to prove the hypotheses for the Johnson bound are satisfied, and then invoke it.
• Case : Note that . Since , this implies which in turn implies
Hence for all , we have
Next we will show that for all , . We know that is an irreducible polynomial of degree which implies that for any , is an irreducible polynomial of degree . For any , Lemma 3.4 shows that for any . This is equivalent to showing that . By definition of s it is clear that is the set of common zeros of and . Thus by Theorem 2.2, it follows that . Now we apply the Johnson Bound (Lemma 2.3) on and get that
Now we set and get
Eq. (5.2) would then imply
Thus we are done with this case.
- Case : We will use to get a better bound on than the previous case. Just like the previous case we know that . By Corollary 3.6, it follows that
Thus for all , it follows that
where .
For any , . The argument is identical to the one in the previous case. Now we apply the Johnson Bound (Lemma 2.3) on and get that
Rearranging the terms we get
Setting we get
Eq. (5.2) would then imply
Hence, we are done with this case as well.
12
□
Remark 5.3. Similar to the univariate case, stronger estimates for Szemeredi's theorem improve the lower-order term .
6 Approximation by linear functions
In this section we prove bounds on approximating the discrete log by polynomials of degree 1, namely linear functions.
Theorem 6.1. Let have degree . Then:
The strategy, of proving properties of the discrete log function via the line-point incidence theorem over finite fields, comes from the analysis of Bourgain's two-source extractor [Bou05] (made especially clear in Rao's exposition [Rao07]).
6.1 Proof Overview
We first give an overview of the argument.
Let denote the intersection of the graphs of and , that is:
Thus is contained in a line in . Let be the projection of to the first coordinate:
Now consider the iterated sumset .
On the one hand, is contained in a line in : indeed, if , then every element of satisfies . This means that .
On the other hand
Let us pretend for the moment that satisfies the exact homomorphism identity . Then , and thus has the same size as the set given by:
We now define a set of lines in . For each , define the line
. There are such lines, and each is incident to points of . Putting this incidence data about and into the line-point incidence theorem, along with our upper bound , gives the desired upper bound on .
This concludes the proof overview. The only gap in this is the wished-for exact homomorphic property of dlog, which is not quite true because of wrap-around. To get around this, we will zoom in on subsets of S and T where some version of the homomorphic property holds.
6.2 Proof of Theorem 6.1
We start by partitioning S (and T) into m buckets, for a parameter m which we will fix later (to equal 2 or 3).
Define by:
then note that for partition .
Further, let and denote the respective projections of these sets to their first coordinate. That is, and similarly for .
We define a k-fold “sum and product” operation on subsets . This operation is motivated by the property of the (standard) logarithm: .
Definition 6.2. For sets and , let
We will now prove some properties of the sets under this operation.
Lemma 6.3. For any , .
Recall that denotes the m-fold sumset .
Proof. We prove this by defining a bijection
We first have to show this map is well-defined, that is, the image of any element under the map lies in as claimed. Take . Then, there exist such that , . Let for each ; we are left to show
. Since each , we have . Then, .
This shows the map is well-defined. Now we are left to show injectivity and surjectivity.
For injectivity, suppose . Since fixes the first coordinate, we have . Further, we have which implies .
For surjectivity, let . By a similar argument to the well-definedness case, we can pick with and , which would give as required.
Proposition 6.4. Let be the agreement set as above and its projection onto the first coordinate. Then, .
Proof. Recall that may be subdivided into and . Without loss of generality we assume , otherwise in the below argument replace with .
Now since ,
where the equality follows from Lemma 6.3.
We also have that is at least the number of pairs (with repetition) up to ordering in . This is because an element of is a pair of the form , which determines and in up to labeling. Hence,
Combining with the above, we have
which completes the proof.
We are now ready to prove the main theorem of the section.
Proof of Theorem 6.1. Let be a constant that we will fix later; we will eventually show for some .
Assume for contradiction that . Divide into , and as defined above (that is, ). At least one of these has size at least ; replace by that set and drop any extraneous elements so that exactly.
Let be the projection of to the first coordinate, and thus . Recall that consists of pairs; take a pair and define the line . Let . This will be the set of lines that we invoke the line-point incidence result with. Observe that .
Now, since every comes from two elements in up to ordering, we have
Substituting the bounds on T as per the contradiction assumption, and the observation about ,
The set of points we will use will be . By Lemma 6.3, . Recall that was a subset of the original line that purported to approximate dlog. Hence, is also a subset of some line, and hence . Then, we can conclude that .
We need to lower-bound the size of P as well. We have
where the last inequality is by Proposition 6.4. Then, combined with the contradiction assumption, this gives
Now, consists of points while consists of lines of the form . From this form, it is clear that any and gives an incidence. Then,
For a large enough prime , we have , which is the hypothesis of Theorem 2.5.
Then, we can invoke the bound to conclude
which is a contradiction for and a large enough constant c.
References
[BCP 26] Joshua Brakensiek, Yeyuan Chen, Aaron Putterman, Zihan Zhang, and Kai Zhe Zheng. Algorithmic list decoding of Reed-Solomon codes up to capacity. arXiv preprint arXiv:2609.08005, 2026. 3
[BKT04] Jean Bourgain, Nets Katz, and Terence Tao. A sum-product estimate in finite fields, and applications. Geom. Funct. Anal., 14(1):27–57, February 2004. 3, 5
[Bou05] J. Bourgain. More on the sum-product phenomenon in prime fields and its applications. International Journal of Number Theory, 01(01):1–32, 2005. 3, 13
[BW26] Pierre-Yves Bienvenu and Arne Winterhof. Additive index and Carlitz rank, 2026. 2
[CS00] Don Coppersmith and Igor Shparlinski. On polynomial approximation of the discrete logarithm and the Diffie–Hellman mapping. Journal of Cryptology, 13(3):339–360, 2000. 1, 2
[DH76] W. Diffie and M. Hellman. New directions in cryptography. IEEE Transactions on Information Theory, 22(6):644–654, 1976. 1
[Ful89] William Fulton. Algebraic Curves: An Introduction to Algebraic Geometry. Advanced Book Classics. Addison-Wesley Publishing Company, 1989. 4
[Gow01] W. T. Gowers. A new proof of Szemerédi's theorem. Geometric & Functional Analysis GAFA, 11(3):465–588, 2001. 5
[GRS00] Oded Goldreich, Ronitt Rubinfeld, and Madhu Sudan. Learning polynomials with queries: The highly noisy case. SIAM J. Discret. Math., 13(4):535–570, 2000. 4
[GT17] Ben Green and Terence Tao. New bounds for Szemerédi's theorem, iii: A polylogarithmic bound for. Mathematika, 63(3):944–1040, 2017. 10
[HKS26] Prahladh Harsha, Mrinal Kumar, and Ramprasad Saptharishi. Reed-Solomon codes at capacity: Algorithmic list-decoding and proximity gaps. arXiv preprint arXiv:2610.08610, 2026. 3
[IW18] Leyla Işık and Arne Winterhof. Carlitz rank and index of permutation polynomials. Finite Fields and Their Applications, 49:156–165, 2018. 2
[KK23] Kiran Kedlaya and Swastik Kopparty. On the degree of polynomials computing square roots mod p. arXiv preprint arXiv:2311.10956, 2023. 3
[KW06] Eike Kiltz and Arne Winterhof. Polynomial interpolation of cryptographic functions related to Diffie–Hellman and discrete logarithm problem. Discrete Applied Mathematics, 154(2):326–336, 2006. 2
[Lew26] Mark Lewko. A Szemerédi-Trotter theorem in arbitrary fields. arXiv preprint arXiv:2609.27023, 2026. 3, 5
[LSS24] James Leng, Ashwin Sah, and Mehtaab Sawhney. Improved bounds for Szemerédi's theorem. arXiv preprint arXiv:2402.17995, 2024. 10
[MX26] Changxing Miao and Rui Xie. The Szemerédi-Trotter estimate in finite field with its applications. arXiv preprint arXiv:2609.35190, 2026. 3, 5
[NW02] Harald Niederreiter and Arne Winterhof. Incomplete character sums and polynomial interpolation of the discrete logarithm. Finite Fields and Their Applications, 8(2):184–192, 2002. 2
[Rao07] Anup Rao. An exposition of Bourgain's 2-source extractor. In Electronic Colloquium on Computational Complexity (ECCC), volume 14, 2007. 3, 13
[Win02] Arne Winterhof. Polynomial interpolation of the discrete logarithm. Designs, Codes and Cryptography, 25(1):63–72, 2002. 2
[Yu26] Hung-Hsun Hans Yu. Two proofs and a tight Szemerédi–Trotter theorem. arXiv preprint arXiv:2610.10649, 2026. 3, 5