# Where the Lean statements differ from the papers ## In all papers - **Time.** The statements count steps of the machine in `CryptoDefs/`. Paper 1 counts bit operations and gates; its explicit exponents are stated here for steps. - **Algorithms.** `PaperDefs/` states that a program with the printed properties and bounds exists. That an explicit program follows the printed algorithm is stated in `proof/QLStatement/`: it records the printed values and makes the printed calls and random choices, in order; the work between these events is not fixed. - **Cited subroutines.** Where a paper cites a task without an algorithm (Hermite normal forms, roots of polynomials, sampling from random bits), the programs use a method of ours. The reverse Minkowski theorem of [RSD24] is obtained by the proof of [LRR26]. - **Gates.** Programs run on X, H, S, T, CNOT and Toffoli. Circuits that a program writes out are over the printed gate set, or over any standard one. - **Inputs.** Real numbers are rationals or finitely many digits. A program is told the length of its input, and some are told a rank or a bound as well; the statements show which. - **Constants.** Each statement has its own constants where the text shares one. "Sufficiently large" has explicit values, some very large, in the explicit programs. ## Paper 1 - The hypothesis (Sampler) of Part 2 is discharged, so it does not appear in the statements. - In Corollary 9.9 and Theorem D (b) the verifier is some sound polynomial-time verifier; the forms `…_detailed` tie it to Theorem A. - Bounds "conditionally on the advice string" (1.5, 30.6, 38.4, 38.5) are stated for every admissible advice string. - `P01/Cases.lean` has simplified forms with success probability 2/3 (for 9.1, on average over the instance). Its statements on square Module-LWE and on schemes like ML-KEM and ML-DSA make the abstract and Section 12.5 concrete, with thresholds (n ≥ 2^29 or 2^30 for the schemes) that the paper leaves unnamed. - The two conjectures of Ducas and van Woerden are read as "time 2^Θ(n) is needed". ## Paper 2 - The equivalence after Corollary 9.1 is stated as its two directions; the suitable m and q are only said to exist. - A quantum algorithm is a classical program that has circuits run, as in Section 19.1; the form on the quantum machine is in `PaperDetails/`. ## Paper 3 - In Theorem A and Corollary 5.2 the time on the machine has a further polylogarithmic factor, and the coherent calls are counted for a second program that writes the circuits. - In Theorems B and 20.1 and the other quantum reductions of Part 2 the time is that of the program that writes the circuits, a call counting as one step; the programs on the machine are in the forms `…_detailed`. - The solvers for LWE in 19.4 and 20.1 (b), (c) are programs in place of circuits. - Reductions as in Definition 21.1 are deterministic. ## Paper 4 - The time (n (ln n)^k)^O(1) of Theorem 1.2 is written as a power of n ⌈log₂ n⌉^k, and the program is told this number. - The factors Õ(·) and n^(1+1/k+o(1)) of the abstract are represented by the explicit factors of 1.2, 1.3 and 1.4. - Remark 7.17 has Bost's question as its hypothesis, as printed. ## The machine `Challenge/Machine.lean` ties programs without oracles to Turing machines and uniform circuits up to polynomial factors; classical oracle programs are tied in `proof/QL/Consistency/`. Quantum programs with oracles, the oracle programs of paper 1 and expected time are defined on the machine only. ## Not formalized Remark 25.20 of paper 1 (open questions) and Remark 6.4 of paper 4 (a heuristic); outlines of proofs and comparisons with the literature. [`INDEX.md`](INDEX.md) shows where each numbered item is stated.