Skip to content
Review

Building Shor's Algorithm in Lean: An Agentic Formalization of Quantum Attacks on RSA-2048 and P-256

Jul 2026 · 2 citations · 31 references
Physics

TL;DR

The formalization develops the mathematical foundations for analyzing quantum attacks in two cryptographic settings: a 2048-bit modulus in the RSA-2048 and the standardized elliptic curve over a 256-bit prime field (P-256).

Abstract

Large language models are increasingly assisting with demanding formal theorem-proving tasks, particularly when grounded in machine-checked libraries such as Lean. Agentic systems further amplify this process by searching, reusing, and extending existing formal developments to uncover new discoveries. In quantum computing, Shor's algorithm and its variants present such a demanding case for Lean formalization. In this work, we formalize this algorithm family in Lean through agentic formalization: software agents analyze sources, write Lean code and repair proofs, with human review of the scientific claims and machine checking of the resulting formal proofs. Our formalization develops the mathematical foundations for analyzing quantum attacks in two cryptographic settings: a 2048-bit modulus in the RSA-2048 and the standardized elliptic curve over a 256-bit prime field (P-256). To support these analyses, the formalization ranges from quantum algorithms for order finding to reversible quantum circuits for modular and elliptic-curve arithmetic. Based on [Quantum 5, 433] and [ASIACRYPT 2017, 241--270], we formalize the logical resource estimates for RSA-2048 and P-256, respectively, and provide additional estimates of classical operations. We expect the results pave the way for broader machine-checked quantum cryptanalysis and represent a step toward AI-assisted design and verification of quantum algorithms.

View source

Similar papers

Preprint Sep 2026

ECDSA.Fail: Open Autoresearch for Optimizing Elliptic-Curve Point Addition in Shor's Algorithm

We propose Open Autoresearch, a paradigm in which humans and AI agents publish evaluator-verified improvements to a public leaderboard. We instantiate it in ECDSA.Fail, optimizing reversible secp256k1 point-addition circuits, a bottleneck in Shor's algorithm for elliptic-curve cryptography. The benchmark minimizes the...

Jie-Yi Long, Theodore Pender, Zhao-Feng Huang et al. · 0 citations
Preprint Sep 2026

Computing 256-bit elliptic curve discrete logarithms in 26 days on a fault-tolerant trapped-ion quantum computer with 20,000 qubits

It is concluded that a trapped-ion quantum computer based on the Walking Cat Architecture can solve the ECDLP onsecp256k1 in approximately 25.7 days using 19,397 physical qubits with an estimated success probability of 63%.

Thomas Häner, Felix Tripier, Jacob Young et al. · 2 citations · ⚡1
Preprint Aug 2026

Efficient Quantum Modular Reduction: Crandall reduction and its Fault-tolerant resource analysis

Two variants of Crandall reduction are developed: Crandall reduction-1 is designed to minimize execution cost through one-step normalization, whereas Crandall reduction-2 uses two-step normalization to support a wider range of inputs with limited overhead.

Changyeol Lee, Sungyeon Kook, Wooyeong Song et al. · 0 citations
Review Open access Aug 2026

Engineering Secure AI Systems with Lattice-Based Cryptography and Large Language Models

Deploying large language models in safety-critical domains while migrating to post-quantum cryptographic standards poses a compounded systems engineering challenge: infrastructure must become privacy-preserving, computa-tionally viable, and quantum-resistant at once. This review examines three frontiers where lattice-b...

Devharsh Trivedi · 0 citations
Preprint Sep 2026

On Removing Interaction from Quantum Proofs

An important open question in quantum cryptography is the construction of publicly-verifiable NIZKs for QMA. Classically, one can construct NIZKs for NP in the random oracle model (and sometimes in the standard model) by compiling an honest-verifier ZK (HVZK) $\Sigma$-protocol for NP using the Fiat-Shamir transformatio...

Nicholas Spooner, Max Tromanhauser · 0 citations
Preprint Sep 2026

Quantum ROP: Using Quantum Algorithms for ROP Chain Selection in Exploit Construction

The quantum computing threat to cybersecurity is nowadays predominantly framed around Shor's algorithm and its eventual capacity to break asymmetric cryptography. Beyond cryptanalysis, however, quantum computing may also enable other capabilities in offensive security. This work explores one such direction: the applica...

Carlos Benitez · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.