About QED
QED. A registry of Lean theorems that QED verified itself. A source's own report that a proof compiles is never enough to list it. QED fetches the project, builds it, exports what Lean compiled and replays every declaration through independent kernels. Each run is sealed in a public, hash-chained log. 0 theorems are listed today.
What a verification checks
- Sandboxed build. The project is fetched at one commit. Lake resolves its dependencies from the manifest, with network access only to the git hosts. Packages are built from source: QED fetches no build cache, and it refuses a repository that holds compiled files. The build itself has no network, runs as an unprivileged user under gVisor and bubblewrap, and has limits on CPU, memory, time and disk.
- Export.
lean4exportwrites the compiled environment of each module, as Lean's import loads it. On Lean 4.36 and later, every kernel reads the export, never the build's output. On Lean 4.33.1, the kernels that count read the compiled modules, as the next item says. - Kernel replay. Independent kernels re-check every declaration, each in its own sandbox. Which kernels count depends on the Lean version. On Lean 4.36 and later, six kernels check the export and all six count: Lean's kernel, Lean's kernel in paranoid mode, nanoda, lean4lean, con-leche and con-ron. On Lean 4.33.1, two kernels count: Lean 4.33.1's own kernel and lean4lean built for that version. Without a library, they load the project's modules as Lean's import does and re-check every declaration loaded, Lean's own included. With Mathlib, they re-check every module the run built, on top of the library's modules, which QED built from source. Before that, QED refuses a module whose list of names does not match its list of declarations. The kernels from Lean 4.36 also run there as advisory kernels: the page shows their verdicts, and they do not decide the result. A kernel that crashes or runs out of time or memory gives no verdict, and the theorem is not listed. A kernel that declines an axiom it does not support is shown as declined; the theorem can then be listed only as conditional. con-leche and con-ron decline the axiom that
native_decideadds:Lean.ofReduceBoolbefore Lean 4.36, and from Lean 4.36 one axiom per use, named after the theorem, such asFoo.bar._native.native_decide.ax_1_1. That axiom states the result of a decision procedure that Lean's compiler compiled and ran, so the proof trusts the compiler. - Axioms. For each theorem, every axiom it rests on.
propext,Classical.choiceandQuot.soundare standard. Any other axiom is listed on the theorem's page and the theorem is marked conditional. - Pairs. For a challenge and a solution, comparator checks that the solution proves each challenge theorem with the same statement, and that the definitions those statements use are unchanged.
The worker trusts the kernels' exit codes and Lean's own reader of compiled files, which writes the export and loads what the Lean 4.33.1 kernels check. On Lean 4.33.1 with Mathlib, it also trusts the library's modules, which QED built from source and replays once per environment. It records the image digest of every component it ran.
What it does not check
The Lean statement is the claim. QED shows exactly what Lean checked. It does not judge whether a formal statement means what its authors, a paper or a problem list say in words, and no page on this site says that it does. Docstrings and titles are shown as the author's.
QED also does not judge whether a result is new or important, and it does not review who gets credit. Credit is what the project records.
How to read a theorem page
- The mark. The end-of-proof square follows the name QED. On a theorem page, one of them stands for each kernel of the run: filled means the kernel accepted, half filled means it declined an axiom it does not support, outlined means it did not run, struck means it rejected, and barred means it gave no verdict. A short mark, beside a full one, is an advisory kernel: QED runs it and shows its verdict, and the verdict does not decide. The list of kernels below the marks says which kernels counted.
- Verified. The latest run passed: every kernel that counts for its Lean version accepted, and the theorem uses only the three standard axioms.
- Conditional. The latest run passed, and the theorem uses an axiom beyond the standard three. The axiom is named on the page. Kernels that do not support such axioms decline them, and the page says which.
- Not listed. Runs that are waiting, failed or gave no verdict are not listed and are kept out of search engines. A submission's status page shows them.
- Runs. Every run that produced the theorem, newest first, each with its environment and its entry in the log.
The log
Each run's attestation is appended to a log in which every entry names the hash of the entry before it. Every hour QED signs the newest hash with Ed25519 and records the signed head in Sigstore's Rekor. The log page gives the commands to check a head, its signature and the chain. Witnesses can repeat runs on their own machines and post signed results; the witness page explains how.
Sources and licences
Each theorem belongs to its project and keeps the project's licence, which its page names. The sources page lists where candidates come from. QED copies statements, docstrings and positions from the compiled export so that a page can show them. It does not copy proofs onto its pages; it links to them at the verified commit.
QED's own code is released under the Apache-2.0 licence at https://github.com/stubbi/qed. The fonts are STIX Two Text, IBM Plex Sans and JetBrains Mono, each under the SIL Open Font License, served from this site.
Questions
Does a listed theorem mean the conjecture is solved?
It means Lean's kernels accepted a proof of the Lean statement on the page. Whether that statement says the same thing as the conjecture in words is a question for people. QED does not answer it.
Who decides what is listed?
The verification runs decide. Ingest, verification, listing and re-verification are automatic. A person may change QED's code, configuration and policy. No one edits a verdict.
What happens when Lean or Mathlib changes?
QED verifies each new release again. A theorem's page shows every run with the toolchain and library revisions it used. If a later run fails, the theorem stops being listed, and its earlier runs stay in the log.
How do I cite a theorem?
Each theorem page has a BibTeX entry and a plain-text citation. They name the project, the module, the commit and the verification.
Can agents use QED?
Yes. The REST API and the MCP server do what the site does, with errors that say what went wrong and what to do next. Every theorem page is also available as markdown.