Alongside integer factorization, the discrete logarithm problem (DLP)—given a finite cyclic group G=⟨P⟩ and a target Q∈G, find the unique integer x∈{0,…,∣G∣−1} with [x]P=Q (or gx≡t(modp) in multiplicative notation)—is a central computational problem of public-key cryptography and algorithmic number theory. While randomized and heuristic index-calculus methods have long achieved subexponential complexity in prime fields Fp∗, the worst-case deterministic complexity of the DLP in both Fp∗ and prime-order elliptic curves E(Fp) remained stalled at the square-root barrier p1/2+o(1) without unproven number-theoretic conjectures.
Historical timeline
1971 — Shanks (Proc. Sympos. Pure Math. 20): Deterministic baby-step giant-step (BSGS) algorithm solving the DLP in any cyclic group of order N in O(N) group operations and O(N) space, unconditionally.
1978 — Pohlig & Hellman (IEEE Trans. Inform. Theory 24(1)): Deterministic reduction from a group of order N=∏ipiei (given its factorization) to prime-order subgroups, running in O(∑iei(logN+pi)) group operations.
1978 — Pollard (Math. Comp. 32(143)): Randomized ρ-method achieving heuristic O(N) time in O(1) space.
1979–1987 — Adleman & Pomerance (FOCS 1979; Discrete Algorithms and Complexity, 1987): Rigorous Las Vegas subexponential index calculus in Fp∗ running in expected randomized time Lp[1/2,O(1)]=exp(O(logploglogp)).
1993 — Gordon; Lenstra & Lenstra (SIAM J. Discrete Math. 6(1); Lecture Notes in Math. 1554): Number Field Sieve (NFS) in Fp∗, reaching heuristic time Lp[1/3,(64/9)1/3+o(1)] under randomness and unproven smoothness heuristics.
1994 — Shor (FOCS 1994): Quantum polynomial-time poly(logp) algorithm for factoring and the DLP in any finite abelian group.
1994–1997 — Nechaev; Shoup (Math. Notes 55(2); EUROCRYPT 1997): Matching Ω(pmax) lower bounds for any generic group algorithm treating group elements as opaque labels, where pmax is the largest prime factor of ∣G∣.
2004 — Semaev (IACR ePrint 2004/031): Summation polynomials Sm(x1,…,xm) reducing m-way point decomposition on E(Fp) to multivariate polynomial systems (remaining exponential via Gröbner bases over prime fields).
October 2026 — OpenAI; Anthropic (OpenAI preprint; Anthropic preprint): Deterministic 2o(n)-time algorithms for counting satisfying assignments of sparse Boolean tensor networks and 3-SAT, refuting the Exponential Time Hypothesis (ETH). Days later, Rudich & Rousseau (2026) derived a deterministic No(1)-time integer factoring algorithm.
Oct–Nov 2026 — Akshima et al.; Kaarelson (bochum-crypto/subexponential-ecdl; kaarelkaarelson/fast-ecdlp): Las Vegas expected po(1)-time algorithms for elliptic-curve DLP over Fp combining m-way point decomposition with Boolean tensor contraction, explicitly leaving worst-case deterministic po(1) DLP open even in Fp∗.
November 2026 — Liu, Zhang, and Ren: Deterministic multitape Turing machine solving both prime-order elliptic-curve DLP and prime-field multiplicative DLP in worst-case time 2O(b/loglogb)=po(1) and space 2O(b/(logb)1/4), using zero random bits and no number-theoretic conjectures, assuming OpenAI's Cauchy–Hermite Boolean tensor contraction construction.
Setting
Let p be a prime of binary length b=⌈log2p⌉. To keep asymptotic expressions well-defined for all p≥2, define logsafe(x)=max{1,log2max{2,x}} and loglogsafe(x)=max{1,log2max{2,log2max{2,x}}}.
Two concrete cyclic-group families are considered:
Prime-order elliptic curves E(Fp) (p>3): A nonsingular Weierstrass curve E/Fp:y2+a1xy+a3y=x3+a2x2+a4x+a6 with unit discriminant Δ∈Fp∗, whose group of rational points E(Fp) (with identity O at infinity) has prime order r=∣E(Fp)∣. Given a generator P∈E(Fp) (satisfying ord(P)=r) and a target Q∈E(Fp), there is a unique x∈{0,…,r−1} with [x]P=Q.
Prime-field multiplicative groups Fp∗ (p≥2): Given g,t∈Fp∗, either t∈/⟨g⟩ or there is a unique x∈{0,…,ord(g)−1} with gx≡t(modp).
Algorithms are modeled uniformly by a fixed deterministic multitape Turing machine over Option Bool (reusing the published PrimitiveMachine model from Def_SubexponentialSAT), measuring worst-case step count (time) and total visited tape cells across all tapes (visitedSpace). Inputs are encoded in canonical binary (countWord) of length O(b).
A Boolean tensor network (BTN) over a commutative ring R is a finite bipartite multigraph G=(V,E) together with local tensors Tv:{0,1}δ(v)→R on each vertex's ordered incident port list δ(v), whose contraction is
Contract(G,T)=x∈{0,1}E∑v∈V∏Tv(x∣δ(v))∈R.
Of particular interest is the truncated polynomial ring BP0,ℓ=(Z/2P0Z)[z]/(zℓ) and parsimonious{0,1}-valued encodings of arithmetic relations.
There exist uniform deterministic multitape Turing machines Mec and Mfp and constants Cec,Cfp∈N running in worst-case time
T(b)=2Cb/loglogsafeb=2o(b)=po(1)
and space
S(b)=2Cb/(logsafeb)1/4
such that:
For every prime p>3, every nonsingular Weierstrass elliptic curve E/Fp of prime order r=∣E(Fp)∣, every generator P∈E(Fp), and every Q∈E(Fp), Mec outputs the unique x∈{0,…,r−1} satisfying [x]P=Q.
For every prime p≥2 and every g,t∈Fp∗, Mfp decides whether t∈⟨g⟩, outputting none if t∈/⟨g⟩ and some x for the unique x∈{0,…,ord(g)−1} satisfying gx≡t(modp) otherwise.
Milestones
The milestone list pairs three already-proved classical DLP foundations (ECDLP.bsgs, ECDLP.pohlig_hellman, FamousTheorems.gauss_primitive_root_theorem) with the eleven core theorems, propositions, and lemmas of Liu–Zhang–Ren (2026):
Stage I — Deterministic dense factor bases: Lemma 3.2 (collision-potential expectation E[Φ(S)]≤373/336<64/57), Theorem 3.1 (7/8-covering factor base and universal 2m-term decomposition), Proposition 3.3 (deterministic 2O(b/(logb)1/4)-time primitive root modulo p).
Stage II — Fixed-shift certification, filtering, and coset halving: Proposition 4.1 (soundness of fixed-shift relations), Lemma 4.2 (nonnegative Newton–binomial filter identity over BP0,ℓ), Lemma 4.4 (deterministic modular affine-coset update and halving via column HNF).
Terminal-preserving contraction: Lemma 5.2 (degree-sensitive scalar contraction in time Told2O(β/ρ)), Theorem 4.3 (terminal-preserving contraction for 4m high-arity lookup vertices in time (S+L)O(1)2O(b/loglogb)).
Significance
Resolving the deterministic complexity of the DLP below p1/2+o(1) eliminates both randomness and unproven number-theoretic hypotheses (such as GRH and smoothness heuristics) from subexponential discrete logarithm algorithms, simultaneously covering prime-order elliptic curves E(Fp) and prime fields Fp∗. As an intermediate consequence (Proposition 3.3), it also yields a deterministic 2O(b/(logb)1/4)-time algorithm for finding a primitive root modulo p without zero-free regions of Dirichlet L-functions.
Formalization status. The November 2026 manuscript of Liu, Zhang, and Ren gives a paper proof of Theorem 1.1 conditional on the October 2026 Cauchy–Hermite Boolean tensor contraction construction of OpenAI ([12, Appendix D]). While the ETH refutation for 3-SAT has an independent Lean formalization (MainResults.ethIsFalse), neither the polynomial-ring BTN contraction interface (Theorem 2.2), the terminal-preserving partial contraction extension (Theorem 4.3), nor the deterministic DLP reduction chain (Sections 2–5) has yet been formalized in Lean. This mission establishes exact machine-checkable statements for the full chain from classical baselines to Theorem 1.1.
Difficulty
Four distinct technical obstacles separate deterministic subexponential DLP from deterministic factoring and randomized index calculus:
Failure of direct exponentiation networks. Unlike integer factoring (which checks a single n-bit multiplication d⋅e=N using O(n) edges), evaluating gxmodp or [x]P by repeated squaring chains Θ(b) modular multiplications, creating Θ(b2) Boolean edges—where a 2O(s/logs) contraction bound becomes vacuous (2O(b2/logb)≫p). Partitioning x into blocks with degree ≤b9/10 still incurs Ω(b11/10) interface edges.
Two randomness barriers in m-way index calculus. Even with m=Θ((logb)1/4) keeping m-fold sum checks at O(mb) edges, prior subexponential ECDLP algorithms relied on randomness both to pick affine hash seeds of length Θ(mb) (enumerating all 2Θ(mb) seeds exceeds p) and to sample non-degenerate linear relations (deterministic target choices can become trapped in proper invariant subspaces).
Modular cancellation across counterexamples. Testing whether a candidate logarithm vector violates a relation modulo Mlab by summing signed differences fails because distinct counterexamples can cancel modulo Mlab or 2P0.
The lookup-arity degree barrier. In the counterexample-separation network, each of the 4m factor-base label lookups reads a dedicated k-bit native address with k=Θ(b/m). For m=Θ((logb)1/4) and network size S=Θ(mb), the vertex degree k exceeds Theorem 2.2's black-box degree ceiling ⌈S9/10⌉ by a polynomial factor in b, ruling out direct invocation of black-box BTN contraction.
Formalization scope
The formalization targets Mathlib commit 0df444a360eaa60ab8c11dca51a86af692955474 (Lean v4.33.1) inside the DetDLP namespace, importing the published multitape Turing machine model Definitions.Def_SubexponentialSAT (PrimitiveMachine, LocatedCfg, locatedStep, visitedSpace, Trace, countWord). All integers and field/curve coordinates are encoded in binary (countWord framed by Encoding.encodeList), preventing trivializing unary-input encodings where p would occupy exponential tape length. Elliptic curves use Mathlib's general WeierstrassCurve (ZMod p) with [E.IsElliptic] and canonical ecPointFintype, while truncated polynomial rings BP0,ℓ are quotient rings of Polynomial (ZMod (2 ^ P0)) by Ideal.span {X ^ ℓ}.
The goal theorem is stated unconditionally (no unproved axioms or ad-hoc hypotheses), while Theorem 2.2 and Theorem 4.3 appear as explicit milestones. Reusable infrastructure includes the bipartite BTN contraction interface (Def_DetDLP_BTN), the lookup-separator graph specification (Def_DetDLP_TerminalBTN), affine-interval factor bases and collision potentials (Def_DetDLP_FactorBase), and modular column-HNF lattice cosets and Newton–binomial filters (Def_DetDLP_FilterAndCoset). Contributions are welcome both on the purely algebraic/combinatorial milestones (Lemma 3.2, Proposition 4.1, Lemma 4.2, and the algebraic core of Lemma 4.4) and on the Turing-machine and contraction milestones.
Selected references
L. M. Adleman, A subexponential algorithm for the discrete logarithm problem with applications to cryptography, Proc. 20th FOCS, pp. 55–60, 1979. https://doi.org/10.1109/SFCS.1979.2
Akshima, R. Bacho, Y.-H. Huang, E. Kiltz, A. Nishaburi, S. Nooripoor, N. Tittelbach, and E. Wiedijk, A subexponential time algorithm for elliptic curve discrete logarithm, Preprint v0.2, Oct 29, 2026. https://github.com/bochum-crypto/subexponential-ecdl
D. M. Gordon, Discrete logarithms in GF(p) using the number field sieve, SIAM J. Discrete Math. 6(1):124–138, 1993. https://doi.org/10.1137/0406010
R. Kannan and A. Bachem, Polynomial algorithms for computing the Smith and Hermite normal forms of an integer matrix, SIAM J. Comput. 8(4):499–507, 1979. https://doi.org/10.1137/0208040
S. Liu, B. Zhang, and K. Ren, A Deterministic Subexponential-time Algorithm for the Discrete Logarithm Problem, Zhejiang University Preprint, Nov 23, 2026.
S. C. Pohlig and M. E. Hellman, An improved algorithm for computing logarithms over GF(p) and its cryptographic significance, IEEE Trans. Inform. Theory 24(1):106–110, 1978. https://doi.org/10.1109/TIT.1978.1055817
C. Pomerance, Fast, rigorous factorization and discrete logarithm algorithms, in Discrete Algorithms and Complexity, pp. 119–143, Academic Press, 1987. https://doi.org/10.1016/B978-0-12-386870-1.50015-0
I. Rudich and L.-M. Rousseau, Deterministic factoring in time No(1), Hexagon preprint 2610.00600v1, Oct 29, 2026.
I. Semaev, Summation polynomials and the discrete logarithm problem on elliptic curves, IACR Cryptology ePrint Archive 2004/031, 2004. https://eprint.iacr.org/2004/031
Goal · Theorem 1.1. Deterministic discrete logarithms under the Cauchy–Hermite construction
PROVED
theorem DetDLP.theorem_1_1_from_appendix_d (hOAI : OpenAIAppendixDPremise) :
(∃ (M_ec : PrimitiveMachine) (out_ec : Fin M_ec.tapeCount) (C_ec : ℕ),
∀ (p : ℕ) [Fact p.Prime], 3 < p →
∀ (E : WeierstrassCurve (ZMod p)) [E.IsElliptic],
letI := ecPointFintype E
let r := Fintype.card E.toAffine.Point
r.Prime →
∀ (P Q : E.toAffine.Point),
addOrderOf P = r →
∃ x : ℕ, x < r ∧ x • P = Q ∧
(∀ y : ℕ, y < r → y • P = Q → y = x) ∧
RunsWithin M_ec out_ec (encodeECDLPInput p E P Q) (countWord x)
(mainTimeBound C_ec (bitLen p)) (mainSpaceBound C_ec (bitLen p))) ∧
(∃ (M_fp : PrimitiveMachine) (out_fp : Fin M_fp.tapeCount) (C_fp : ℕ),
∀ (p : ℕ) [Fact p.Prime] (g t : (ZMod p)ˣ),
(t ∉ Subgroup.zpowers g →
RunsWithin M_fp out_fp (encodeFpDLPInput p (g : ZMod p).val (t : ZMod p).val)
(encodeOptionNatBin none)
(mainTimeBound C_fp (bitLen p)) (mainSpaceBound C_fp (bitLen p))) ∧
(t ∈ Subgroup.zpowers g →
∃ x : ℕ, x < orderOf g ∧ g ^ x = t ∧
(∀ y : ℕ, y < orderOf g → g ^ y = t → y = x) ∧
RunsWithin M_fp out_fp (encodeFpDLPInput p (g : ZMod p).val (t : ZMod p).val)
(encodeOptionNatBin (some x))
(mainTimeBound C_fp (bitLen p)) (mainSpaceBound C_fp (bitLen p)))) := by sorry
Under the cited Appendix D construction, the deterministic machines of Theorem 1.1 solve discrete logarithms in prime-order elliptic curves and in prime finite fields, including the subgroup membership case, uniqueness of the answer and the stated subexponential time and space bounds.
Frontier · Open leaf nodes
Recent activity
Frontier · Open leaf nodes
No open leaves. Every sub-goal is proved or awaiting decomposition.