Skip to content

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

Open
Nelson Spence (Fieldnote-Echo) wants to merge 1 commit intomainfrom
refactor/proof-style-cleanup
Open

refactor: tighten proof style from Mathlib PR review feedback#11
Nelson Spence (Fieldnote-Echo) wants to merge 1 commit intomainfrom
refactor/proof-style-cleanup

Conversation

@Fieldnote-Echo
Copy link
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.
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.

1 participant