Docs / Readers of Lean / Read a proof page
Read a proof page
Every proof on the network is written in Lean, a language in which a proof is a program and a small checker, the kernel, accepts it or does not. You do not need to read Lean to follow one here. Each statement has a page, and each way a problem has been proved has a reading view (on the problem's page, under its proofs) that lays the proof out as you would read a paper: the problem in words first, with its formal statement and whether that statement has been audited, then every statement the proof rests on, lemmas before the results that use them. A table at the end ties each statement to its Lean declaration, the file and lines that prove it, and the gate's record of the check.
Finding your way. A problem that has been proved says how, in words, under
How it was proved (in words, unverified): the opening of its proof's explainer, with who
wrote it, and the sources the record cites. The reading view opens with a table of contents, and
reads dependencies first; a button turns it round to read root first, the problem's own proof
before what it rests on. A statement's Lean is always written := by sorry: the
sorry holds the place of a proof, because a statement file only says what is claimed,
and a proof the gate checked is its own file, Proof.lean. A statement page lists what
the statement depends on and marks each dependency the proof's term uses, or one it declared and
does not use. Nodes named spec- and a hash carry their theorem's name beside the id.
An outline step whose id had to escape a character (h_x3a9div) shows its Lean name
beside it (hΩdiv), and a section of an explainer that covers more than six steps folds
its list of steps. On a phone the words come before the steps, the statement graph scrolls
sideways at full size, and wherever a desktop says hover, tap. Words waiting in an open pull request are not shown as words, but a statement page says they are coming: In review: #N by X, beneath the words they would change, read from the service when the page opens.
Every block says what it is. Each block on a statement page or a reading view opens with one of these labels, in words, so that commentary is never mistaken for proof:
| Label | What it means |
|---|---|
| Checked by the kernel | Lean the gate's kernel accepted, with the record of that check. It proves exactly the formal statement shown; whether that statement means what the problem means is the audit's question, not the kernel's. |
| Statement audited | The problem's formal statement has been checked against the problem by the statement audit: a completed quality-assurance pass, or a signature by someone who did not write the Lean. The block names the audit's state and any signers. |
| Statement not audited | A formal statement the audit does not cover: an interior lemma or a hole, or a problem whose audit is not complete. |
| Curated informal statement | The problem's words of record, chosen when it was listed; its audit was made against them. |
| In words, unverified | Words saying what the Lean beside them says, written by a person or drafted by a model, and named as such. A signature on them means only that the signer read them against the Lean and they agree. |
| Informal account, unverified | An account of how a proof works (an explainer), shown as unverified prose about a kernel-checked proof, with who wrote it and who has signed it. |
| Untrusted contributor text | Text a contributor wrote that the network passes on unchecked, such as an informal argument or a skeleton's plan. Read it as a claim, never as a result. |
| Not checked | Lean no check covers yet, such as a witness slot still waiting for its witness. |
| Shared definition | A definition the problem's statements share. |
The outline. Above a proof's Lean is its outline: the proof's steps in order,
each with the claim it establishes and what is left to prove after it, one click from the lines of
Lean that prove it. The outline is computed by the gate from the checked proof, so it says nothing
the kernel did not check. Claims are printed in Lean's notation with every number's type written
out, which is why a step may read a + (1 : Nat) ≤ b where a paper would write
a + 1 ≤ b: the explicit form is the one that means exactly what the kernel
checked. A step closed by a standard automatic tactic is labelled routine, with the
tactic's name, and folded away, so the page shows where the work is; the label names the tactic and
says nothing about difficulty. A step whose printed claim did not read back as the same Lean is
shown as its Lean lines only, rather than as text that might mean something else. In a partial
proof, a step marked hole is a gap the proof left open, and links to the statement it
became. A step whose id is close is the proof's closing tactics, the ones after its
named steps that finish the goal; a case step lists the hypotheses its split
introduced.
The words. Beside each piece of Lean are words saying what it says (a gloss), and beside each proof the proof itself as a journal would print it (an explainer). Contributors write them, as they write proofs, and improve them version by version. A gloss opens with the statement in standard mathematical notation, written in LaTeX and mirroring the Lean exactly, every hypothesis and quantifier; then, in a few lines, any Lean convention that changes its meaning, such as floor division or truncated subtraction; prose, if any, comes last. An explainer is the argument in mathematical prose and notation, in the order the Lean takes, each step rendered as the mathematics it performs. Words a contributor's model helped draft say so (drafted with the model); a few early ones, drafted by the network itself before contributors took the work over, say machine-drafted by their model. Nothing is edited in place: each version stays in the history, with a diff to the one before, and a withdrawn version stays listed as withdrawn.
Sections, and who stands behind them. The words are read in sections. A gloss is one section; each section of an explainer covers some steps of the outline, and so some lines of Lean. Each section says in words where it stands: drafted with a model, written by a person, or read against the Lean by a steward of the problem or a curator who has signed it. A model may change only drafted words; once a person has written or verified a section, only a person may change it. A person's change to someone else's words, or to verified words, is not shown as the section's words. It appears beneath them, marked awaiting review, with a diff showing what it changes, until a steward or curator signs it; signing is how a steward approves an edit, and it is also what earns the words' author credit.
A signature claims less than it might. On a gloss it says read against the Lean: the signer has checked that the words say what the Lean says. On an explainer it says the signer can explain the proof without the tool that produced it. Neither says the mathematics is right: the kernel says that of the Lean, and nothing says it of prose. A gloss describes one exact version of its file; if the file has since changed, the gloss is shown only in the history. The site takes no input, so the way to write or improve any of these words is the contributor guide's section on glosses, explainers and outlines, through the service, an agent, or a pull request.
How a statement and a problem change state
Two things carry a status: a statement (one node of a problem's proof graph) and the problem itself. Almost none of it is set by hand. On every merge the gate re-derives every status from what is in the tree, in this order, and the first rule that applies wins:
- The latest status record wins over everything. A file under the statement's
status/directory sayingspeculative,superseded,stale,disputedorabandoned. Every value butspeculativeis a curator's or an adjudicator's word;speculativeis the proposer's label on an open statement and yields once an artifact settles it. - Else an artifact in the tree settles it. A
Proof.leanthe gate accepted, with a merged passing attestation for the statement as it stands. What it declares says which: the statement's own name is a proof (proved),_refuted : ¬Sis a counterexample (refuted),_vacuous : ¬Wis a vacuity certificate (defective). A merged partial leaves noProof.lean, so it settles nothing. - Else the statement is blocked when any statement it depends on is not proved,
or when it is a hole whose witness slot still says
sorry. The reason is published as the entry'scause, and the site shows the second case as needs a witness, because supplying the witness is the work. - Else it is open (
readyin the protocol).
A statement
Every solid arrow happens by itself when a pull request merges and the post-merge job re-derives the graph. Every dashed arrow is a status record a curator commits through a pull request of their own. Three states are settled (proved, refuted, defective), and only proved lets a dependent proceed. A decomposition never blocks the statement it decomposes: its holes are children the statement may draw on once proved, not dependencies it waits on, so a direct proof and a rival decomposition stay possible. A revision never rewrites a dependent: its dependencies are read through the revision, and a stale mark lifts on the gate's own evidence.
A problem
A problem's status is mostly a curator's declaration; the two exceptions are mechanical. Whether a problem accepts work is derived, never declared: it does unless its status is resolved or known-result, an upstream edit stands on the root as it is, or it is an open problem with no steward.
What an action is
Every arrow above is caused by one of two things: a pull request on the graph repository, classified into exactly one mode from its diff, or a curator command that writes the records such a pull request carries. The service and the MCP server only open pull requests; a merge is the only thing that changes truth.
| Action | Who | How | What moves |
|---|---|---|---|
| Intake a problem | curator | intake pull request: the record, the pins, definitions, fidelity certificates, a status record and the root | problem → listed; root born open |
| Propose a statement | anyone | proposal pull request, one new statement directory (POST /proposals) | statement born open; speculative if the proposal says so |
| Fill a witness | anyone | proposal pull request changing Witness.lean alone on a hole (POST /proposals/witness) | hole: needs a witness → open |
| Prove it | anyone | proof pull request, Proof.lean under the statement's own name, after a precheck | open → proved; problem → resolved when it is the root, a resolves-variant or (v3.46) a refutes-variant, the latter read as disproved; dependents may unblock |
| Refute it | anyone | proof pull request declaring …_refuted : ¬S | open → refuted; its parents blocked with cause dep-refuted; at the root, problem → resolved, read as disproved |
| Show it vacuous | anyone | proof pull request declaring …_vacuous : ¬W | open → defective; forces a revision; at the root, problem → resolved, read as shown ill-posed |
| Partial proof, skeleton or reduction | anyone | partial pull request: an assembly under attempts/; a skeleton names its annex by hash; a reduction is a partial with one hole | the statement stays open; each hole born needing a witness, listed, and recorded as a child it may draw on once proved; a later route numbers its holes after the earlier ones |
| A second proof | anyone | alternate pull request under attempts/ | nothing; recorded beside the first |
| Postmortem, annex, approach record, revision request, defect claim | anyone | append pull request; a defect claim carries a Lean exhibit the gate elaborates | nothing; a revision request is what a curator later acts on |
| Explain a proof | anyone; a steward or curator signs | explainer pull request, with a signature file where the signer can explain it without the tool | resolved: undigested → explained once, for every statement in the closing proof's closure, every section of the explainer shown for its proof is verified; a section later changed and shown at once undoes it until it is signed |
| Say a file in words (a gloss) | anyone; a steward or curator signs | explainer pull request adding a gloss of a statement, witness, relation or definition (POST /glosses; the files still without words are listed by list_words_needed), naming any model that helped draft it; one writer per file at a time; a signature affirms it was read against the Lean | nothing; shown beside the Lean, unverified, on a statement of any status |
| Revise a gloss or an explainer | anyone; a model may change only words no person has written or verified | a new version naming the current one it supersedes (POST /glosses, or opn-gate gloss revise then gloss file); anyone may start a chain of their own instead | nothing; a change to drafted words, or to your own unverified words, is shown at once; a change to someone else's words or to verified words waits beneath them, awaiting review, until a steward or curator signs it; every earlier version stays in the history |
| Approve words | a steward of the problem or a curator | a signature on one version naming the sections it approves (opn-gate gloss sign --sections, opn-gate explainer sign --sections; without it, every section) | those sections → verified and shown, an edit awaiting review included; the version's author earns one write-up line, once; the signer earns nothing, and a signature on one's own version earns nothing |
| Withdraw a version | its author, a steward or a curator | a withdrawal record with a reason (POST /glosses/withdrawals) | nothing; the version reads as absent and the one before it is shown again |
| Grade a statement | a non-author | fidelity pull request: a signed certificate on the root or a definition | nothing; decides who must look at a proof (step 9), not whether work may begin |
| Point a crux at its node | the crux’s proposer, or a curator | proposed-for pull request: one record naming the node of the target the statement was proposed for | nothing; the graph draws a dashed line from the crux to that node until a merged proof uses it |
| Register a resolved problem | a curator, or a steward of the problem | registration pull request: one record naming the registry (Palomar), its id and version, the wrapper repository and commit, the graph commit exported, the proof and its attestation, and the status the registry last answered | nothing on the graph; the problem’s page names the registration, and the latest record per registry id is the one read |
| Open a formalization review | the proposer, a steward of the problem, or a curator, as policy.json allows | review pull request: one record with the conjecture in words, the proposer’s cases and the concepts a candidate must name; the network opens one in the background on every existing problem | nothing on the graph; the problem’s page shows the review’s state beside the grade |
| Submit a candidate formalization | anyone with a token, blind until their own is on the record | candidate pull request: one Lean statement of the review’s words with its author and the models that helped; the gate’s review job then compiles, screens and tests it and writes the exhibits | nothing until the review completes: a discarded candidate stays on the record with its exhibit |
| Answer a review’s question | the intent signer, signed in on the site | review-answer pull request opened by the service: the answer in words with its source, signed by the approval key naming the login; the answer becomes an intent test and the job runs again | a question closes; a candidate the new test fails is discarded |
| Sign a review | the intent signer, or an independent signer who wrote no surviving candidate | review-signature pull request: accept the surviving cluster, split it into variants, or send it back with a question | the grade rises as the ladder says; a split makes the readings not chosen variants |
| A settled pair direction | anyone, through submit_proof | a pair-proof record: one open direction between two surviving candidates, proved or refuted at an instance, in the gate’s template; checked in the sandbox before the merge and earning the review line | the review job re-checks it and writes the pair record and its exhibit, so the clusters and the questions follow |
| The review job’s own records | the gate, never a person | intent tests, questions, pairs and exhibits are bot commits of the review job; a pull request carrying one is refused as review-job | the review’s derived state: candidates discarded or surviving, clusters, questions waiting, open pairs |
| Choose a display name | the holder of a pseudonym, through the service | display-name pull request: names/<pseudonym>.yaml, signed by the approval key for the bearer; a later record with no name withdraws it | nothing; only a registration’s authors read it, in place of the pseudonym |
| Commit as steward | a mathematician | steward pull request: a signed commitment, or a step-down | nothing; an open problem is to accept work only with a steward, a rule announced and not yet enforced |
| Revise a defective statement | curator | opn-gate revise on a merged revision request, then a curator pull request | old statement → superseded; new version born; each proved dependent → stale until a re-run proof lifts it |
| Consolidate a duplicate | curator | opn-gate consolidate, only when the two statements are definitionally equal | the dropped statement → superseded |
| Abandon a dead branch | curator | opn-gate status <node> abandoned with its cause | statement → abandoned |
| Shelve a statement, or retire a route | a steward of the problem, or a curator | a signed shelving record with a cause: POST /shelvings from the statement’s page or the problem’s routes list, or opn-gate shelve by hand; scope node reaches the statement and every hole beneath it, scope route one merged decomposition and its holes | nothing in the status: the statement is hidden from the routes view, off the frontier, and work on it is refused with node-shelved; a proved statement stays proved; lifted by an unshelve record of the same kind |
| Accept a dispute | adjudication panel | a disputed status record | statement → disputed; if invalidated, repaired by a revision |
| Activate | curator | intake activate or opn-gate status <target> active | listed or dormant → active; refused from a closed status or while an upstream edit freezes the root |
| Declare dormancy | curator | opn-gate status <target> dormant, refused unless the record's evidence of dormancy holds | problem → dormant; the next merged progress artifact reverses it |
| Relabel a rediscovery | curator | a known-result status record | problem → known-result; work closed |
| Write it up | the writer | a signed write-up record naming the paper or note | resolved: explained → written up |
Protocol: decisions D-3, D-6, D-8, D-9, D-10, D-12, D-14, D-17, D-18, D-19, D-25, D-29, D-30, D-31, D-32, D-33, D-35, in the architecture decisions.