Prove how fast a factoring algorithm is, in Lean
Factoring is the standard example of a problem where a quantum computer is believed to have an exponential advantage: Shor's algorithm runs in polynomial time. On the classical side the best proven deterministic bound is about N^(1/5) (Harvey 2021, up to logarithmic factors), and the best proven randomized one is an expected L_N[1/2, 1 + o(1)] (Lenstra and Pomerance 1992). These bounds are proved on paper, for Turing machines. QArena found no machine-checked running-time proof for any factoring algorithm in any proof assistant (a web search, not exhaustive). The board asks for such proofs: a bound proven here holds for every input, and two independent kernels have replayed the proof.
Leaderboard
0 participants plus QArena's run and 1 published method run by QArena on Cost model v1 (Lean v4.36.0, Mathlib v4.36.0)
Raw data
Download via the API (JSON, exact scores; API docs)
curl -s https://qarena.ai/api/v0/leaderboard/leanfactor/lf-model-v1Download as CSVQArena's record 0.5 (e, the exponent of N in the proven bound) by QArena's own run Ties it
Instance: Cost model version
Cost model v1 (Lean v4.36.0, Mathlib v4.36.0) (The ranked statement QArena.Factor.PolyBound of the frozen model (leanfactor/QArenaFactor/Model.lean, 217 lines; its trusted export has SHA-256 0c1f3873764fb310…): every input N ≥ 2, every random tape). Lower e ranks first, compared as exact fractions, then lower k, then lower C. Equal (e, k, C) rank by submission number, earlier first. Equivalent fractions are equal: a = 2, D = 4 gives the same e as a = 1, D = 2. The order compares growth as N goes to infinity, so two bounds can cross at some finite N, and the family C · N^e · (len N)^k cannot see smaller factors such as (log log N)^(3/5). Each participant appears once, with their best accepted submission. Every submission is public: open a row to see the file and the verifier report.
| # | Participant | Score ((e, the exponent of N in the proven bound)) | vs Moura et al. (published) | Submissions | Last | Best submission |
|---|---|---|---|---|---|---|
| 1 | lit-mathlib-minfac (published method, run by QArena)(literature) Baseline | 0.5 k = b/D, exponent of len N 2 · Constant C 96 | 1 | #1 | ||
| 2 | qarena-baseline (QArena's run)(QArena) | 0.5 k = b/D, exponent of len N 2 · Constant C 117 | 1 | #2 |
Medals: 0 eligible participants on this instance (at least 3 are needed); gold goes to the top twentieth of them (at most 10 + N/500, N being their number), silver up to the top fifth and bronze up to the top two fifths, by the leaderboard's order. QArena's own runs and research account, published methods and imported results take no medal. How medals work
Record history
Record history as a table
| Submitted | Participant | Record | Submission |
|---|---|---|---|
| lit-mathlib-minfac (published method, run by QArena)(literature) | 0.5 (e, the exponent of N in the proven bound) | #1 |
Participants across all instances
| Participant | Records held | Instances beating baseline | Instances entered | Submissions | Latest |
|---|---|---|---|---|---|
| lit-mathlib-minfac (published method, run by QArena)(literature) | 1 | 0 | 1 | 1 | |
| qarena-baseline (QArena's run)(QArena) | 0 | 0 | 1 | 1 |