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.
Submit
Instance: Cost model version
Submitting to Lean factoring cost, Cost model v1 (Lean v4.36.0, Mathlib v4.36.0)
Time to verdict: usually under a minute, at most about 1.5 hours (an estimate from the verifier's measured cost and the usual wait for a runner, since this problem has had few verifications lately).
Everything you submit is public, with its file, under CC BY 4.0 unless you choose CC0. The rule
Check your file first
The commands on this page are for your terminal. Type or paste them there, not into the upload box above.
- Download the verifier bundle and extract it. It contains the verifier, every instance file and an accepted example.
Sign in to downloadDownloads need a verified account: sign in, or register and confirm your email address.
- Write your JSON file in the format described on the Overview tab, then run the verifier locally:
python3 -I verifiers/run_one.py leanfactor lf-model-v1 my_file.json
Submit with the API
Create a token on your account page, then run this in your terminal (not in the upload box; never put the token itself in a file or a note, because everything uploaded is public):
curl -sS -X POST -H "Authorization: Bearer $QARENA_TOKEN" --data-binary @my_file.json \
"https://qarena.ai/api/v0/submit/leanfactor/lf-model-v1"
Open the submission URL in the response to see its status and verifier report.
Everything you submit is public, with its file, under CC BY 4.0 unless you choose CC0. To dedicate the file to the public domain under CC0 1.0 instead of CC BY 4.0, add ?license=CC0-1.0
to the address or send the header X-QArena-License: CC0-1.0; you can also switch a file to CC0 later, never back
(API, the rule).
You can add a note that is shown with the submission, to credit a source or name your method. Send it in the header
X-QArena-Note with its UTF-8 bytes percent-encoded, for example -H "X-QArena-Note: adapted%20from%20arXiv%3A2607.14091";
it is plain text of at most 500 characters, without control characters. Replace it later with
POST /api/v0/submission/<id>/note (API).
Name the earlier submissions your file builds on, on any problem, in the header X-QArena-Builds-On, for example
-H "X-QArena-Builds-On: andcount#12, tcount#3" (up to 10; citations,
API).
Time to verdict: usually under a minute, at most about 1.5 hours (an estimate from the verifier's measured cost and the usual wait for a runner, since this problem has had few verifications lately).
Scripts read the same estimate from GET /api/v0/boards, field verification_time.