Manuscript Offprint
arXiv:2610.32508Deterministic Root-Finding over Finite Fields with Elliptic Curves
Abstract
Finding the roots of a polynomial over a finite field in deterministic polynomial time is a long-standing open problem. Classical deterministic methods work in the multiplicative group and are efficient only when is smooth, which is rarely the case.
We propose a method that replaces by the groups of rational points of an elliptic curve and of its quadratic twist . The computation splits into an offline phase, which depends only on and outputs a short elliptic preprocessing datum , and an online phase, which processes the input polynomial. Writing for the largest prime factor of , the online phase is deterministic and finds the roots of any of degree within operations in . A precursor of our method is an algorithm by Rónyai, which recovers the roots through Galois computations over number fields, relies on GRH, and comes with a polynomial bound of unspecified degree; in contrast, our online phase works entirely over and is unconditional. Moreover, can be certified deterministically and unconditionally in time polynomial in and .
We conjecture that every of large enough characteristic admits a datum with , and support this with a heuristic and with experiments. Constructing such a datum in polynomial time remains open.
Contents
1 Introduction 1
1.1 Problem statement 1
1.2 Main contributions 2
1.3 Comparison with prior work 4
2 Technical overview 6
2.1 From cyclotomy to elliptic curves 6
2.2 Lifting the roots onto the curves 7
2.3 Representing sets of points 8
2.4 Translating a split divisor 9
2.5 The elliptic Mignotte–Schnorr recursion 9
2.6 Assembling the complexity bound 10
2.7 The offline phase 11
2.8 Organization of the paper 11
3 Preliminaries and notation 12
4 Encoding the roots as rational points on an elliptic curve 13
4.1 2-adic factorization via evaluation 14
4.2 Lifting split polynomials to split divisors 17
5 Factoring with elliptic curves 19
5.1 Translating split divisors 20
5.2 Deterministic decomposition of split divisors on elliptic curves 23
6 Computing and verifying elliptic preprocessing data 31
6.1 Constructing the curve: the CM method and its limitations 32
6.2 Distribution of elliptic curves with smooth group orders 32
6.3 Computing the group orders, their factorizations, and the bases 34
6.4 Verifying a preprocessing datum 35
7 Experiments 36
7.1 Experimental evidence for Conjecture 1.5 36
7.2 Proof-of-concept implementation in Magma 36
8 Perspectives and open questions 37
8.1 Improving the complexity bound 37
8.2 Using more general curves 38
8.3 Using other algebraic groups 38
8.4 Polynomial-time deterministic precomputation 39
A Pseudo-code for the Mignotte–Schnorr algorithm 39
1.1 Problem statement
Problem statement. Let be a prime power with (for , Berlekamp's algorithm [Ber70] is already deterministic and polynomial-time), and denote the finite field with elements. A univariate polynomial is separable if it is coprime with its derivative, and split if all its irreducible factors have degree 1.
In this paper, we study deterministic algorithms for the following problem:
Problem 1.1 (Root-finding over ). Given a prime power and a split, separable polynomial , compute the set of roots of in , i.e., the set of such that .
This problem lies at the core of polynomial factorization over : indeed, factorization can be reduced to root-finding in deterministic polynomial time via squarefree factorization and Berlekamp's subalgebra (see [Ber70] and [vzGG03, Sec. 14]).
Motivation. Root-finding over finite fields is a central problem in algebraic computation. Although efficient randomized algorithms have been known for decades, no deterministic polynomial-time algorithm has been found (see however the recent claim discussed at the end of Section 1.3). Finding one would constitute a step toward the broader goal of derandomizing algebraic algorithms. Root-finding and polynomial factorization over finite fields are subroutines of many algorithms in computational algebra. The absence of a deterministic polynomial-time solution propagates to higher-level algorithms. A telling example is the algorithmic structure theory of finite-dimensional associative algebras over : finding zero divisors, decomposing a semisimple algebra into simple components, exhibiting an explicit isomorphism between a simple algebra and a full matrix algebra, or computing a common invariant subspace of a family of linear maps are all solved by f-algorithms, i.e. deterministic polynomial-time algorithms with access to an oracle for factoring univariate polynomials over finite fields [FR85, Rón90, Ebe91]. Factorization is itself a special case of the zero-divisor problem [Rón87]. These problems are therefore exactly as hard as Problem 1.1.
Deterministic algorithms can also be used in cryptography, where is sometimes fixed by a standard, so that a field-dependent precomputation can be performed. For instance, constant-time hashing into elliptic curves extracts square roots by a deterministic variant of the Tonelli–Shanks algorithm, which relies on a nonsquare of fixed in advance [FHSS 23, App. I.4]; our preprocessing datum plays a similar role for polynomials of arbitrary degree.
Context. Polynomial factorization and root-finding over finite fields have been studied for several decades. Berlekamp is often credited with initiating the modern algorithmic study of these problems [Ber67], although some key ideas already appear in the works of Gauss and Legendre. We refer to [vzGP01] for a historical survey of the area. Over the years, fast probabilistic algorithms have been developed, whereas deterministic polynomial-time algorithms are only known in restricted settings, often under GRH. Such algorithms exist when the characteristic of is fixed [Ber70, Sho91], when has a bounded number of irreducible factors [Rón88], or when arises as the reduction of an integer polynomial with suitable Galois properties [Rón92], the last two under GRH. Without GRH, polynomials over a prime field can be factored deterministically in time polynomial in and [Sho90], which is exponential in . For general finite fields, the best known deterministic algorithm is that of [Evd94], which runs under GRH in time polynomial in and . Ivanyos, Karpinski and Saxena interpret the combinatorics underlying this algorithm in terms of m-schemes [IKS09], which yield a deterministic polynomial-time algorithm under GRH for polynomials of prime degree n such that n - 1 is smooth; this was extended in [AIKS14] to the case where n - 1 has a large r-smooth divisor, in time . Ivanyos, Karpinski, Rónyai and Saxena eliminate GRH from most of these results [IKRS12], at the price of a weaker output: for instance, in deterministic time polynomial in and , their algorithm returns either a nontrivial factor of or a nontrivial automorphism of . Another approach is given by Camion's algorithm [Cam83a, Cam83b], which provides a deterministic variant of the Cantor–Zassenhaus algorithm, but relies on a precomputed subset of for which no algorithm polynomial in is known.
1.2 Main contributions
Our main contribution is a deterministic root-finding algorithm for that splits into two phases: an offline phase, which depends only on the field, and an online phase, which takes the polynomial as input. The interface between the two is the following notion.
Definition 1.2 (Elliptic preprocessing datum). An elliptic preprocessing datum for is a tuple
where is a nonsquare, is an elliptic curve given by a short Weierstrass equation, is its quadratic twist w.r.t. ; the integers and are the orders of the groups of rational points, with factorizations and ; finally, and are bases for their respective groups, i.e. and . We allow , so that the cyclic case is covered by letting be a generator.
We let denote the largest prime dividing . The cost of the online phase depends on the field essentially through this quantity.
Our main result is the following.
Theorem 1.3 (Elliptic curve root-finding, online phase). There is a deterministic algorithm (Algorithm 6) which, given a split separable polynomial and an elliptic preprocessing datum for , outputs all roots of in .
Excluding the cost of constructing and verifying D, the algorithm performs at most
arithmetic operations in .
The online phase is unconditional: it relies on no unproven hypothesis, and in particular not on GRH. This contrasts with the elliptic-curve method in [Rón92], which relies on GRH through Galois-theoretic machinery over number fields. Moreover, apart from factors polynomial in , the bound depends on the field only through , so that a datum with small yields an efficient online phase regardless of the divisibility properties of .
The difficulty is thus displaced to the offline phase, which we address from the angles of verification, existence, and construction.
Verification. Preprocessing data are efficiently verifiable: their validity can be checked deterministically and unconditionally in time polynomial in and (Proposition 6.4).
This distinguishes our approach from Camion’s framework [Cam83a, Cam83b], another deterministic method whose precomputation depends only on . There, the precomputed object is a subset of required to separate the roots of every input polynomial; we are not aware of any procedure certifying it in time polynomial in , so that the precomputation cannot be decoupled from its verification.
Existence. The existence of good preprocessing data (i.e. with small ) is related to the existence of pairs of smooth orders in the Hasse–Weil interval, which contains the order of for every elliptic curve over (Hasse’s theorem, see Section 3):
Proposition 1.4. Let be a pair of integers in the Hasse–Weil interval such that and . Then there exists an elliptic preprocessing datum for with and .
Proof. Set . That lies in the Hasse–Weil interval means , and means that is coprime to . By [Wat69, Thm. 4.1], there exists an elliptic curve over with , and since it admits a short Weierstrass model. Pick any nonsquare , and let be the quadratic twist of with respect to . The Frobenius trace of is , hence that of is (Section 3), whence . Finally, and are finite abelian groups of rank at most 2, so each admits a basis, with the convention that in the cyclic case.
Proposition 1.4 turns the existence of a good preprocessing datum into a purely number-theoretic question: does the Hasse–Weil interval contain pairs of smooth integers summing to ? We conjecture that it does.
Conjecture 1.5. There exist constants and such that, for every prime and every integer , letting , there exists an integer coprime to such that both and are -smooth.
Section 6.2 identifies this statement as a constrained instance of a question of Erdős and Graham on sums of two smooth integers, and discusses what the standard heuristics predict for the exponent c; Section 7.1 reports experiments. Combined with Proposition 1.4, it gives:
Corollary 1.6. Under Conjecture 1.5, every finite field of sufficiently large characteristic admits an elliptic preprocessing datum with .
Construction. There remains the task of producing such a datum deterministically. Section 6 shows that, once a curve with smooth group orders is known, all the remaining components of the datum can be computed in deterministic polynomial time under GRH when q is prime. Constructing the curve is therefore the obstruction:
Problem 1.7 (Deterministic preprocessing). Does there exist a deterministic polynomial-time algorithm that, on input q, constructs an elliptic preprocessing datum with ?
Corollary 1.8. Under a positive answer to Problem 1.7, root-finding over (Problem 1.1) is solvable deterministically in time polynomial in and .
Our main result can therefore be read as a reduction: deterministic root-finding over reduces to the offline construction of an elliptic curve whose group of rational points and that of its quadratic twist both have smooth order.
Implementation. Our algorithmic description is sufficiently precise to enable a direct implementation in computer algebra systems. We provide a prototype implementation in Magma, available at [Spa26]. Our experiments show that the algorithm is not restricted to special values of q, in contrast to cyclotomic methods, which rely on smoothness assumptions on q - 1: for general prime powers, our unoptimized implementation performs deterministic root-finding computations in practice, and for instance handles prime fields of size larger than on a standard laptop.
1.3 Comparison with prior work
Cyclotomic methods. Cyclotomic methods reduce root-finding to computations in smooth subgroups of , and their cost is governed by the largest prime factor of . This line was initiated by [Moe77], for prime powers such that is divisible by a large power of 2, and turned into a general framework by Mignotte and Schnorr [MS88] and by von zur Gathen [vzG87]. These algorithms use the decomposition
and the fact that, writing for the projection onto the -th factor, the polynomial whose roots are exactly the with is a binomial
so that its GCD with is obtained from a single binary exponentiation. The construction was extended in [BvzGL01] to fields for which the value at q of some cyclotomic polynomial has no large prime factor.
A parallel line of work is based on (generalized) Graeffe transforms: replacing by the polynomial whose roots are the -th powers of its roots pushes the roots into a subgroup of index , and iterating over the prime divisors of produces a sequence ending at . The difficulty is to trace the roots back through this sequence, which [GvdHL15, GvdHL16, vdHM21] achieve using the tangent Graeffe transform; a related algorithm is given in [DPP16, Sec. 3.2], whose backward step calls an external root-finding procedure. These methods require to be smooth.
Our algorithm uses the recursive framework of [MS88] and changes the group it acts upon. Section 2.1 describes the correspondence, and Appendix A restates the cyclotomic algorithm in the formalism used here.
Replacing cyclotomy by elliptic curves. Substituting an elliptic curve of smooth group order for a smooth cyclotomic group is a classical technique in computational number theory. The best-known instance is the elliptic curve method for integer factorization [Len87], which replaces the smoothness assumption on in Pollard's algorithm by one on ; another is elliptic curve primality proving [GK86, AM93], which replaces the Pocklington test (and the partial factorization of it requires) by a condition on a suitably chosen curve.
Beyond these two examples, an elliptic-curve version of the AKS primality test was designed in [EL13]. A more recent instance arises in FFT-based multiplication: multiplying in by the classical FFT requires to contain many elements of smooth order, and when this fails one must build “synthetic” roots of unity [SS71, Für07, HvdH21]. The works of [BSCKL23] and [CL26] show that elliptic curves with many rational points of smooth order can be used instead. In all of these, as here, the arithmetic of is traded for the arithmetic of a group of rational points on an elliptic curve.
The closest precursor to the present work is the algorithm sketched at the end of [Rón92] for deterministic root-finding over . It may be read as an elliptic analogue of the Graeffe transform: given , a curve , and a prime dividing , it computes the polynomial whose roots are the -coordinates of the points , where ranges over the roots of and . Iterating projects the roots into subgroups of decreasing size, and recovering them amounts to computing points with . The resulting complexity is polynomial in , and the largest prime factor of , although the exponents are not made explicit.
Our algorithm differs from this one in two respects. First, its root-recovery step proceeds by lifting the problem to characteristic zero and exploiting the Galois structure of the torsion of a lift of E over Q [Rón92, Cor. 5.6]; this requires computing Galois groups of division polynomials, which is polynomial-time (the -torsion lies in an extension of degree less than ) but prohibitively expensive in practice, and is only known to be effective under GRH. Our algorithm performs all the computations over : it uses only the intrinsic group structure of elliptic curves over finite fields, and its online phase is unconditional. Second, we track the complexity of every step, which yields the explicit bound of Theorem 1.3, and the resulting algorithm is simple enough to be implemented.
Variants using isogenies in place of multiplication maps were proposed in [DPP16, Sec. 3.3]. There the roots are embedded on using Icart's map [Ica09], which forces . Inverting the isogeny, however, requires an external root-finding procedure.
Encoding field elements as points. The lifting of Section 2.2 is a deterministic encoding of into the rational points of a curve and its twist. Such encodings have been considered in cryptography, where hashing into elliptic curves is a well-studied primitive: see [SvdW06] and Icart's map [Ica09].
Compared with Icart’s map, our method imposes no congruence condition on , and it is injective, since is recovered from the -coordinate of its image; moreover, up to the sign of , it reaches every affine point of and of , except the (at most three) points of order 2 of . Nevertheless, it is not a substitute for a hash into a prescribed curve.
Other arithmetico-geometric approaches. Root-finding and factorization have also been approached through other objects of arithmetic geometry. Kayal proposed a factoring algorithm based on point-counting on elliptic curves, described in [Wol17], which Poonen extended to abelian varieties [Poo19]. A separate line is based on Drinfeld modules: it originates in [PP89], was rediscovered in [vdH04], and modern fast probabilistic algorithms in this framework are given in [Nar18, Nar19, DNS21]. Root-finding also arises when computing isomorphisms between representations of finite fields: constructing amounts to finding a root of in . Elliptic-curve methods for this problem are described in [Pin92]. Finally, one of the first applications of Schoof's algorithm [Sch85] was the computation of square roots modulo a prime, that is, root-finding for , the smallest nontrivial instance of Problem 1.1.
A recent claim by OpenAI. A recent preprint by OpenAI [Ope26] claims an unconditional deterministic algorithm that factors a polynomial in bit operations. Its unconditionality rests on a uniform zero-free region for Hecke L-functions established in a companion preprint, and its algebraic part alone is claimed to yield a polynomial-time algorithm under GRH. At the time of writing, this claim has not been reviewed or validated by the community, and no formalization of its proof is available.
Background on elliptic curves. Let be the elliptic curve defined by the equation , where with and , and let be a nonsquare. The facts below suffice to read this section; Section 3 gives details and references.
-
Group law. The set consists of the solutions of , together with a point at infinity . It is an abelian group with identity , in which the opposite of is ; the points of order 2 are thus the with . The coordinates of are rational functions of those of and (see Section 2.4), so adding two points takes operations in .
-
Group structure. with : unlike , this group need not be cyclic, but it is generated by two points, such as the points of the datum.
-
Group order. By Hasse’s theorem, the order of is , where the integer , called the trace of , satisfies . Thus lies in the Hasse–Weil interval .
-
Quadratic twist. is the curve , whose right-hand side is . Every with is the abscissa of two points of if is a square, and is the abscissa of two points of otherwise; each root of gives the point of and the point of . Hence the order of satisfies , that is, .
-
Division polynomials. For , the division polynomial vanishes at a point of if and only if . It plays the role of for , and its value at a point can be computed with ring operations by recurrence relations, as is by binary exponentiation.
2 Technical overview
This section is a self-contained account of the paper. We follow the algorithm from end to end, state the intermediate results with their complexities, and show how they assemble into Theorem 1.3; we then turn to the offline phase. Proofs are deferred to Sections 4–6.
Throughout, is the split separable input polynomial and . We fix an elliptic preprocessing datum (Definition 1.2) with curve , where , quadratic twist , group orders and , nonsquare , and we abbreviate .
2.1 From cyclotomy to elliptic curves
The deterministic algorithm of Mignotte and Schnorr [MS88] separates the roots of according to their images in the successive quotients of the -Sylow subgroup of , for each prime dividing . The group is cyclic, so each such quotient has exactly classes; and, as recalled in Section 1.3, the polynomial cutting out one class is a binomial, whose reduction modulo costs one binary exponentiation. However, the recursion runs over the prime divisors of , so the cost is governed by the largest of them.
We keep the recursion and replace by groups of rational points on elliptic curves. Every with lifts to a rational point of or of , according to whether is a square, so the pair , takes over the role of , and the relevant smoothness parameter becomes . Since the pairs of group orders realized by a curve and its twist range over almost the whole
Hasse–Weil interval (Proposition 1.4), this is a condition we may hope to satisfy for every , whereas is rigidly fixed by .
Table 1 lists the substitutions this requires, and Figure 1 shows a bird's-eye view of the resulting algorithm. Two subroutines are more delicate than their multiplicative counterparts: translating by a group element (Section 2.4), and the torsion test (Section 2.5).
| Cyclotomic (Mignotte–Schnorr) | Elliptic (this paper) |
| , cyclic of order Efficient when is smooth | and , of rank and orders Efficient when is smooth, i.e. when is small |
| A root is an element of | A root is lifted to a point of or of (Section 2.2) |
| A set of roots is a split polynomial | A set of points in or is a split divisor, encoded by a pair (Section 2.3) |
| Translation is multiplication by , a ring operation modulo Torsion test: gcd with , reduced by binary exponentiationEach torsion quotient is cyclic: classes per level | Translation by a point applies the group law to generic points (Section 2.4)Torsion test: gcd with the division polynomial , evaluated at a generic pointThe successive quotients of have rank : up to classes per level (Section 2.5) |
Table 1: The correspondence underlying our algorithm.

Figure 1: The online phase. The first two steps are the subject of Section 2.2, the third of Sections 2.4 and 2.5.
We illustrate each step on a running example, which the reader may follow from Example 2.1 onwards. Magma code reproducing this example is provided in the file ExampleIntro.mgm in [Spa26].
Example 2.1 (Running example: the datum). Take and , defining an elliptic curve of Frobenius trace . Then and , so that . We complete the datum with the nonsquare and the bases , of . In the model used by Algorithm 6, the twist is , with basis and of orders 2 and 48, so that . The input polynomial will be
2.2 Lifting the roots onto the curves
The common roots of and are the abscissas of the points of order 2, read off the datum; we assume from now on that is coprime with .
Lifting a root to a point of means producing a square root of ; lifting all roots at once, without knowing any of them, means producing a single polynomial with , so that sends the roots of to points of .
Such a exists as soon as is a square for every root of , by interpolation through arbitrary choices of square roots (Lemma 4.1); if instead is a nonsquare at every root, the same argument gives , and the roots lift to the twist. So we first split according to the quadratic character of , and then make the interpolant effective.
Splitting using the quadratic character. Since at every root of , the two GCDs
split f according to whether is a square, at the cost of one binary exponentiation and one GCD. Halving the exponent and recurring refines this into a factorization
indexed by the exponent for which has odd order (Algorithm 1). This is exactly the Mignotte–Schnorr recursion for , applied to the values . It runs in operations in ; see Proposition 4.2.
Interpolation. Once is known, Lemma 4.6 gives a square root in closed form. If is an inverse of 2 modulo and order is odd, then
is a square root of when is even, and of when is odd. This is a variant of Tonelli–Shanks in which the usual search is replaced by the known exponent ; being a formula, it can be applied to the generic point corresponding to the factor : substituting for and reducing modulo produces the desired . Applying this to each factor and recombining by the Chinese Remainder Theorem yields Algorithm 2: it returns polynomials such that , the roots of lift to through and those of lift to through , in operations in ; see Proposition 4.7.
Example 2.2 (Running example: the lift). Continuing Example 2.1, Algorithm 1 splits , and Algorithm 2 returns with , where
so that the five roots of are now points of .
2.3 Representing sets of points
Everything that follows is phrased in terms of divisors; we summarize here the terminology of Definition 4.3. A split divisor is a formal sum of pairwise distinct points of ; we call it simple if moreover it avoids and its points have pairwise distinct -coordinates. A simple divisor is encoded by its -coordinates: the monic polynomial whose roots are the -coordinates of the , and the interpolant of degree less than through their -coordinates, which satisfies . A simple divisor of degree is thus given by two polynomials of degree at most , and can be handled by polynomial arithmetic.
The restriction to simple divisors is needed to deal with the fact that two opposite points share an x-coordinate, so cannot separate them. A general split divisor is therefore represented as a sum of simple divisors with disjoint supports, plus a flag for ; our algorithms take and return such sums, and process each summand independently.
In this language, the problem reached at the end of Section 2.2 is Problem 4.5: given with split separable and , recover the corresponding points. It is the elliptic analogue of root-finding, and the object of Sections 2.4 and 2.5.
2.4 Translating a split divisor
In the multiplicative setting, translating a set of roots by is achieved by replacing by . We now describe how to perform the analogous operation on a curve. The -coordinates of a simple divisor are a rational parametrization of its support: the points of are exactly the , for ranging over the roots of . Translating by a rational point therefore amounts to applying the group law to the generic point , all computations taking place in ; a general split divisor is handled summand by summand. The chord-and-tangent formulas give
so that for every point of . The pair is thus a rational parametrization of the translate, but not yet its -coordinates. Recovering them requires the characteristic polynomial of multiplication by in , followed by an interpolation; these two operations are where the term in the complexity appears (Remarks 5.2 and 5.1).
A difficulty is that the translate of a simple divisor need not be simple: it may happen that for two distinct points of the support of , in which case the two translates share an -coordinate and no interpolant exists. Such collisions can be detected since they correspond to double roots of the characteristic polynomial. The algorithm interpolates the -coordinates only modulo the factor of whose roots are the -coordinates of the non-colliding points: is injective on these roots, so the interpolation problem is well posed. The colliding pairs are split off into separate simple summands, so the output is again a sum of simple divisors. The resulting procedure, Algorithm 3, translates a split divisor by a rational point within operations in ; see Proposition 5.3.
2.5 The elliptic Mignotte–Schnorr recursion
Next, we explain how we separate points according to their torsion classes. Fix a prime dividing , set , write for the part coprime to , and let . The aim of one level of the recursion is to split a divisor whose support lies in according to the class of its points in . Given a system of representatives of that quotient, the test to be performed on a point of the support is whether , for each . This is a torsion membership test, and the division polynomial cuts out exactly the corresponding points. Combining the translation formulas of Section 2.4 with one GCD per class gives Algorithm 4.
Rather than expanding the division polynomial, we evaluate directly at a generic point modulo using its recurrence relations, in operations (Remark 5.4); this is the analog of binary exponentiation in the cyclotomic case. The generic points to which the test is applied are the translates provided by Section 2.4. Algorithm 4 performs operations in , and only when the quotient is cyclic; see Proposition 5.5.
Rank-two torsion. The factor has no cyclotomic counterpart. Since is cyclic, its torsion quotients have exactly classes, and one level of Mignotte–Schnorr costs GCDs. The group , by contrast, has rank up to 2, so may be isomorphic to and . This is why is squared in Theorem 1.3, and why Remark 5.9 recovers a linear dependence when both groups are cyclic. The set itself is read off the datum: with ,
the term in being omitted when .
Iterating over , with a translation between consecutive levels, decomposes along the whole -Sylow subgroup; this is Algorithm 5, which performs operations in , again with in place of when is cyclic; see Proposition 5.6.
Running this for every prime dividing separates any two distinct points of the support: if lie in , some prime power in the group order distinguishes them. Hence every simple divisor is eventually reduced to degree 1, and a divisor of degree 1 with coordinates gives back the root via . Doing this on and on yields Algorithm 6.
Example 2.3 (Running example: one level of the recursion). Continuing Example 2.2, take . Since , the image of multiplication by 18 is isomorphic to . Computing , a polynomial in since 18 is even, modulo by the recurrences of Remark 5.4 gives
As , the roots of that are -coordinates of 18-torsion points are the common roots of and of this quotient, whence with
Iterating over the levels and over , with a translation between consecutive levels, drives every factor down to degree 1.
2.6 Assembling the complexity bound
Table 2 sums up the complexity bounds established above. It remains to explain how the last line follows from the others, since this is the only point at which the quantity appears.
Recall that the lifting splits , and that the recursion is then run on , over the primes , for the roots of , and on , over the primes , for those of . We carry out the analysis for . It calls Algorithm 5 once per prime , on divisors whose degrees sum to ; since , the costs add up at worst as if a single divisor of degree were processed. The total is therefore , and the whole dependence on the field is in the sums and . By definition of , every dividing satisfies , and since , we have . Hence . A similar analysis on gives the same bound with in place of . Adding the two runs and the cost of the lifting yields , which is Theorem 1.3. The same computation with in place of when both groups are cyclic gives the improved bound of Remark 5.9.
| Subroutine | Algorithm | Cost in operations in | Reference |
|---|---|---|---|
| 2-adic splitting of | Alg. 1 | Prop. 4.2 | |
| Lifting onto and | Alg. 2 | Prop. 4.7 | |
| Translating a split divisor | Alg. 3 | Prop. 5.3 | |
| One level of the recursion | Alg. 4 | Prop. 5.5 | |
| Decomposition along the -Sylow | Alg. 5 | Prop. 5.6 | |
| Whole online phase | Alg. 6 | Thm. 5.8 |
Table 2: Costs of the subroutines of the online phase, with .
2.7 The offline phase
The existence and construction of good preprocessing data were discussed in Section 1.2, and are treated in detail in Section 6; we only explain here why a datum is easy to verify. Besides elementary checks on , , and the , and trial division up to for the claimed factorizations of and , it suffices to check that and are independent and that order order. Then divides , and for the Hasse–Weil interval contains no other multiple of : the group order is certified without any point counting. With the same checks on , the verification is deterministic, unconditional, and polynomial in and (Proposition 6.4).
2.8 Organization of the paper
Section 3 fixes notation and recalls the necessary background on elliptic curves and division polynomials. Sections 4 and 5 are devoted to the online phase, and prove the statements of Sections 2.2–2.6: Section 4 shows how to embed the roots into rational points, and Section 5 presents the decomposition of split divisors and our main algorithm. Section 6 turns to the offline phase, and establishes in Section 6.4 that a datum can be verified efficiently. Section 7 provides experimental evidence for Conjecture 1.5 and describes our proof-of-concept implementation. Section 8 concludes with perspectives and open questions. Appendix A restates the Mignotte–Schnorr algorithm in the formalism of this paper.
Acknowledgements. The author thanks Bill Allombert, Alin Bostan, Pierrick Gaudry, Joris van der Hoeven, François Morain, Christophe Petit, Benjamin Smith for helpful discussions. This work received funding from the France 2030 program managed by the French National Research Agency under grant agreement No. ANR-22-PETQ-0008 PQ-TLS.
AI methodology. We used Claude Opus 5.5 (Anthropic) to assist with the presentation and the wording, the detection of typos and minor errors, and a few scientific contributions. The tool materially affected Sections 6.2 and 7.1, as well as the complexity analyses of Sections 4 and 5. In more detail, the scientific project underlying this work was carried out without any AI tool: a complete earlier version of this paper, together with the accompanying Magma code, was written without any such tool, and Claude Opus 5.5 was only used afterwards. Compared to the first AI-free version of this work, a few scientific contributions are to be credited to Claude Opus 5.5: the connection between Conjecture 1.5 and the question of Erdős and Graham on sums of two smooth integers, and the heuristic estimate based on the Dickman function that supports this conjecture (Sections 6.2 and 7.1). Some improvements of the complexity bound were also suggested by AI: the AI-free version of the complexity was , and the AI suggested the optimizations required to obtain the improved bound. All passages rephrased with the help of AI have been carefully proofread by the author, and modified where needed, to ensure that they convey the intended meaning. The author verified the correctness and originality of all content, including references.
3 Preliminaries and notation
General notation. Throughout the paper, denotes a prime greater than 3, and is a power of . When a finite field is given as input to an algorithm, we implicitly assume that an -basis of is provided, together with its multiplication table. The assumption allows us to use short Weierstrass equations as convenient models for elliptic curves.
For real numbers , we denote by the set of integers between and . For an integer , we write . We write for a feasible exponent of matrix multiplication; in particular, using .
We occasionally assume the Generalized Riemann Hypothesis (GRH); whenever this assumption is used, it will be stated explicitly.
We use the standard notations and . Let be functions on some domain . We write (or ) if there exists a constant such that for all , . We write if there exist constants such that for all , .
Finally, we recall that the exponent of an abelian group is the maximum order of its elements.
Elliptic curves and their quadratic twists. An elliptic curve is a smooth projective curve of genus 1, with a fixed rational point. For general background, we refer to the standard references [Sil09, CFA 05].
When , any elliptic curve over admits a short Weierstrass model: it is -isomorphic to the projective closure of an affine curve given by an equation , for some satisfying . The -invariant of such a curve is defined by . Two elliptic curves defined over are -isomorphic if and only if they have the same -invariant.
Let be given by a short Weierstrass equation , and let be a nonsquare. The quadratic twist of by is the elliptic curve over defined by the projective closure of .
Over finite fields, all quadratic twists of are -isomorphic. In particular, a representative can be written in short Weierstrass form as , and we denote this curve by .
Rational points on elliptic curves. An elliptic curve given as the projective closure of a short Weierstrass equation has a unique point at infinity, denoted by . The set of rational points consists of the affine points with coordinates in , together with .
The set carries a group structure, where is the identity element. This group law can be described geometrically: if a projective line intersects at three rational points (counted with multiplicity), then their sum equals .
The integer is the (Frobenius) trace of . By Hasse's theorem [Sil09, Thm. V.1.1], , i.e. lies in the Hasse–Weil interval . The quadratic twist has trace , that is, : in the model , each is the abscissa of exactly two affine points of and together.
It is well-known that is isomorphic to for integers such that [Mil04, Sec. 6]. Given points and integers , we denote by the point of obtained by applying the group law. The brackets are used to distinguish this point from the corresponding formal sum viewed as a divisor.
For a positive integer , we denote by the -torsion subgroup, that is, the set of points such that . In particular, if is prime, then is either trivial (if ), isomorphic to (if but ), or isomorphic to (if ).
More generally, for , the quotient is either trivial, isomorphic to , or isomorphic to , depending on the -adic valuations of and .
We denote by the -Sylow subgroup of , that is, the set of points whose order is a power of . It is isomorphic to .
Finally, for an elliptic curve over with quadratic twist , we denote by the largest prime factor of the product . This notation is consistent with that of Definition 1.2: if is the curve of an elliptic preprocessing datum , then .
Division polynomials. Let be an elliptic curve over given by a short Weierstrass equation , and let be an integer. The -th division polynomial is a polynomial whose zero locus (in ) corresponds to the nonzero -torsion points of . These polynomials satisfy recurrence relations that are central to fast computations (see Remark 5.4). We refer to [CFA05, Sec. 4.4.5.a] for further details.
4 Encoding the roots as rational points on an elliptic curve
A split separable polynomial defines an ideal . An elliptic curve given by a Weierstrass equation gives rise to a degree-2 extension of rings
where denotes the ring of functions regular on .
The goal of this section is to describe a fast deterministic algorithm to construct, when possible, generators of an ideal such that induces an isomorphism
Equivalently, we require that and that
In other words, we seek to lift the roots of to rational points on the elliptic curve . This is possible only if is a square in for every root of : composing the isomorphism above with the evaluation at yields a ring morphism sending to , and the image of then satisfies , so that . Conversely, when this condition holds, the following lemma shows that such an ideal exists, namely the ideal generated by and , where has degree less than and satisfies .
Lemma 4.1. 1. If is a square in for every root of , then there exists a (non-unique) polynomial of degree less than such that .
- Let be a nonsquare in . If is a nonsquare in for every root of , then there exists a (non-unique) polynomial of degree less than such that .
Proof. We prove the first statement. For each root of , choose a square root of . By interpolation, there exists a polynomial of degree less than such that for all roots of . This polynomial satisfies .
The second statement is proved similarly, by choosing for each root a square root of .
4.1 2-adic factorization via evaluation
Assume now that is coprime with , so that for every root of . Fix a nonsquare . We compute a factorization , where is finite, and such that for every root of , the element has odd multiplicative order. As will follow from Lemma 4.6, is then a square if and only if is even. Each factor with even (resp. odd) therefore satisfies the conditions of the first item (resp. second item) of Lemma 4.1, which allows us to lift its roots to rational points on (resp. on its quadratic twist ).
We now describe the core subroutine underlying this factorization, which is the Mignotte–Schnorr recursion for , applied to the values rather than to the roots themselves.
Suppose first that we only wish to split into two factors and , where (resp. ) groups the roots such that is a square (resp. a nonsquare). Since for every root of , with the sign recording whether is a square, it suffices to compute
by binary exponentiation, and then to set for .
To refine this into the full 2-adic decomposition, we recurse on each , halving the exponent at each level: for the recursive call with parameter , the relevant exponent is , and the value is changed to so that the recursive call inputs an element whose order has 2-adic valuation at most . The recursion has depth at most , and the degrees of the sum to at each level, which is what yields the bound of Proposition 4.2. The overall procedure is summarized in Algorithm 1.
Proposition 4.2. Algorithm 1 (TWOADICFACTOWITHEVAL) terminates and is correct. It performs at most arithmetic operations in .
Proof. Termination follows immediately, since each recursive call decreases m by one.
We next prove correctness. The return statements at Lines 1 and 2 are clearly correct.
It remains to consider the return statement at Line 11. We first show that the polynomials
Algorithm 1: TWOADICFACTOWITHEVAL: 2-adic factorization via evaluation.
Input:
- A prime power ;
- A nonnegative integer ;
- A univariate polynomial ;
- A monic, split and separable polynomial coprime with such that every root of satisfies ;
- An element such that .
Output:
- A finite subset ;
- A finite set of pairs such that are monic nonconstant polynomials, and for ,
1 if then Return ; 2 if then Return ; 3 ; 4 ; 5 for do 6 ; 7 TWOADICFACTOWITHEVAL(); 8 ; 9 for do ; 10 end 11 Return .
and computed at Line 6 satisfy
Indeed, for every root of , the equality
holds if and only if , whereas the equality
holds if and only if .
We check that the inputs to the recursive calls at Line 7 are valid. The parameter passed in place of is . The element passed in place of is , and as required, because is even for . Finally, the polynomial passed in place of is ; by (4.1) and (4.2), every root of satisfies when and when , so that in both cases . Coprimality of with this polynomial follows from that of with .
By induction, each recursive call returns the required factorization. Combining the two outputs and replacing each index by yields the required factorization of . This is the same argument as in the classical Mignotte–Schnorr algorithm for ; see [MS88, Proof of Thm. 1] or [GvdHL15, Proof of Lem. 3].
We now analyze the complexity. If or then no arithmetic operation is performed. Otherwise, it computes by binary exponentiation (Line 4), two GCDs (Line 6) and the polynomials . This costs , that is, at most
operations in , for some constants independent of the inputs.
We sum these costs over the tree of recursive calls. Let and , and set . Outside its recursive calls, the top-level call costs at most . A call at depth receives a factor of , together with a polynomial in place of . Since is obtained by reducing the polynomial of the parent call modulo , we have and, by induction on the depth, . Hence is at most , which bounds the logarithmic factor by , and at most since . The cost of this call is therefore at most . The degrees of the factors received at a given depth sum to at most and only the depths contribute. For , the total cost is therefore at most
Finally, , which yields the bound .
4.2 Lifting split polynomials to split divisors
We begin by describing how to encode split divisors. When a split divisor D does not involve the point at infinity and the x-coordinates of the points in its support are distinct, it admits a rational parametrization, and it can be encoded using two univariate polynomials. This representation is closely related to the Mumford coordinates used to encode points on Jacobians of hyperelliptic curves .
Definition 4.3. A split separable divisor on is a finite formal sum , where the points are pairwise distinct. If, in addition, does not contain the point at infinity and the -coordinates of the points are pairwise distinct, then we say that it is simple.
If is given by a short Weierstrass equation , a simple divisor can be encoded by a pair of polynomials, where:
-
is the monic split polynomial whose roots are the -coordinates of the points ;
-
is the unique polynomial of degree less than such that for all points in the support of ; in particular, .
For simplicity, we abbreviate split separable divisor as split divisor. Any split divisor can be written as or , where the are simple divisors with disjoint supports; we encode by the -coordinates of the , together with a flag indicating whether lies in its support. This representation allows us to manipulate collections of points on using polynomial arithmetic.
Remark 4.4. The terminology split separable reflects the fact that such divisors correspond to split separable ideals , i.e., ideals that decompose as intersections of maximal ideals with residue field . Equivalently, as an -algebra for some integer .
We introduce the following elliptic-curve analogue of the root-finding problem:
Problem 4.5 (Decomposition of split divisors on elliptic curves). Let be an elliptic curve over given by a Weierstrass equation . Given two polynomials such that is split and separable and , compute the set of points satisfying and .
The goal of this section is to lift the classical root-finding problem to this elliptic-curve setting.
Split divisors play the role of split polynomials in the elliptic-curve setting. Algorithm 2 lifts a split polynomial to a pair of split divisors , where lies on and lies on its quadratic twist. This allows us to reduce the root-finding problem (Problem 1.1) to its elliptic-curve analogue (Problem 4.5).
For a given such that is a nonzero square in , the equation has exactly two solutions in . Equivalently, there are exactly two rational points on with -coordinate equal to . These points can be computed via modular square root extraction, for instance using the Tonelli–Shanks algorithm.
The next lemma provides a variant of the Tonelli–Shanks method, giving an explicit formula for a square root under the assumption that an exponent with order odd is known. This result will play a key role at Line 8 of Algorithm 2. The idea is to normalize using powers of a nonsquare so that its order becomes odd, allowing square roots to be extracted via exponentiation.
Lemma 4.6. Let be such that is a nonsquare, and let be an inverse of 2 modulo odd . Let be such that order is odd, and define
If is a square, then is even and is a square root of in . If is not a square, then is odd and is a square root of .
Proof. The order of is odd and divides , hence divides . Since , we get , and therefore , which equals if is even and if is odd. Moreover, is a square; as is a nonsquare, is a square if and only if is even.
The simplest instance of Lemma 4.6 occurs when . In this case, , , and . This recovers the classical map , which sends squares to their square roots. This corresponds to the well-known exponentiation method for extracting square roots in finite fields when .
Algorithm 2: FINITEFIELDEMBEDDING: lifting a split separable polynomial to split divisors on an elliptic curve and its quadratic twist.
Input:
- A prime power ;
- A polynomial ;
- A monic, split and separable polynomial coprime with ;
- A nonsquare in .
Output: Four polynomials such that are monic with , and , , with and .
1 ;
2 ;
3 ;
4 ;
5 ;
/* : roots mapping to , : roots mapping to the twist. */
6 modular inverse of 2 modulo ;
7 for do
/* Compute square roots via Lemma 4.6 */
8 ;
9 end
/* Reconstruct global square roots via CRT */
10 Using the CRT, compute of degree less than such that for all ;
11 Using the CRT, compute of degree less than such that for all ;
12 Return .
We now analyze Algorithm 2, proving its correctness, termination, and complexity bounds.
Proposition 4.7. Algorithm 2 (FINITEFIELDEMBEDDING) terminates and is correct. It performs at most arithmetic operations in .
Proof. Termination follows directly from that of TWOADICFACTOWITHEVAL, see Proposition 4.2.
By the Chinese Remainder Theorem, it suffices to prove that the polynomials computed at Line 8 satisfy
when j is even, and
when is odd. This reduces to showing that for any root of (that is, any root of such that ), we have
and
This follows from Lemma 4.6, applied with .
We now turn to the complexity analysis. Running FINITEFIELDEMBEDDING requires one call to TWOADICFACTOWITHEVAL, one modular inversion, loop iterations, and one application of the Chinese Remainder Theorem. The cost of all these operations is straightforward to estimate. A slightly more delicate step is the computation of the values , which can be performed using binary exponentiation at a total cost of , since .
The remainders , for , are computed beforehand: we first reduce modulo , in operations, and then reduce the result simultaneously modulo all the using a remainder tree, in operations since , see [vzGG03, Sec. 10.3]. Given these remainders, each modular exponentiation at Line 8 costs operations; summing over all yields a total cost of . Therefore, the complexity is dominated by the cost of the call to TWOADICFACTOWITHEVAL, which is arithmetic operations by Proposition 4.2. The inequality concludes the proof.
5 Factoring with elliptic curves
In this section, we study the Mignotte–Schnorr framework for solving the decomposition problem on elliptic curves (Problem 4.5). This framework requires two operations: (i) separating points lying in the kernel of a multiplication map, and (ii) translating a divisor by a given point.
In the classical cyclotomic setting for factoring a polynomial , (i) is achieved by computing the GCD of with for suitable divisors of , while (ii) is achieved by replacing with for some .
In our elliptic-curve setting, when decomposing a simple divisor given by its -coordinates, (i) is achieved by computing the GCD of with the evaluations of division polynomials, for suitable divisors of . The goal of the next subsection is to describe an algorithm that realizes (ii).
5.1 Translating split divisors
In this subsection, we describe Algorithm 3, which provides a method to translate split divisors by a rational point Q on the curve. The algorithm translates each simple component of the divisor by computing the image of its points under addition with Q, using algebraic operations on the representation. The main idea is to express the group law on E in terms of polynomial operations, and to recover the translated divisor via characteristic polynomials.
We begin with a few remarks on the subroutines used in this algorithm.
Remark 5.1. To compute at Line 10 in Algorithm 3, we need to solve the following interpolation problem. Given a split separable monic polynomial , and polynomials and of degree less than , compute a polynomial such that . This problem can be viewed as interpolating the values of on the image of the roots of under . This is an implicit form of the Lagrange interpolation problem: the polynomial must satisfy for every root of . The difficulty lies in performing this interpolation without explicitly knowing the roots of .
For the problem to be well posed, we assume that is injective on the roots of . Under this assumption, the conditions , one for each root of , form a square linear system whose unknowns are the coefficients of , sought of degree less than . Its matrix is the Vandermonde matrix of the values , so exists and is unique. If the roots of were known, such a polynomial could be computed in operations using a subproduct tree, see [vzGG03, Sec. 10.2]. However, without access to the roots, the best method we are aware of is to solve a linear system whose unknowns are the coefficients of . Setting up this system requires the powers for , at a cost of operations, and solving it costs . We discuss in Section 8.1 how this linear system might be avoided, by viewing the problem as an instance of inverse modular composition.
Remark 5.2 (Computing ). At Line 6 of Algorithm 3, we need to compute the characteristic polynomial of the linear map
where and is a split, separable, monic polynomial. A matrix representation of this map in the basis can be computed in operations, by iteratively computing . The characteristic polynomial of this matrix can then be computed deterministically in operations using the algorithm of Neiger and Pernet [NP21], which removes the logarithmic factor in the complexity of Keller-Gehrig's algorithm [KG85].
Proposition 5.3. Algorithm 3 (ECTRANSLATION) terminates and is correct. It performs at most arithmetic operations in .
Proof. Termination is immediate, since the algorithm involves no recursive calls and only finite loops. The termination of FINITEFIELDEMBEDDING at Line 12 is established in Proposition 4.7.
We now prove correctness. The case is settled at Line 1, since translation by the neutral element leaves every point of unchanged; we assume from now on that is an affine point. If is a sum of simple divisors, the algorithm processes each summand independently and returns the sum of the translated divisors. Therefore, it suffices to consider the case where is a simple divisor (so that for ), encoded by its -coordinates. In particular, contains a single index .
Algorithm 3: ECTRANSLATION: Translation of a split divisor by a rational point.
Input:
- An elliptic curve over given by a short Weierstrass equation , with ;
- A split divisor encoded as a finite sum of simple divisors, where is encoded by its -coordinates;
- A rational point , written when , such that neither nor lie in the support of ;
- A nonsquare in .
Output:
- A representation of the split divisor .
1 if then Return ;
2 for do
3 Let be the -coordinates of ;
4 ; /* is invertible since are not in the support. */
5 ;
6 characteristic polynomial of the multiplication by in ; /* See Remark 5.2 on how to compute this characteristic polynomial. */
7 ;
8 ; /* We have . */
9 ; /* is the product of the for those roots of whose image under is not shared by another root, and . */
10 Compute of degree less than such that
/* See Remark 5.1 for details. */
11 Let be the simple divisor with -coordinates ;
12 ;
13 Let and be the simple divisors with respective coordinates and ;
14 end
15 Return .
A difficulty is that the translation of a simple divisor need not be simple. Define
The set encodes pairs of points whose images under translation by have the same -coordinate. Equivalently, is a simple divisor if and only if is empty.
We first show that
The second product runs over a set. Indeed, if , then , and the sign + forces . Hence is a disjoint union of pairs with , the two indices of a pair give the same abscissa, and . To prove these two identities, we show that
For each , let , where is a root of and . Using the group law on elliptic curves (and the assumption that ), we obtain . Since
it follows that is an eigenvalue of multiplication by in . Thus, each contributes an eigenvalue of multiplicity 1, while each pair as above contributes the eigenvalue with multiplicity 2 (corresponding to two eigenvectors). The computation of and at Lines 7 and 8 separates these contributions according to multiplicity.
Next, we show that for any , we have
This follows from the relation
By construction, , so this congruence imposes exactly one condition at each , and is injective on the roots of ; by Remark 5.1, is therefore well defined and unique. Reducing this identity modulo , for , and using , together with the standard formula for the group law,
we conclude that provides the correct parametrization for
Finally, we show that
By construction, the set is stable under negation. We first prove that it contains no 2-torsion point. Indeed, if were a 2-torsion point, then there would exist such that
which would imply , contradicting .
Thus, FINITEFIELDEMBEDDING lifts the set to a simple divisor containing exactly one point of each pair , for . By construction, , and therefore
which concludes the proof of correctness.
We now analyze the complexity. Within one iteration of the loop, computing and costs , and so do the GCD and the division at Lines 7 and 8. Four steps are more expensive:
• computing the characteristic polynomial at Line 6 costs operations, see Remark 5.2;
- computing at Line 9 requires one modular composition followed by one GCD. The modular composition costs operations by the algorithm of Brent and Kung [BK78] and the GCD costs , so this step is , since ;
• computing at Line 10 costs operations, see Remark 5.1;
• calling FINITEFIELDEMBEDDING at Line 12 costs operations, see Proposition 4.7.
Summing over and using together with the superadditivity of , we obtain
operations in , which is the claimed bound.
5.2 Deterministic decomposition of split divisors on elliptic curves
At this point, we have all the subroutines needed to describe our deterministic factorization procedure. Before presenting the full algorithm, we first describe a partial factorization step that is applied for any prime dividing , following the approach of Mignotte–Schnorr.
For a given prime and an integer , Algorithm 4 decomposes a split divisor according to the projections of its points onto the quotient group .
More precisely, let be a point such that . Then can be projected onto by multiplying it by the cofactor
If and are two such points for which and lie in distinct classes modulo , then Algorithm 4 separates them, as they are assigned to distinct output divisors. Intuitively, this procedure performs one level of the separation of points according to their projection on the -Sylow subgroup of ; the full separation is obtained by iterating it over the levels,
Algorithm 4: ECPRIMARYFACTOATLEVELM:Partial factorization of a split divisor via projection onto .
Input:
- An elliptic curve over given by a short Weierstrass equation;
- A prime number dividing ;
- A positive integer ;
- A set (of cardinality or ) of representatives for the classes in ;
- A split divisor , where each is a simple divisor, such that all points in its support lie in , where , and such that neither the support of nor its set of opposites intersects .
Output:
- A family of split divisors , where consists of the points such that .
1 for do 2 Let be the -coordinates for ; 3 for do 4 if then 5 ; 6 ; 7 else 8 ; 9 /* is invertible modulo since no point in the support of (nor its opposite) lies in . / 9 ; 10 ; 11 end 12 ; 13 / Computed directly in , see Remark 5.4. */ 14 ; 15 ; 16 end 17 Return , where is the simple divisor with coordinates .
see Algorithm 5 below. The algorithm combines translation on the elliptic curve with division polynomials to detect membership in torsion subgroups.
Algorithm 4 requires the efficient computation of modular reductions of division polynomials. The following remark explains how to perform this step.
Remark 5.4. For and a fixed elliptic curve , the value of the division polynomial at a generic point , as required at Line 12 of Algorithm 4, can be computed within operations, without expanding .
Using the classical recurrence relations for division polynomials, we have
These relations imply that any block of eight consecutive division polynomials starting at index can be computed from the block starting at index (base cases: , and the explicit ). The second relation should not be used to divide by , which may become a zero divisor modulo . Instead, we use the classical normalization for odd and for even , where : substituting it into the relations above and replacing by yields recurrences on the polynomials that involve no division. These recurrences are polynomial identities, so they remain valid after substituting for and reducing modulo . We obtain a recursive algorithm computing with operations in the quotient ring , that is, arithmetic operations in . The requested value is if is odd, and if is even.
This approach is hinted at in [Mor07, Sec. 3.1], see also [Che03, Proof of Lem. 4.1] for a similar analysis. This is analogous to a fast doubling method for division polynomials, similar in spirit to binary exponentiation. We implemented it in our proof-of-concept software as the function DivisionPolynomialAtPoint in [Spa26].
Proposition 5.5. Algorithm 4 (ECPRIMARYFACTOATLEVELM) terminates and is correct. It performs at most operations in . This complexity bound can be improved to if is cyclic.
Proof. Termination is immediate, since the algorithm only involves loops over finite sets.
We now prove correctness. We must show that the roots of are precisely the x-coordinates of the points such that .
First, an argument similar to the proof of Proposition 5.3 shows that for any point , the coordinates of satisfy
Next, we observe that if and only if
that is,
Finally, since is a root of , the left-hand side is , so this is equivalent to , which proves correctness.
We now analyze the complexity. The total number of iterations of the main loop is , where if is cyclic, and otherwise.
In each iteration, the costs are the following:
• computing , and costs , since each involves a constant number of multiplications and one inversion modulo ;
• the computation of costs , see Remark 5.4;
• the final GCD and remainder cost .
The dominant term is therefore , and summing over all loop iterations yields the stated complexity bound.
Algorithm 4 performs only one level of the decomposition: assuming that all points of lie in , it splits according to their classes modulo . It is not recursive, and its outputs are subdivisors of : the translations by , for , only serve to test whether lies in , and the translated divisors themselves are not returned. We now present Algorithm 5, which chains these levels for and thereby separates points according to their full projection onto : if and are two points of such that , then they end up in distinct output divisors.
The articulation between the two algorithms is as follows. At level , Algorithm 5 builds the set of representatives from the generators (Line 4) and calls Algorithm 4 (Line 11). Each resulting divisor has its support in the coset , and is therefore not a valid input for the next level in general. It is translated by using Algorithm 3, which brings its support into ; the result is decomposed recursively at level (Line 16), and the output divisors are translated back by . Moreover, Algorithm 4 requires that neither the support of nor its set of opposites meets , since the translation formulas are not defined at such points. Algorithm 5 enforces this condition beforehand (Line 5): a point of such that or lies in , so that its class is known in advance, and it is set aside before the recursive call at Line 6.
The level is an input parameter of Algorithm 5, decremented along the recursion. In the top-level algorithm (Algorithm 6), we call it with the maximal value , ensuring that the required condition on is always satisfied.
Proposition 5.6. Algorithm 5 (ECPRIMARYFACTO) terminates and is correct. It performs at most operations in . This complexity bound can be improved to if is cyclic.
Proof. We begin by proving termination. The termination of the subroutines ECPRIMARYFACTOATLEVELM and ECTRANSLATION is established in Propositions 5.5 and 5.3. All loops in ECPRIMARYFACTO are finite, so it remains to prove that the recursive calls at Lines 6 and 16 terminate.
This follows by induction. The base cases and terminate (Lines 1 and 2). In the recursive calls, either decreases (Line 16) or decreases (Line 6), so termination follows from the induction hypothesis.
We now prove correctness. We first verify that all subroutine calls are made with valid inputs. The set computed at Line 4 forms a system of representatives of , so the input to ECPRIMARYFACTOATLEVELM at Line 11 is valid.
Next, we check that the recursive call at Line 16 is valid, i.e. that all points in lie in . This follows from the correctness of ECPRIMARYFACTOATLEVELM and ECTRANSLATION (Propositions 5.5 and 5.3).
The two calls to ECTRANSLATION in the loop at Line 13 are valid as well. For the translation of by , the points do not lie in the support of , by the condition at Line 5. For the translation of by , a point of its support equal to would be of the form with and . If , then lies in , hence which is excluded by the condition at Line 5, since .
Algorithm 5: ECPRIMARYFACTO: Partial factorization of a split divisor by projecting on .
Input:
- An elliptic curve over given by a short Weierstrass equation;
- A prime number dividing ;
- A nonnegative integer ;
- Generators of the group such that order( ) order( ) = ;
- A split divisor on , such that all points in its support lie in ;
- A nonsquare in .
Output:
- A finite set ;
- A finite set of tuples where is the split divisor formed by the points such that , and .
1 if then Return ; 2 if then Return ; 3 ; 4 ; /* Whenever , the term of index is omitted. Hence if , and otherwise. / 5 if contains a point such that or then 6 ; / Since or , we have . */ 7 if then ; ; 8 else ; ; 9 Return ;
10 else 11 ; 12 ; 13 for do 14 if then 15 ; 16 ; 17 ; 18 for do 19 ; 20 end 21 end 22 end 23 end 24 Return .
We now prove that the output is correct. We proceed by induction on and . The base cases and are handled at Lines 1 and 2. Assume now that and .
We distinguish two cases, depending on the condition at Line 5. If the condition holds, the algorithm extracts a point and recursively processes , which yields a correct decomposition by induction. Then is added to the result. Since or , and , we have . As , the intersection is trivial, so the unique with is . This is the class under which the algorithm adds .
Otherwise, let be a point in . The subroutine ECPRIMARYFACTOATLEVELM decomposes so that belongs to , where is such that . Hence . By the induction hypothesis, the recursive call at Line 16 returns a decomposition in which belongs to some , with and . Translating back by , we obtain that belongs to , and is an -torsion point, as required.
We now analyze the complexity. The total cost is dominated by the subroutine calls, as the additional operations are negligible in comparison. Write and, for every integer ,
The function is nondecreasing and, since , superadditive: . As in the proof of Proposition 4.2, we sum the costs over the tree of recursive calls, with explicit constants that do not depend on the depth.
We group the calls according to their level parameter ; the calls at level 0 perform no operation (Line 1). For , the calls at level form disjoint chains, each made of an entry call, which is either the top-level call or a call made at Line 16 by a call at level , followed by successive calls at Line 6. Consider such a chain, whose entry call receives a divisor of degree ; we exclude from its cost the entry calls at level that it makes at Line 16.
The points removed at Line 6 are pairwise distinct elements of , where depends only on , and , so the chain makes at most calls at Line 6. Each of them rebuilds and finds a point of the divisor whose abscissa is that of a point of by one GCD, at a cost of , hence in total. The last call of the chain may also call ECPRIMARYFACTOATLEVELM on a divisor of degree , at a cost of (Proposition 5.5), followed by the translations in the loop at Line 13, which cost in total by Proposition 5.3 and superadditivity. Since , there exist constants , independent of the inputs, such that the chain costs at most operations in .
The entry calls at level made by the chain receive the divisors , , whose degrees sum to . By induction on , the degrees of the entry calls at each level therefore sum to at most . Set . As is nondecreasing and superadditive, each level costs at most , and the total cost is at most . Since for , this yields the bound .
If is cyclic, then for every , the quotient is cyclic, so that . The same argument, with replaced by throughout (including in Proposition 5.5), yields the improved bound.
We now present the top-level algorithm combining all the above subroutines as Algorithm 6. This is the online phase announced in Section 1.2: its only input besides is an elliptic preprocessing datum (Definition 1.2), whose construction is deferred to Section 6. The algorithm proceeds in three stages: first, it lifts the roots of to divisors on E and its quadratic twist; second, it recursively decomposes these divisors using projections on -Sylow subgroups; finally, it recovers the roots from the resulting linear factors.
Throughout, we write for the curve of , with . Recall from Section 3 that the quadratic twist of with respect to has Weierstrass equation , where
which is the change of variables used at Lines 13 and 18 below.
Remark 5.7. The datum carries everything the subroutines require. The prime divisors of and the valuations are read off ; the orders of and are computed from , so that and, for every prime , ; and since , the points and form a generating pair of the -Sylow subgroup with order , as required by Algorithm 5. The same holds for .
Theorem 5.8. Algorithm 6 (ECROOTFINDING) terminates and is correct. It performs at most arithmetic operations in .
Proof. The termination is straightforward: all loops in the algorithm are unconditional, and the termination of the subroutines FINITEFIELDEMBEDDING and ECPRIMARYFACTO has been established in Propositions 4.7 and 5.6.
We now prove correctness. We first look at Line 1. The roots of lying in are the -coordinates of the points of . Since , the group is generated by for those with order even, so these -coordinates are obtained by two scalar multiplications. The roots of are exactly those at which vanishes. After this step is coprime with .
By Proposition 4.7, we have , so the set of roots of is the union of the roots of and . We show that the roots of (resp. ) are precisely (resp. ).
First, since ECPRIMARYFACTO is correct (Proposition 5.6), at every stage of the algorithm the product of all polynomials in (resp. ) equals (resp. ). It remains to prove that, at the end of the algorithm, all polynomials in (resp. ) have degree 1.
We detail the argument for , the case of being analogous. Suppose by contradiction that there exists of degree greater than 1 at the end of the algorithm. Since is split, has two distinct roots . As , both and are nonzero squares. Let and , and consider the points and in .
The integers , for ranging over the primes dividing , have GCD 1. Since , the order of is not 1, so it does not divide all of them: there exists a prime dividing such that
Hence P and lie in distinct components after the call to ECPRIMARYFACTO at Line 9 for this value of , contradicting the fact that they remain roots of the same polynomial in F at the end of the algorithm.
We now analyze the complexity. The dominant contributions come from the subroutines FINITE-FIELDEMBEDDING and ECPRIMARYFACTO, as the remaining operations are negligible.
Algorithm 6: ECROOTFINDING: Deterministic root-finding algorithm using elliptic curves.
Input:
- A monic, split and separable polynomial ;
- An elliptic preprocessing datum for , where and with .
Output: The set of roots of .
1 if then Compute the roots of as the -coordinates of the rational 2-torsion points (order( )/2) , for those with order( ) even, and of their sum; replace by ; /* The roots of lying in are exactly the -coordinates of the points of order 2 in , and is generated by the points above, so it suffices to keep those -coordinates that are roots of . */
2 ;
3 ;
4 for each prime dividing do /* The primes and the valuations are read off . */
5 ;
6 ; /* , see Remark 5.7. */
7 for every factor in the set do the simple divisor on with coordinates ; ; end
11 replace by the set of -coordinates of the simple divisors occurring in all ;
12 end
13 ;
14 for every prime dividing do ; ; /* , see Remark 5.7. */
17 for every factor in the set do the simple divisor on with coordinates ; ; end
21 replace by the set of -coordinates of the simple divisors occurring in all ;
22 end
23 Return the set . /* If needed, also join the roots of computed at Line 1. */
By Proposition 4.7, FINITEFIELDEMBEDDING requires operations. Each call to ECPRIMARYFACTO at Line 9 costs
where , using that the parameter passed at Line 6 satisfies (Proposition 5.6).
Let denote the degree of the divisor defined at Line 8. Then . Therefore, the total cost of all calls at Line 9 is bounded by
where we used and .
Similarly, the total cost of the calls at Line 19 is bounded by
Summing all contributions yields the claimed bound.
Remark 5.9. The complexity in Theorem 5.8 improves to
if both and are cyclic, provided that a generator of each group is given as input. This follows from the improved bound in Proposition 5.6 in the cyclic case.
6 Computing and verifying elliptic preprocessing data
This section is devoted to the offline phase: constructing an elliptic preprocessing datum for with small. These computations depend on , but not on . We consider the components of successively: the nonsquare , the curve (Section 6.1), the orders , and their factorizations, and the bases (Section 6.3). We conclude in Section 6.4 by showing that a preprocessing datum can be verified much more easily than it can be constructed.
When is prime, all components but the curve are within reach of deterministic polynomial-time methods under GRH. For , this holds for all of them except the bases (see Section 6.3). The curve is the main obstruction, and this question is isolated in Problem 1.7.
We begin with the nonsquare . For , we have , so a nonsquare of remains a nonsquare in if and only if is odd. In that case, under GRH, [Ank52] guarantees a quadratic non-residue modulo smaller than for some constant , which is found deterministically in polynomial time by testing successive integers.
If is even, every element of is a square in , but a nonsquare of can then be computed deterministically and unconditionally in polynomial time [BIMS17, Cor. 1.3]. For completeness, we give an explicit construction. Set , and pick , for instance an element of the given -basis of such that . The element satisfies , hence
If , then is a nonsquare; this is the case of [BIMS17, Thm. 3.1].
Otherwise, and is odd. Then so lies in but is not a square there, and is a nonsquare in since ; hence is a square in , and satisfies . The element thus satisfies ; in particular and . Since and , a dichotomy on finds, with evaluations of the Legendre symbol, an integer such that and . Then satisfies , and is a nonsquare of . Indeed, , so that
since is odd.
For even e, in both cases, the computation is deterministic, unconditional, and runs in time polynomial in .
6.1 Constructing the curve: the CM method and its limitations
Since , searching for a suitable curve amounts to searching over pairs of quadratically twisted curves.
When with prime and small, a general method for constructing elliptic curves over prime fields with prescribed Frobenius trace is the Complex Multiplication (CM) method. We refer to [Mor91, AM93] and [CFA 05, Sec. 18] for background on this method. It relies on algebraic number theory in the imaginary quadratic field . In our setting, we seek values of such that both and have no large prime factors.
Given a trace allowed by the Hasse–Weil bound and not divisible by , the CM method proceeds by first constructing the Hilbert class polynomial associated with , where is the squarefree integer such that for . This can be done deterministically in time polynomial in and ; see [AM93] and [Mor91, Sec. 4].
An elliptic curve with Frobenius trace can then be obtained from a root of . By Dirichlet's class number formula, the degree of , which equals the class number of , is . Therefore, when is sufficiently small, a root of can be found efficiently using a probabilistic algorithm.
The Hilbert class polynomial also enjoys strong Galois-theoretic properties: in particular, its splitting field is an abelian extension of . Moreover, this splitting field has degree at most over . It follows from [Rón92, Cor. 5.6] that, under GRH, a root of can be found deterministically in time polynomial in , and in the bit-size of the coefficients of .
Unfortunately, the CM method is likely not sufficient to construct elliptic curves E with sufficiently small . Indeed, the requirement that d be small is quite restrictive, and it is therefore unlikely that, for every p, there exists an elliptic curve such that both d and are polynomial in .
6.2 Distribution of elliptic curves with smooth group orders
This subsection relates Conjecture 1.5 to classical questions on the additive behaviour of smooth numbers, and explains what the standard heuristics predict. We refer to [HT93] for a survey of the distribution of smooth numbers.
Relation to additive problems on smooth numbers. Writing and , we have . Conjecture 1.5 therefore says that can be written as a sum of two -smooth integers, subject to the constraint that the two summands be within of .
Without that constraint, this is a question of Erdős and Graham [EG80, p. 70], who asked whether every large is a sum of two -smooth integers. The best known result, due to Balog [Bal89], provides -smooth summands, where . Even whether both summands can always be taken -smooth is open, while the equidistribution heuristic discussed below predicts that a power of suffices.
We are interested in smooth numbers in the Hasse–Weil interval, which is a short interval of length around . The relevance of that interval comes from the following theorem:
Theorem 6.1. [Wat69, Thm. 4.1] For any in the Hasse–Weil interval such that is coprime to , there exists an elliptic curve defined over with .
Since elliptic curves with smooth group order are useful in various contexts (e.g. [Mau94, BSCKL23]), conjectures have been proposed regarding the distribution of smooth numbers in the Hasse–Weil interval.
Conjecture 6.2 (Smoothness assumption). [Mau94, Def. 2 and Conjecture], [MW99, Sec. 4.1.1] The largest prime factor of the smoothest number in the Hasse–Weil interval is at most .
Conjecture 6.2 is not sufficient for our purposes, since we require the quadratic twist to have a smooth order as well. Conjecture 1.5 is the corresponding statement for the pair .
What the standard heuristic predicts. Both Conjecture 6.2 and Conjecture 1.5 rest on the heuristic that smooth numbers are as well distributed in the Hasse–Weil interval as they are on average. Matomäki and Radziwill [MR16] proved that, for every , there exists such that, for large enough, the interval contains an -smooth integer. This is the scale of the Hasse–Weil interval, of length , up to the constant . Even ignoring that constant, this only provides, for every fixed , a -smooth group order, whereas Conjecture 6.2 asks for a -smooth one; and it says nothing about the simultaneous smoothness of and required by Conjecture 1.5.
We can predict the exponent by assuming an equidistribution heuristic. Let with . By the Dickman–de Bruijn estimate, an integer near is -smooth with probability , where is the Dickman function. The integers of the Hasse–Weil interval should thus contain numbers that are -smooth, a quantity that grows when : this is the threshold underlying Conjecture 6.2. Treating the smoothness of and of as independent, the pairs should contain admissible ones, which grows when . As this exponent affects none of our complexity bounds, Conjecture 1.5 leaves the polynomial bound unspecified.
A cryptographic analogue. The same simultaneous-smoothness condition arises in isogeny-based cryptography, where one seeks primes such that and are both smooth. Considerable effort has gone into such searches [CMN21], and the smoothness bounds they reach are worse than what a single condition would allow, which is consistent with the gap between the two thresholds above.
By Corollary 1.6, Conjecture 1.5 guarantees the existence of an elliptic preprocessing datum with , for which the online phase of Algorithm 6 runs in time polynomial in and . However, the conjecture is only an existence statement: it says nothing about how to construct such a datum.
6.3 Computing the group orders, their factorizations, and the bases
Computing the order can be done deterministically in polynomial-time by using Schoof's algorithm [Sch85] or its heuristic improvements of Elkies and Atkin. The order of the twist is obtained via the formula .
The datum also records the factorizations and . Factoring an integer of size is of course not known to be feasible in polynomial time in general, but in our case it is: a curve is only of interest to us when is -smooth, so trial division by the integers recovers both factorizations, in bit operations. Running this on a curve which turns out not to be smooth simply rejects it. This is why the factorizations belong to the datum.
In addition, Algorithm 6 requires bases of the groups of rational points of and . In general, without any smoothness assumption, the best deterministic method requires time [KS00]. However, when is prime and is smooth, one can do better. We restrict to prime fields because the results of [Rón92] used below are stated over only.
Proposition 6.3. Let be a prime and an elliptic curve over . Under GRH, there is a deterministic algorithm to compute generators of whose complexity is polynomial in and in the largest prime factor of .
Proof. We compute for each prime dividing a generating pair of the -Sylow subgroup of . Since is the direct sum of its Sylow subgroups, the points and generate .
Fix such a prime and set . We compute a generating pair of by induction on . For , the group is read off the roots lying in of the division polynomial which involves only when is odd (resp. of when ), which are computed deterministically in polynomial time under GRH by [Rón92, Thm. 6.3]. When is odd, such a root yields points of if and only if is a square in , and their ordinates are then computed by the Tonelli–Shanks algorithm, which is deterministic given the nonsquare . The group is isomorphic to or , so a generating pair is obtained by picking a nonzero point , and a point if there is one, otherwise.
Assume now that generate , with . Deciding whether a point of lies in , and computing a preimage of the multiplication by , is again deterministic polynomial time under GRH by [Rón92, Thm. 6.4]. Since and lie in , whether lies in only depends on , and the corresponding classes form a subspace of , which we compute by testing the classes. Replacing by for suitable integers with , which does not change the generated group, we may assume that is spanned by a subset of the canonical basis of . We then replace by a preimage under each lying in , and keep the others. The new pair generates : the group it generates contains the kernel of , and its image under is . Iterating until yields a generating pair of the -Sylow subgroup , after steps of tests each.
A generating pair produced this way need not be a basis in the sense of Definition 1.2. We now explain how to turn a generating pair , of into a basis, i.e. so that order
, which is equivalent to requiring . We work on each Sylow subgroup separately, so that the modifications made for one prime do not affect the others.
Fix a prime dividing , and let . The points and generate . Up to swapping them, assume that , where . If , then and . Otherwise, if for some the point
satisfies , we replace by , which does not change the group generated, and repeat. When no such exists, is trivial. Otherwise, the unique subgroups of order of and would coincide, i.e. for some , and then . Hence . We order the pair so that , and denote it by .
Finally, we set and . Since is the direct sum of its Sylow subgroups, , so that . Moreover, when is cyclic, since every is then cyclic and .
For each , this procedure requires two scalar multiplications by and at most computations of an -adic valuation, for a total of operations in . Summing over all primes , we obtain an overall complexity of arithmetic operations in . A similar method is proposed at the end of the proof of [KS00, Thm. 3].
Generators can also be computed probabilistically in polynomial time using the Weil pairing, following the method of [Mil04, Thm. 5], provided that the factorization of is known, which is again available by trial division when N is smooth.
6.4 Verifying a preprocessing datum
The constructions described so far are either conditional on GRH, or, in the case of the curve itself, not known to be feasible in deterministic polynomial time at all (see Problem 1.7). Verification, by contrast, is deterministic and unconditional:
Proposition 6.4. Given and a tuple , checking that is a valid elliptic preprocessing datum for can be achieved deterministically in bit operations.
Proof. We describe the checks on ; those on are identical. Checking that lies in the Hasse–Weil interval and that , that , that the equation of satisfies , that has equation , and that lie on costs bit operations.
We then check that the product of the factors listed in equals . Every prime factor of each of them then divides , hence is at most , so trial division by on all factors, decides their primality in bit operations.
Next, after checking that , we compute the orders of from in bit operations. A nontrivial intersection of and would contain a point of prime order , and has a unique subgroup of order , generated by . Independence thus amounts to checking, for each such , that is none of the points for , for a total of bit operations.
Finally, we check that . The subgroup then has order , so divides . For , we have , so is the only multiple of in the Hasse–Weil interval, whence ; the fields with are handled by finite enumeration.
7 Experiments
7.1 Experimental evidence for Conjecture 1.5
Figure 2 compares the smoothness actually achievable in the Hasse–Weil interval with what the heuristic of Section 6.2 predicts. For a sampled prime power and an integer , we define as the largest prime factor of . For each fixed , we compute the minimal value of over all traces allowed by the Hasse–Weil bound and coprime with .
On the vertical axis, we plot the value
so that . Over the whole range tested, and for prime fields as well as for quadratic extensions, stays within a narrow band and grows slowly with .
On these data points, we superpose the threshold predicted by the heuristic. For each q, the curve is the smallest for which the expected number of admissible traces computed in Section 6.2 reaches one, that is, the smallest such that
where is the Dickman function, obtained by solving the differential equation with for . Over the sampled ranges it rises from 1.38 to 1.64 for prime , and from 1.47 to 1.70 for .
The observed exponent follows the predicted threshold closely, lying slightly below it on average. A small discrepancy is what one should expect, since the criterion “expected count at least one” ignores both the fluctuations of that count and the in the Dickman estimate.
This is evidence that the heuristic of Section 6.2 is accurate in the range where the minimum can be computed, which is in turn what makes the polynomial bound asserted by Conjecture 1.5 plausible. Yet, the accessible range of q is too small to claim an estimate about the exponent c.
The Magma scripts used to generate the data points and the predicted curves are available in the files Testing_conjecture.mgm and Heuristic_threshold.mgm in [Spa26].
7.2 Proof-of-concept implementation in Magma
As a proof of concept, we implemented our algorithm in the Magma computer algebra system, and report here on experimental results obtained with this prototype. The implementation is available at [Spa26]. All experiments were performed on a standard laptop with an Intel Core Ultra 7 255U processor, using Magma V2.29-6 [BCP97].
To demonstrate the practicality of the method, we select a general prime . To rule out the use of cyclotomic methods, we choose the first safe prime (i.e., such that is also prime, ensuring that contains a large prime-order subgroup) in the interval , namely
The next step is the offline phase, that is, building an elliptic preprocessing datum for with small. To this end, we scan -invariants sequentially; for each of them, we consider the curve

is a square

Figure 2: Observed smoothness exponent of the best pair in the Hasse–Weil interval, compared with the threshold predicted by the heuristic of Section 6.2.
which has j-invariant j, together with its quadratic twist, and use Magma’s implementation of the SEA algorithm to compute the Frobenius trace. After a few hours of computation, the best curve we found has j-invariant 17698758.
The curve has
rational points, while its quadratic twist has
rational points. Therefore, , which controls the complexity of the online phase. In our implementation, the nonsquare is a primitive element of returned by Magma, and the two bases are obtained with Magma's Generators function rather than with the procedure of Section 6.3. The resulting datum is then certified by Proposition 6.4, in negligible time.
This search explores only a tiny fraction of the possible j-invariants: we tested a few million values, out of approximately .
Next, we generate a random split separable polynomial of degree 3000 over by sampling 3000 distinct elements uniformly at random in , and setting .
Our (unoptimized) Magma prototype computes all roots of f in about 3 minutes, the datum D being given. This experiment shows that Algorithm 6 can be run in practice.
For comparison, the classical Mignotte–Schnorr algorithm (Appendix A) is out of reach in this setting. Its complexity is governed by the largest prime factor of , which here is , so it would require GCD computations.
8 Perspectives and open questions
8.1 Improving the complexity bound
There are several possible directions for improving the complexity bound in Theorem 5.8. The first one concerns the exponent . Inspecting the proofs of Propositions 5.3 and 5.5, only two steps cost , both in Algorithm 3: the implicit interpolation of Remark 5.1, and the characteristic polynomial of Remark 5.2. Both are currently solved through an explicit matrix, whose construction alone costs operations.
We expect that both steps can be performed without this matrix, using power projections [Sho94, BSS03]. The interpolation problem of Remark 5.1 is an instance of inverse modular composition. When the quotient ring is a field, Shoup [Sho94, Thm. 3.5] solves this problem deterministically within the cost of Brent and Kung's modular composition algorithm: he computes power projections by transposition of that algorithm, and then solves a Hankel system; see also [NSSV24, Sec. 1.4.2]. In our setting, is split, so that is not a field, but we may use the trace form instead of Shoup's linear form. The characteristic polynomial of Remark 5.2 could be handled similarly: Shoup also computes minimal polynomials from power projections [Sho94, Thm. 3.4]. If this approach is confirmed, the exponent in Theorem 5.8 would be replaced by .
Going further, Neiger, Salvy, Schost and Villard [NSSV24] recently obtained the first algorithm for modular composition with an exponent below 3/2, namely operations, and their techniques also apply to the computation of minimal and characteristic polynomials of elements of quotient rings such as [NSSV24, Sec. 10.1]. Their algorithms are randomized, and adapting them to our deterministic setting is an open question.
8.2 Using more general curves
Our approach can be extended to hyperelliptic curves of genus . One could start by choosing a squarefree polynomial of odd degree, defining a hyperelliptic curve with equation . Algorithms 1 and 2 do not impose restrictions on the degree of , and can therefore be used to construct split divisors on and on its quadratic twist that encode the roots of the input polynomial .
The next step would be to use rational points on the Jacobian of H and its quadratic twist. In this setting, division polynomials in Algorithm 4 can be replaced by Cantor's analogues for hyperelliptic curves [Can94].
The potential advantage of this approach is the increased flexibility in constructing groups over with smooth order. However, a drawback is that the Jacobian of a genus-g hyperelliptic curve has approximately points, making smoothness less likely. Nevertheless, CM methods could potentially be adapted to enforce smooth group orders in this setting, for instance using techniques from [BILV16].
8.3 Using other algebraic groups
In this paper, we focused on elliptic curves. As discussed in Section 8.2, the approach may extend to more general curves. More broadly, it may be possible to use other commutative algebraic groups defined over .
One potential direction is to consider algebraic tori [Vos98, RS03], whose group orders are given by evaluations of cyclotomic polynomials at q. While deterministic polynomial-time algorithms are known when such values are smooth [BvzGL01], these results are mainly of theoretical interest. Adapting the Mignotte–Schnorr framework in this setting could lead to more explicit and practical complexity bounds.
8.4 Polynomial-time deterministic precomputation
We close by returning to Problem 1.7, an effective version of Conjecture 1.5. For prime q, it amounts under GRH to finding the curve (Section 6).
By Proposition 1.4, it suffices to find a Frobenius trace such that is -smooth, together with a curve realizing it. Among the roughly admissible traces, candidates are cheap to reject and, by Proposition 6.4, cheap to certify; what is missing is a deterministic way of finding one. The CM method (Section 6.1) only reaches traces with small discriminant, exhaustive scanning of -invariants (as in our implementation) is not polynomial, and Conjecture 1.5 asserts existence without saying anything about the density of suitable traces. The problem remains open even with randomization: drawing random curves, as in the elliptic curve method [Len87], heuristically yields a datum with subexponential in in subexponential expected time, and a probabilistic polynomial-time construction with would also be a significant result.
A Pseudo-code for the Mignotte–Schnorr algorithm
In this appendix, we recall the classical Mignotte–Schnorr algorithm, which uses the -Sylow subgroups of , for the primes dividing , to find the roots of a split polynomial . This appendix contains no new results; rather, we reformulate the classical presentation of the Mignotte–Schnorr algorithm using the formalism developed throughout the paper. Classical references for these results include [MS88] and [vzG87], while more modern formulations can be found in [GvdHL15, Sec. 2.2].
We begin by defining a useful family of polynomials. For , a prime number , and , let be the polynomial whose roots are the elements such that does not divide order , i.e.
These polynomials are used to isolate subsets of roots according to their projection onto the -Sylow subgroup of .
We now state the following useful lemma, which provides an explicit form for these polynomials. This description shows that is a binomial whose roots form a coset of a subgroup of . In particular, this makes it possible to compute modular reductions of by first reducing a suitable power of using binary exponentiation.
Lemma A.1. Let and let be a prime number. Write and . For all ,
Moreover, for , we have if , and is coprime with otherwise.
Proof. Let be the largest divisor of coprime with . Since the right-hand sides of Equations (A.1) and (A.2) are monic separable polynomials, it suffices to show that they have the same roots in .
An element is a root of the right-hand side of (A.2) if and only if
that is, if and only if is an -th root of unity. Since divides , these roots of unity are exactly the elements of whose order divides , i.e. is coprime with . Hence is a root of the right-hand side of (A.2) if and only if and .
Finally, let be a root of . By construction, , hence
Since has order , we have if and only if , and we get that and have the same roots if , and they have no common root otherwise.
Corollary A.2. With the same notation as in Lemma A.1, let be a polynomial. Then can be computed within arithmetic operations in .
Proof. We first compute using Lemma A.1. To do so, we compute
by binary exponentiation, which requires operations. Then we obtain
Finally, we compute the GCD using the identity
which can be done in operations using fast GCD algorithms.
The next proposition shows how the polynomials can be used to deterministically separate the roots of a polynomial, once a primitive element of is known. This statement and its proof are similar to [vzG87, Lem. 3.1].
Proposition A.3. Let be a primitive element. Write
for the prime factorization of . Let . Then there exists a unique such that, for all , the order of is not divisible by , and
Proof. This follows from the classical isomorphism
Let , where satisfies for all . Such a exists and is unique modulo by the Chinese remainder theorem. Then satisfies the desired property.
We provide a proof of termination and correctness of the algorithm, as similar techniques are used in the proof of Proposition 4.2.
Proposition A.4. Algorithm 7 (CYCLOTOMICPRIMARYFACTO) terminates and is correct.
Algorithm 7: CYCLOTOMICPRIMARYFACTO: Deterministic Mignotte–Schnorr factorization with respect to the -valuation of the orders of the roots.
Input:
- A prime power ;
- A prime ;
- A nonnegative integer ;
- A monic polynomial dividing (i.e. the -valuations of the orders of all roots are at most );
- An element such that .
Output:
- A finite subset ;
- A finite set of pairs such that are monic nonconstant polynomials, and for all ,
1 if then 2 | Return {}}, {}; 3 end 4 if then 5 | ; 6 | Return ; 7 end 8 S \leftarrow \{}; 9 ; 10 ; 11 for do 12 | ; 13 | ; 14 | ; 15 | for do 16 | ; 17 | end 18 end 19 Return .
Proof. Throughout the proof, we use the notation .
The termination is proved by induction on m. For m = 0, the algorithm clearly terminates. For m > 0, each recursive call decreases the value of m, and hence the algorithm eventually terminates.
The correctness is also proved by induction on . For , the assumption that divides implies that the orders of all roots of are not divisible by . Hence , and the algorithm is correct in this case.
Let , and assume that the algorithm is correct at level . We prove correctness at level . To do so, we must show that the inputs of the recursive calls satisfy the required assumptions, and that the output satisfies the desired properties.
First, we prove that for all , the inputs of the recursive call at Line 13 satisfy the required assumptions at level . Since , we have . The fact that divides follows from the relation , which implies that divides .
Next, we prove that the output is correct using the induction hypothesis. Since has order , we first observe that
where is a nonzero constant (equal to if , and to otherwise). Since the factors of this product are pairwise coprime, this implies that .
Consequently,
Let , and let be such that , so that . By the induction hypothesis, applied to the recursive call on with in place of , we have
since . Moreover, the change of variable in (A.1) shows that equals up to a nonzero multiplicative constant. Therefore, up to such a constant,
We conclude by noticing that , and that implies that is coprime to . Therefore,
Proposition A.5. [MS88] Algorithm 7 (CYCLOTOMICPRIMARYFACTO) performs at most
arithmetic operations in .
Proof. We refer to [MS88, Proof of Thm. 1] or [GvdHL15, Proof of Lem. 3].
References
[ADW 25] Josh Alman, Ran Duan, Virginia Vassilevska Williams, Yinzhan Xu, Zixuan Xu, and Renfei Zhou. More asymmetry yields faster matrix multiplication. In Proceedings of the 2025 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 2005–2039, 2025.
[AIKS14] Manuel Arora, Gábor Ivanyos, Marek Karpinski, and Nitin Saxena. Deterministic polynomial factoring and association schemes. LMS Journal of Computation and Mathematics, 17(1):123–140, 2014.
[AM93] Arthur O. L. Atkin and François Morain. Elliptic curves and primality proving. Mathematics of Computation, 61(203):29–68, 1993.
[Ank52] Nesmith Ankeny. The least quadratic non residue. Annals of Mathematics, 55(1):65–72, 1952.
[Bal89] Antal Balog. On additive representation of integers. Acta Mathematica Hungarica, 54(3–4):297–301, 1989.
[BCP97] Wieb Bosma, John Cannon, and Catherine Playoust. The Magma algebra system. I. The user language. Journal of Symbolic Computation, 24(3-4):235–265, 1997. Computational Algebra and Number Theory (London, 1993).
[Ber67] Elwyn R. Berlekamp. Factoring polynomials over finite fields. Bell System Technical Journal, 46(8):1853–1859, 1967.
[Ber70] Elwyn R. Berlekamp. Factoring polynomials over large finite fields. Mathematics of Computation, 24(111):713–735, 1970.
[BILV16] Jennifer S. Balakrishnan, Sorina Ionica, Kristin Lauter, and Christelle Vincent. Constructing genus-3 hyperelliptic Jacobians with CM. LMS Journal of Computation and Mathematics, 19(A):283–300, 2016.
[BIMS17] Vishwas Bhargava, Gábor Ivanyos, Rajat Mittal, and Nitin Saxena. Irreducibility and deterministic r-th root finding over finite fields. In Proceedings of the 2017 ACM International Symposium on Symbolic and Algebraic Computation (ISSAC), pages 37–44, 2017.
[BK78] Richard P. Brent and H. T. Kung. Fast algorithms for manipulating formal power series. Journal of the ACM, 25(4):581–595, 1978.
[BSCKL23] Eli Ben-Sasson, Dan Carmon, Swastik Kopparty, and David Levit. Elliptic curve Fast Fourier Transform (ECFFT) part I: low-degree extension in time over all finite fields. In Proceedings of the 2023 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 700–737. SIAM, 2023.
[BSS03] Alin Bostan, Bruno Salvy, and Éric Schost. Fast algorithms for zero-dimensional polynomial systems using duality. Applicable Algebra in Engineering, Communication and Computing, 14(4):239–272, 2003.
[BvzGL01] Eric Bach, Joachim von zur Gathen, and Hendrik W. Lenstra. Factoring polynomials over special finite fields. Finite Fields and Their Applications, 7(1):5–28, 2001.
[Cam83a] Paul Camion. A deterministic algorithm for factorizing polynomials of . In Combinatorial Mathematics, volume 75 of North-Holland Mathematics Studies, pages 149–157. North-Holland, 1983.
[Cam83b] Paul Camion. Improving an algorithm for factoring polynomials over a finite field and constructing large irreducible polynomials. IEEE Transactions on Information Theory, 29(3):378–385, 1983.
[Can94] David G. Cantor. On the analogue of the division polynomials for hyperelliptic curves. Journal für die reine und angewandte Mathematik, 1994(447):91–146, 1994.
[CFA 05] Henri Cohen, Gerhard Frey, Roberto Avanzi, Christophe Doche, Tanja Lange, Kim Nguyen, and Frederik Vercauteren. Handbook of Elliptic and Hyperelliptic Curve Cryptography. CRC Press, 2005.
[Che03] Qi Cheng. Straight-line programs and torsion points on elliptic curves. Computational Complexity, 12(3):150–161, 2003.
[CL26] Jean-Marc Couveignes and Reynald Lercier. Elliptic butterflies. Journal of Complexity, page 102046, 2026.
[CMN21] Craig Costello, Michael Meyer, and Michael Naehrig. Sieving for twin smooth integers with solutions to the Prouhet–Tarry–Escott problem. In Advances in Cryptology – EUROCRYPT 2021, Part I, volume 12696 of Lecture Notes in Computer Science, pages 272–301. Springer, 2021.
[DNS21] Javad Doliskani, Anand K. Narayanan, and Éric Schost. Drinfeld modules with complex multiplication, Hasse invariants and factoring polynomials over finite fields. Journal of Symbolic Computation, 105:199–213, 2021.
[DPP16] James H. Davenport, Christophe Petit, and Benjamin Pring. A generalised successive resultants algorithm. In Arithmetic of Finite Fields – WAIFI 2016, volume 10064 of Lecture Notes in Computer Science, pages 105–124. Springer, 2016.
[Ebe91] Wayne Eberly. Decomposition of algebras over finite fields and number fields. Computational Complexity, 1(2):183–210, 1991.
[EG80] Paul Erdős and Ronald L. Graham. Old and New Problems and Results in Combinatorial Number Theory, volume 28 of Monographies de L'Enseignement Mathématique. Université de Genève, Geneva, 1980.
[EL13] Tony Ezome and Reynald Lercier. Elliptic periods and primality proving. Journal of Number Theory, 133(1):343–368, 2013.
[Evd94] Sergei Evdokimov. Factorization of polynomials over finite fields in subexponential time under GRH. In Algorithmic Number Theory – ANTS-I, volume 877 of Lecture Notes in Computer Science, pages 209–219. Springer, 1994.
[FHSS 23] Armando Faz-Hernández, Sam Scott, Nick Sullivan, Riad S. Wahby, and Christopher A. Wood. Hashing to elliptic curves. RFC 9380, IETF, 2023.
[FR85] Katalin Friedl and Lajos Rónyai. Polynomial time solutions of some problems of computational algebra. In Proceedings of the 17th Annual ACM Symposium on Theory of Computing (STOC), pages 153–162. ACM, 1985.
[Für07] Martin Fürer. Faster integer multiplication. In Proceedings of the 39th Annual ACM Symposium on Theory of Computing (STOC), pages 57–66, 2007.
[GK86] Shafi Goldwasser and Joe Kilian. Almost all primes can be quickly certified. In Proceedings of the 18th Annual ACM Symposium on Theory of Computing (STOC), pages 316–329, 1986.
[GvdHL15] Bruno Grenet, Joris van der Hoeven, and Grégoire Lecerf. Randomized root finding over finite FFT-fields using tangent Graeffe transforms. In Proceedings of the 2015 ACM International Symposium on Symbolic and Algebraic Computation (ISSAC), pages 197–204, 2015.
[GvdHL16] Bruno Grenet, Joris van der Hoeven, and Grégoire Lecerf. Deterministic root finding over finite fields using Graeffe transforms. Applicable Algebra in Engineering, Communication and Computing, 27(3):237–257, 2016.
[HT93] Adolf Hildebrand and Gérald Tenenbaum. Integers without large prime factors. Journal de Théorie des Nombres de Bordeaux, 5(2):411–484, 1993.
[HvdH21] David Harvey and Joris van der Hoeven. Integer multiplication in time . Annals of Mathematics, 193(2):563–617, 2021.
[Ica09] Thomas Icart. How to hash into elliptic curves. In Advances in Cryptology – CRYPTO 2009, pages 303–316. Springer, 2009.
[IKRS12] Gábor Ivanyos, Marek Karpinski, Lajos Rónyai, and Nitin Saxena. Trading GRH for algebra: algorithms for factoring polynomials and related structures. Mathematics of Computation, 81(277):493–531, 2012.
[IKS09] Gábor Ivanyos, Marek Karpinski, and Nitin Saxena. Schemes for deterministic polynomial factoring. In Proceedings of the 2009 International Symposium on Symbolic and Algebraic Computation (ISSAC), pages 191–198, 2009.
[KG85] Walter Keller-Gehrig. Fast algorithms for the characteristic polynomial. Theoretical Computer Science, 36:309–317, 1985.
[KS00] David R. Kohel and Igor E. Shparlinski. On exponential sums and group generators for elliptic curves over finite fields. In Algorithmic Number Theory – ANTS-IV, volume 1838 of Lecture Notes in Computer Science, pages 395–404. Springer, 2000.
[Len87] Hendrik W. Lenstra. Factoring integers with elliptic curves. Annals of Mathematics, 126(3):649–673, 1987.
[Mau94] Ueli Maurer. Towards the equivalence of breaking the Diffie-Hellman protocol and computing discrete logarithms. In Advances in Cryptology – CRYPTO '94, volume 839 of Lecture Notes in Computer Science, pages 271–281. Springer, 1994.
[Mil04] Victor S. Miller. The Weil pairing, and its efficient calculation. Journal of Cryptology, 17(4):235–261, 2004.
[Moe77] Robert T. Moenck. On the efficiency of algorithms for polynomial factoring. Mathematics of Computation, 31(137):235–250, 1977.
[Mor91] François Morain. Building cyclic elliptic curves modulo large primes. In Advances in Cryptology – EUROCRYPT '91, volume 547 of Lecture Notes in Computer Science, pages 328–336. Springer, 1991.
[Mor07] François Morain. Implementing the asymptotically fast version of the elliptic curve primality proving algorithm. Mathematics of Computation, 76(257):493–505, 2007.
[MR16] Kaisa Matomäki and Maksym Radziwill. Multiplicative functions in short intervals. Annals of Mathematics, 183(3):1015–1056, 2016.
[MS88] Maurice Mignotte and Claus P. Schnorr. Calcul déterministe des racines d'un polynôme dans un corps fini. Comptes Rendus Académie des Sciences (Paris), 306(12):467–472, 1988.
[MW99] Ueli Maurer and Stefan Wolf. The relationship between breaking the Diffie-Hellman protocol and computing discrete logarithms. SIAM Journal on Computing, 28(5):1689–1721, 1999.
[Nar18] Anand K. Narayanan. Polynomial factorization over finite fields by computing Euler-Poincaré characteristics of Drinfeld modules. Finite Fields and Their Applications, 54:335–365, 2018.
[Nar19] Anand K. Narayanan. Polynomial factorisation using Drinfeld modules. Newsletter of the London Mathematical Society, 2019.
[NP21] Vincent Neiger and Clément Pernet. Deterministic computation of the characteristic polynomial in the time of matrix multiplication. Journal of Complexity, 67:101572, 2021.
[NSSV24] Vincent Neiger, Bruno Salvy, Éric Schost, and Gilles Villard. Faster modular composition. Journal of the ACM, 71(2):1–79, 2024.
[Ope26] OpenAI. Deterministic polynomial factorization over prime fields. OpenAI Math Release preprint, 2026. October 4, 2026. Available at https://github.com/openai/math/tree/main/preprints/Deterministic-Polynomial-Factorization-over-Prime-Fields-October-4-2026.
[Pin92] Richard Pinch. Recognizing elements of finite fields. In Proceedings of the 2nd Conference on Cryptography and Coding, volume 33 of Institute of Mathematics and its Applications Conference Series, pages 193–197, Oxford, 1992. Clarendon Press.
[Poo19] Bjorn Poonen. Using zeta functions to factor polynomials over finite fields. In Yves Aubry, Everett W. Howe, and Christophe Ritzenthaler, editors, Arithmetic Geometry: Computation and Applications, volume 722 of Contemporary Mathematics, pages 141–147. American Mathematical Society, 2019.
[PP89] Alexei A. Panchishkin and Igor Potemine. An algorithm for the factorization of polynomials using elliptic modules. In Proceedings of the Conference “Constructive Methods and Algorithms in Number Theory”, page 117, 1989.
[Rón87] Lajos Rónyai. Simple algebras are difficult. In Proceedings of the 19th Annual ACM Symposium on Theory of Computing (STOC), pages 398–408. ACM, 1987.
[Rón88] Lajos Rónyai. Factoring polynomials over finite fields. Journal of Algorithms, 9(3):391–400, 1988.
[Rón90] Lajos Rónyai. Computing the structure of finite algebras. Journal of Symbolic Computation, 9(3):355–373, 1990.
[Rón92] Lajos Rónyai. Galois groups and factoring polynomials over finite fields. SIAM Journal on Discrete Mathematics, 5(3):345–365, 1992.
[RS03] Karl Rubin and Alice Silverberg. Torus-based cryptography. In Advances in Cryptology – CRYPTO 2003, pages 349–365. Springer, 2003.
[Sch85] René Schoof. Elliptic curves over finite fields and the computation of square roots mod p. Mathematics of Computation, 44(170):483–494, 1985.
[Sho90] Victor Shoup. On the deterministic complexity of factoring polynomials over finite fields. Information Processing Letters, 33(5):261–267, 1990.
[Sho91] Victor Shoup. A fast deterministic algorithm for factoring polynomials over finite fields of small characteristic. In Proceedings of the 1991 International Symposium on Symbolic and Algebraic Computation (ISSAC), pages 14–21, 1991.
[Sho94] Victor Shoup. Fast construction of irreducible polynomials over finite fields. Journal of Symbolic Computation, 17(5):371–391, 1994.
[Sil09] Joseph H. Silverman. The Arithmetic of Elliptic Curves, volume 106 of Graduate Texts in Mathematics. Springer, second edition, 2009.
[Spa26] Pierre-Jean Spaenlehauer. Proof-of-concept implementation associated to this article, 2026. Commit a8a81bd, available at https://gitlab.inria.fr/pspaenle/root-finding-with-ec-companion-code/.
[SS71] Arnold Schönhage and Volker Strassen. Schnelle Multiplikation grosser Zahlen. Computing, 7(3):281–292, 1971.
[SvdW06] Andrew Shallue and Christiaan E. van de Woestijne. Construction of rational points on elliptic curves over finite fields. In Algorithmic Number Theory – ANTS-VII, volume 4076 of Lecture Notes in Computer Science, pages 510–524. Springer, 2006.
[vdH04] Gerd-Jan van der Heiden. Factoring polynomials over finite fields with Drinfeld modules. Mathematics of Computation, 73(245):317–322, 2004.
[vdHM21] Joris van der Hoeven and Michael Monagan. Computing one billion roots using the tangent Graeffe method. ACM Communications in Computer Algebra, 54(3):65–85, 2021.
[Vos98] Valentin E. Voskresenskii. Algebraic Groups and Their Birational Invariants, volume 179 of Translations of Mathematical Monographs. American Mathematical Society, 1998.
[vzG87] Joachim von zur Gathen. Factoring polynomials and primitive elements for special primes. Theoretical Computer Science, 52(1-2):77–89, 1987.
[vzGG03] Joachim von zur Gathen and Jürgen Gerhard. Modern Computer Algebra. Cambridge University Press, 2003.
[vzGP01] Joachim von zur Gathen and Daniel Panario. Factoring polynomials over finite fields: a survey. Journal of Symbolic Computation, 31(1-2):3–17, 2001.
[Wat69] William C. Waterhouse. Abelian varieties over finite fields. Annales scientifiques de l'École normale supérieure, 2(4):521–560, 1969.
[Wol17] Amalaswintha Wolfsdorf. Factorising polynomials over finite fields. Master's thesis, arXiv preprint arXiv:1709.05513, 2017.