Protiviti's Karagiannis Machine-Checks Grover Costs in Lean 4: Langenberg et al.'s AES-128 Oracle Needs 2^75 Parallel Instances at a T-Depth Cap of 2^40, arXiv 2611.41529, 30 November 2026: TRL 2
Quentir Defense Monitor
Evidence-based insights for quantum defense and security. Published by Quentir Systems LLC · December 1, 2026.

Konstantinos Karagiannis, senior director of quantum computing services at Protiviti, posted a preprint on 30 November 2026 that converts the standard cost estimate for a Grover attack on AES into theorems verified by a proof assistant. The preprint, arXiv 2611.41529, runs to 15 pages and ships its Lean 4 proofs as ancillary files that any reader can rebuild. Its central numbers concern the AES-128 oracle of Brandon Langenberg, Hai Pham and Rainer Steinwandt. Under a T-depth cap of 2^40, a quantum key search using that oracle needs at least about 2^75 parallel instances and at least 2^119 T gates. The preprint also shows that the parallel-search protocols recently discovered by AI agents leave the cost of recovering a single key unchanged.
Why NIST's MAXDEPTH limit of 2^40, 2^64 or 2^96 logical gates decides what a Grover key search costs
Grover's algorithm finds one key among N candidates with roughly the square root of N evaluations of the cipher, which for AES-128 is about 2^64. Those evaluations must run one after another inside a single coherent computation, and that sequential length is the practical obstacle. NIST addressed it in the evaluation criteria for its post-quantum standardization process), which restrict a quantum attack to a maximum circuit depth called MAXDEPTH. NIST gives three plausible values: 2^40 logical gates, about what envisioned quantum architectures could perform serially in a year; 2^64, about what classical architectures perform serially in a decade; and an upper limit of 2^96. On that basis NIST estimates the cost of key recovery on AES-128 at 2^170 divided by MAXDEPTH quantum gates.
An attacker who cannot run a long serial search has to split the key space across many machines, and Grover's algorithm rewards that poorly. Christof Zalka proved in 1999 that m machines shorten the search by only the square root of m, so the total work grows as the allowed depth shrinks. Samuel Jaques, Michael Naehrig, Martin Roetteler and Fernando Virdia built full AES oracles in Microsoft's Q Sharp language, costed them under MAXDEPTH in both gate count and depth-times-width, and released the implementations, unit tests and code that automatically reproduces their resource estimates. Karagiannis uses Lean 4 to check the mathematical derivation of the cost bounds under its stated assumptions.
What the Lean 4 proofs establish: 2^75 parallel instances for the Langenberg et al. AES-128 oracle at a T-depth cap of 2^40 and 139,532,520 at 2^64
The proofs build on Google DeepMind's formal-quantum-computation library for Lean 4, which counts gates but has no notion of depth. Karagiannis adds two depth measures, circuit depth and T-depth under an as-soon-as-possible schedule, and proves that circuits acting on separate qubits can run side by side at the depth of the deeper one. With Zalka's bound as the single cited hypothesis, he then proves three results for a search of S iterations, each of depth τ, under a depth cap D. Parallelism never reduces the total number of cipher evaluations. The cap forces at least (Sτ/D)^2 parallel instances, rounded up. Gate cost and depth-times-width cost are each at least their unconstrained values multiplied by Sτ/D.
For AES-128 the preprint takes its circuit parameters from Brandon Langenberg, Hai Pham and Rainer Steinwandt: 865 qubits and a T-depth of 15,040 per Grover iteration, which gives a whole-search T-depth of about 2^77.5. Table 1 applies NIST's numerical MAXDEPTH values to T-depth, and NIST's logical-gate metric also counts layers that T-depth omits. At a T-depth cap of 2^40, the Lean kernel evaluates the minimum number of parallel instances at about 2^75, with at least 2^119 T gates in total. At 2^64 the minimum is 139,532,520 instances and 2^95 T gates. A T-depth cap of 2^96 no longer forces parallelism, and the cost bound returns to about 2^81.6 T gates, which agrees with Jaques and colleagues.
The same theorems apply to hash functions. Using the SHA-256 preimage estimate of Matthew Amy and co-authors, a single search 2^153.8 surface-code cycles deep on 2^12.6 logical qubits, the preprint finds that a cap of 2^96 cycles still requires 2^115.6 parallel instances. Karagiannis notes that a cap counted in surface-code cycles is stricter than NIST's limit in logical gates, so this table overstates the parallelism that NIST's own model would force.
Quantum pillar: computing (cryptanalysis). Use posture: dual-use. Technology readiness: TRL 2 of 9. For the reader this means the work is a verified resource estimate for an attack on AES and SHA-2, with circuit depths taken from earlier papers, and no fault-tolerant quantum computer able to run even one of the required search instances exists today.
What the AI-discovered parallel Grover protocols of arXiv 2611.09822 are worth against AES: no gain for one key, up to 0.57 bits over the prior multi-target baseline
A corollary of the three results is that any constant-factor reduction in the iteration count is worth up to its square once a depth cap binds, because the cap charges for depth twice in instances and once in each cost. That finding is timely. Earlier in November 2026, Sergey Shirobokov and 24 co-authors reported in arXiv 2611.09822 that Gemini 4 agents had discovered formally verified quantum programs, among them parallel Grover protocols with better constants than the published baselines. Karagiannis translates those gains into his accounting. For one target, which is the case of recovering one AES key from known plaintext and ciphertext, the new circuits match the earlier baseline and there is no gain to translate. In the paper's query model for finding any one of several targets, the largest improvement over the prior multi-target baseline is 1.22 times, which translates to an additional advantage of at most 1.49 times, or 0.57 bits, under a binding depth cap. The larger figure, which Karagiannis cites as 2.55 times and the abstract of arXiv 2611.09822 gives as 2.57 times for parallel search, belongs to the task of finding every marked item, and key search does not pose that task.
The preprint's final technical section verifies a concrete component. A generator parses the published Boyar-Peralta circuit for the AES S-box, and the Lean kernel confirms that it reproduces the FIPS 197 table on all 256 inputs with 32 AND, 79 XOR and 4 XNOR gates. At 4 T gates per AND the S-box costs 128 T gates, and the S-box layer costs 25,600 T gates for AES-128, 28,672 for AES-192 and 35,328 for AES-256. These counts cover the forward S-box layer only. A full Grover oracle also has to uncompute the cipher and compare the result, which is why the literature's per-iteration figure of about 245,000 T gates is larger.
What this means for a force and a program office: dual-use cryptanalysis accounting for AES and SHA-2 at TRL 2
The offensive capability under examination is recovery of the symmetric keys that protect intercepted or stored traffic. The verified numbers price that capability. Using the Langenberg, Pham and Steinwandt oracle at a T-depth cap of 2^40, a service would need at least about 2^75 fault-tolerant machines of 865 logical qubits each to recover one AES-128 key, and no machine of that kind exists. The defensive reading is the practical one for most readers. Filippo Valsorda argued in April 2026 that quantum computers do not threaten 128-bit symmetric keys, and the United Kingdom's national cyber security agency, the NCSC, presented a similar cost analysis at NIST's fifth standardization conference in April 2024. Karagiannis states that he reaches the same conclusion. His symmetric-cryptography estimates cover AES key recovery and SHA-256 preimage search. A migration office can direct its effort to key exchange and signatures, where Shor's algorithm applies.
The work is dual-use because the theorems are parametric: anyone who supplies an iteration count and a per-iteration depth obtains the forced parallelism and the cost floor without touching the proofs. An evaluator can use them to test a claimed Grover improvement, and an attack planner can use them to see which circuit improvement would pay most. With the iteration count and gates per iteration fixed, the instance bound before rounding scales with the square of the oracle depth and the gate-count bound scales linearly with it while the depth cap binds. The artifact is public and re-runnable, which separates this estimate from cases such as the one Quentir examined in A Public Quantum Claim Built on a Private Attack Circuit, where the resource counts were published and the circuits were withheld.
Several steps remain before a program office could rely on the tables as they stand. Zalka's bound is cited and has not itself been formalized, so every cost theorem is conditional on it. The per-iteration depths come from papers published in 2016 and 2020, and newer low-depth AES oracles would change the parallelism bounds where the depth cap binds. The full cipher, with key schedule, oracle, diffusion step and ancilla cleanup, has not been formalized as one circuit. The reversible S-box is verified as a gate list and has not been proved as a unitary. The preprint has a single author and has not yet passed peer review. A buyer assessing a quantum-threat claim against symmetric cryptography can ask three questions drawn from this paper: which depth limit the claim assumes, which oracle depth it uses and from which source, and whether the arithmetic can be re-run by a third party.
Sources
Primary source: Konstantinos Karagiannis (Protiviti), "Machine-Checked Depth-Constrained Costs for Grover Attacks on AES and SHA-2," arXiv 2611.41529, submitted 30 November 2026, abstract and full text read this run. Other material: NIST's security evaluation criteria for the post-quantum cryptography standardization process, which define MAXDEPTH; Jaques, Naehrig, Roetteler and Virdia on Grover oracles for AES (IACR ePrint 2019/1146); Google DeepMind's formal-quantum-computation repository; and Filippo Valsorda's article of 20 April 2026 on 128-bit symmetric keys. The capability reading, the posture argument, the readiness placement and the buyer questions are Quentir analysis.