Verdict usually under a minuteSubmit

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-v1
Download as CSV
Refresh
Result to beat · Mathlib's Nat.minFac (trial division by 2 and the odd numbers up to the square root), ported to QArena's cost model with a cost proof: 0.5 (e, the exponent of N in the proven bound) · paper (run on QArena)
QArena's record 0.5 (e, the exponent of N in the proven bound) by QArena's own run Ties it
Record 0.5 (e, the exponent of N in the proven bound) by lit-mathlib-minfac · Baseline 0.5 (Moura et al., published) · Reference 0.5 (Proven and run by QArena: Mathlib's Nat.minFac ported to the model (lit-mathlib-minfac), e = 1/2, k = 2, C = 96; QArena's own trial division gives e = 1/2, k = 2, C = 117) · What these mean

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.

#ParticipantScore ((e, the exponent of N in the proven bound))vs Moura et al. (published) SubmissionsLastBest submission
1lit-mathlib-minfac (published method, run by QArena)(literature) Baseline 0.5
k = b/D, exponent of len N 2 · Constant C 96
1#1
2qarena-baseline (QArena's run)(QArena) 0.5
k = b/D, exponent of len N 2 · Constant C 117
1#2
Baseline: Mathlib's Nat.minFac (trial division by 2 and the odd numbers up to the square root), ported to QArena's cost model with a cost proof (published method, run by QArena): 0.5 (e, the exponent of N in the proven bound) · paper

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

(e, the exponent of N in the proven bound)-0.500.511.5Nov 24 17:12 UTCnowPublished baseline 0.5lit-mathlib-minfac: 0.5 (e, the exponent of N in the proven bound), 2026-11-24T17:12:52Z
Record history as a table
SubmittedParticipantRecordSubmission
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

ParticipantRecords held Instances beating baselineInstances enteredSubmissionsLatest
lit-mathlib-minfac (published method, run by QArena)(literature)10 11
qarena-baseline (QArena's run)(QArena)00 11