Repository navigation
Conversation
The archived leanprover/comparator README was the only explanation of how to set up a challenge, what is compared and how definition holes can be gamed. Move that material here, updated for `lake comparator`, along with the assumptions the result relies on, and stop linking to the archived repository. Based in part on leanprover/comparator#100. Co-authored-by: Yaël Dillies <yael.dillies@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR documents how to set up and interpret
lake comparator, and removes the manual's links to the archived leanprover/comparator repository. That repository's README was the only explanation of parts of this material, and comparator's behavior now needs a home that is versioned with Lean.Additions to "Challenges and External Checkers":
Lake/Check/Compare.leanandLake/CLI/Check.lean.Changes to "Validating a Lean Proof":
lake help comparatoronmaster(lean4#16096), plus a line on reviewing definition holes.--paranoidinstead of sayingnanodais the only external checker.Testing:
leanon v4.36.0-rc2 outside the manual. In the manual, they are checked by the build.lake comparatoron these examples, because it needs Linux andbubblewrapand I only had a Mac. The claims that the solutions are accepted come from the old README and from readingCompare.lean.Questions for reviewers:
CONTRIBUTING.mdasks to discuss substantial content first, so this is a draft for that discussion. I can split it up or cut it down.lake help comparatoronmasterrequires no existing.lakedirectory, while the archived README allowedlake exe cache getbeforehand if you trust the cache. A Mathlib project may otherwise have to build Mathlib from source. This PR doesn't address it because I couldn't find it documented.lake helponmasterbut not v4.36.0-rc2. The check that holes aresorryin the challenge (lean4#15775) isn't in rc2 either, so the text tells authors to usesorrywithout saying that anything else is rejected.landrun, and the note on why.oleanfiles aren't loaded, which thelake comparatorentry already covers.Overlap: #982 adds a chapter on external kernels, so the Comments edit could link to it once that lands. #847 also edits "Validating a Lean Proof", so one of these may need a small rebase.
This PR was drafted with generative AI (Claude Code).
🤖 Generated with Claude Code