TRANSMISSION // 2611.41529v1

What a depth limit changes in quantum cryptanalysis

Source published

A Lean 4 study formalises conditional bounds for depth-limited Grover search and applies them to published AES and SHA-256 estimates, while detailing what remains unchecked.

AI-generated conceptual illustration for What a depth limit changes in quantum cryptanalysis
AI-generated conceptual illustration; not documentary evidence.

Grover’s algorithm offers a theoretical way to search cryptographic keys with fewer sequential steps than classical exhaustive search. But a limit on quantum circuit depth changes the resource picture: under a cited parallel-search bound, meeting a tight limit requires more parallel instances, which also costs work. An arXiv preprint uses Lean 4 to check parts of this accounting and applies the resulting bounds to published estimates for AES-128 and SHA-256.

Grover’s algorithm is often described as reducing the effort needed to search a space of possible keys. But the number of search steps is only part of the story. A long quantum computation may exceed a limit on circuit depth, the number of sequential layers of operations. The preprint Machine-Checked Depth-Constrained Costs for Grover Attacks on AES and SHA-2, by Konstantinos Karagiannis, examines how resource estimates change under such a limit—and which parts of the reasoning can be checked by a proof assistant.

The paper’s conclusions about parallel search are conditional. It takes Zalka’s parallel query bound as a hypothesis, along with assumptions about the depth and cost of each query, rather than proving the bound itself. Within that model, a depth cap can require an attacker to use multiple instances, and parallelism brings a work cost. The study applies this accounting to published AES-128 and SHA-256 resource estimates; it does not claim that either cipher is vulnerable.

Bounds under a depth cap

For one-target search, the paper uses a lower bound on the number of rounds required when m oracle queries are made in parallel. In its model, the resulting speedup is limited to a factor proportional to the square root of m, not a factor of m. This is not an unconditional claim about every possible parallel protocol: the formal results depend on the cited Zalka bound and the stated query-cost assumptions.

Let S be the serial iteration count, τ the depth of each iteration, and D the maximum allowed depth. The paper proves that, under its assumptions, a schedule respecting the cap needs at least ⌈(Sτ/D)²⌉ parallel instances. It also derives lower bounds on gate cost and on depth multiplied by width, where width is the number of live qubits. When the cap binds, each is at least its unconstrained value multiplied by Sτ/D.

One consequence is that a constant-factor reduction in iteration count can improve these capped-cost lower bounds by up to the square of that factor. This is a result within the model, not a demonstration that an attack will realize the improvement. If the depth cap does not bind, the paper says the benefit is only linear.

What Lean checks

The author builds on DeepMind’s Lean 4 formal-quantum-computation library and adds ASAP circuit-depth and T-depth semantics. In these definitions, disjoint-support circuits—those acting on separate wires—can be composed with depth equal to the greater of their individual depths. This result belongs to the paper’s added semantics; it is not asserted for every convention for measuring circuit depth. Lean checks the stated consequences of the parallel-search hypothesis and the depth definitions.

The paper reports that its proofs contain no sorry placeholders and that the audited dependencies are standard Lean axioms: propext, Quot.sound and Classical.choice. The upstream Circuit-layer results inherit Classical.choice; the core arithmetic and some S-box results have narrower dependencies. Machine checking therefore supports the formal statements as encoded, but does not remove their modelling assumptions.

For AES, the paper exhaustively checks a parsed classical Boyar–Peralta S-box program against the AES S-box for all 256 inputs. It also counts gates in a reversible embedding, but explicitly does not machine-check that embedding’s unitary action. Its reported AES-128, AES-192 and AES-256 T-counts are for the forward S-box layer, including S-boxes in the key schedule, under an accounting of four T gates per AND. They are not full-cipher costs or complete Grover-oracle costs; the embedding also leaves ancillas uncleared.

Applying the model—and its limits

For AES-128, the preprint uses per-iteration depth from earlier literature and evaluates bounds for NIST MAXDEPTH values of 2⁴⁰, 2⁶⁴ and 2⁹⁶. In the cited model, the first two caps force parallelism; the 2⁹⁶ cap does not. These are calculations using literature parameters, not a newly built and formally verified full AES attack circuit.

For SHA-256, it starts from a published estimate with serial depth 2¹⁵³·⁸ surface-code cycles and 2¹²·⁶ logical qubits. It applies cycle caps of 2⁴⁰, 2⁶⁴ and 2⁹⁶. These are not NIST MAXDEPTH calculations: NIST’s cap is expressed in logical gates, and the paper notes that a faithful conversion requires a cycles-per-gate figure it does not supply.

The paper also translates reported gains from AI-discovered parallel-search protocols. Those results concern expected rounds, exact success and comparisons at fixed m. The author generously interprets an expected-round improvement as a reduction in the iteration-count constant. For single-target key search, the protocols match the prior baseline, so the paper finds no gain to translate. For a multi-target find-any result of 1.22×, the capped model gives an upper translation of 1.49×, or 0.57 bits. This is a query-model ceiling, not a measured resource saving in a key-recovery attack. The query model omits candidate-comparison costs; the paper also cites work finding straightforward parallel multi-key Grover can cost more than attacking one key at a time.

The key limitations are explicit: Zalka’s bound is cited rather than proved, per-iteration depths come from literature, and the complete attack oracles are not formally constructed. The work is an arXiv preprint. Its contribution is a machine-checked derivation conditional on stated assumptions, alongside a clear account of what remains outside that check.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.