Skip to content

refactor: tighten proof style from Mathlib PR review feedback#11

Merged
project-navi-bot merged 1 commit intomainfrom
refactor/proof-style-cleanup
Mar 29, 2026
Merged

refactor: tighten proof style from Mathlib PR review feedback#11
project-navi-bot merged 1 commit intomainfrom
refactor/proof-style-cleanup

Conversation

@Fieldnote-Echo
Copy link
Copy Markdown
Member

Summary

  • Apply proof style lessons from three rounds of Mathlib review on PR leanprover-community/mathlib4#36443
  • .rfl over Iff.rfl, ext; simp [...] over manual constructor chains, sub_pos.mpr for cast positivity, omega over verbose lemma applications
  • Unsqueeze terminal simp onlysimp, squeeze non-terminal bare simpsimp only, drop deprecated from keyword
  • Update CLAUDE.md with Mathlib reviewer conventions (proof style, PR communication, definition argument order)
  • -35 lines of Lean, lake build --wfail + lake lint clean, zero sorry

Test plan

  • lake build --wfail passes (1940 jobs)
  • lake lint passes (0 errors)
  • Zero sorry, zero custom axioms unchanged

🤖 Generated with Claude Code

Apply lessons from three rounds of review on PR #36443:
- .rfl over Iff.rfl, ext;simp for set equality, sub_pos.mpr for cast positivity
- Unsqueeze terminal simp, squeeze non-terminal simp, omega over verbose lemmas
- Drop deprecated `from` keyword, remove unused intermediates
- Update CLAUDE.md with Mathlib reviewer conventions

-35 lines of Lean, build + lint clean, zero sorry.
@project-navi-bot project-navi-bot merged commit 9b10710 into main Mar 29, 2026
4 checks passed
@project-navi-bot project-navi-bot deleted the refactor/proof-style-cleanup branch March 29, 2026 02:09
Nelson Spence (Fieldnote-Echo) added a commit that referenced this pull request Mar 29, 2026
- Add PathGraphDist as upstream candidate in README
- Fix Verify.lean declaration count (20 → 27)
- Fix GraphBall lemma count (8 core + 6 convenience)
- Expand Aristotle role in Development Process section
- Correct FlowerVert type signature in theorems.md and graph-construction.md
- Add changelog entries for PRs #11 and #12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants