About
This site is a companion for reviewing open pull requests on leanprover-community/mathlib4, one queue per author. It started with the PRs of @mycaule and follows this comment: much of the review feedback so far has been about style, which a tool can point out, and a plain-language version beside the Lean code can let a maintainer check a statement faster.
What each review page shows
- Declarations beside their meaning. The diff is cut into declarations. Each one gets its Lean code on the left and, on the right, a transcription of the statement in ordinary mathematical language, the proof strategy, and sometimes a point to check. The transcriptions live in
notes/<number>.md. They are drafted with an LLM from the diff, so they are a reading aid and can be wrong: the Lean code is the reference. - Style hints. A first pass over the added lines for points mathlib reviewers often raise:
fun x =>instead of↦, non-terminalsimp,by exact, blank lines in proofs, missing docstrings on definitions, consecutiverws, long proofs,_root_names, and so on. They read the text only and can misfire. - The GitHub conversation. Review comments appear under the line they are attached to; the rest is in a collapsible block.
- A batch review. Mark each declaration as looks right, question or needs change, add a note, or select some code and comment on it. The export turns it all into one Markdown comment with links to the exact lines. Everything stays in your browser (localStorage) until you paste it.
The queue
Each author's queue sorts the PRs the Getting Things Done way: next actions (ready for review, smallest first), almost there, waiting for the author (draft, CI, requested changes, conflicts), waiting for another PR. Draft state, reviews and CI come from the GitHub API snapshot, refreshed by a scheduled workflow.
Source
Commutator-IO/mathlib4-review-helper. The same approach could carry over to the queueboard.