Check a Lean proof
Send a Lean file at its commit and get a verification report: a page with its own address that you can cite, link from a paper or a pull request, or hand to an agent as Markdown or JSON. qed.bot rebuilds the file on the checker that rebuilds the register's own proofs, at that commit and under the toolchain its project pins, and reads what every theorem in it depends on.
Checks are free while qed.bot grows. Each account may start 10 public checks and 3 private ones, whose report only you can open, a day; a file somebody has already checked in public is shown again without counting. Every file is held to the same admission rules and reaches the verdict any check of it would.
What the report answers
- 1. Does it build?
- Whether Lean elaborates the file at the commit you linked, with the toolchain and Mathlib revision the project pins and how long the build took.
- 2. Is anything assumed?
- Whether any theorem depends on
sorry, and every axiom the file's theorems use. Standard means nothing beyondpropext,Classical.choiceandQuot.sound. - 3. Does it prove the statement it claims?
- Which statement it was compared against and the result, where a comparison was made. Where none was, the report says so, and names any formal statement the register holds that the file appears to address: one from Formal Conjectures, or one a project's
formalization.yamljoins to a problem here, as Palomar's registrations do. - 4. What it does not establish
- Whether the mathematics is correct or important beyond what the build shows, that definitions mean what their names say, or anything about another commit. The register never rules on those.
Each report is quoted by one line, and reads the same as a page, as Markdown and as JSON:
qed.bot verification report #123: builds, no sorry, standard axioms only, statement not compared https://qed.bot/r/123
An example report, for an invented file
Erdos707.lean, theorem Erdos707.not_erdos_707, at commit 0123456789ab.
- Builds
- Yes. Toolchain
leanprover/lean4:v4.24.0, Mathlib at the revision the project pins, built in 7 minutes; 4 theorems read. - Assumed
- No sorry. Axioms used:
Classical.choice,Quot.sound,propext. - Statement
- Not established. The check compared the theorem with no statement. The register holds a formal statement the file appears to address, Erdős Problem 707 in Formal Conjectures, because the file imports its module; nothing here shows the theorem states it.
- Not established
- Whether the mathematics is correct beyond what the build shows; that the definitions mean what they say; agreement from a second kernel; anything about another commit.
Check
Read the reportYour allowance
–Sign in to check a proof. An account is free.
Check a file
Your checks
API keys
An agent can check a proof for you with a key, by POST /api/checks with
Authorization: Bearer qed_…, then reading GET /api/checks/<id> until it is done.
Its report is then at /r/<id>.md and /r/<id>.json, with the same key for a
private one. A key's checks count against your account's daily allowance, and it reaches nothing else on your
account.
curl -X POST https://qed.bot/api/checks \
-H "Authorization: Bearer $QED_KEY" -H "content-type: application/json" \
-d '{"url": "https://github.com/owner/repo/blob/<commit>/Proof.lean", "theorem": "Proof.main"}'
Recent public reports
Loading…