Skip to content

chore: turn defLemma linter into Lean.Linter and rename it to defProp#13803

Open
wkrozowski wants to merge 5 commits into
leanprover:masterfrom
wkrozowski:wojciech/builtinEnvLinter
Open

chore: turn defLemma linter into Lean.Linter and rename it to defProp#13803
wkrozowski wants to merge 5 commits into
leanprover:masterfrom
wkrozowski:wojciech/builtinEnvLinter

Conversation

@wkrozowski
Copy link
Copy Markdown
Contributor

@wkrozowski wkrozowski commented May 20, 2026

This PR renames the defLemma linter to defProp and clarifies
its warning message.

The linter is also moved out of the EnvLinter framework into its own file
Lean.Linter.DefProp, since it now processes elaboration info trees per command.
The helper getDeclsByBody is exposed in Lean.Linter.Util for reuse.

@wkrozowski wkrozowski added the changelog-language Language features and metaprograms label May 20, 2026
@github-actions github-actions Bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label May 20, 2026
@leanprover-bot
Copy link
Copy Markdown
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI can not be attempted yet, as the nightly-testing-2026-05-17 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-manual, reference manual CI should run now. You can force reference manual CI using the force-manual-ci label. (2026-05-20 16:55:47)

@github-actions github-actions Bot added the mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN label May 20, 2026
@mathlib-lean-pr-testing mathlib-lean-pr-testing Bot added the builds-mathlib CI has verified that Mathlib builds against this PR label May 20, 2026
@mathlib-lean-pr-testing
Copy link
Copy Markdown

mathlib-lean-pr-testing Bot commented May 20, 2026

Mathlib CI status (docs):

mathlib-nightly-testing Bot pushed a commit to leanprover-community/batteries that referenced this pull request May 20, 2026
mathlib-nightly-testing Bot pushed a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request May 20, 2026
mathlib-nightly-testing Bot pushed a commit to leanprover-community/batteries that referenced this pull request May 20, 2026
mathlib-nightly-testing Bot pushed a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request May 20, 2026
@wkrozowski wkrozowski changed the title chore: turn defLemma linter into Lean.Linter (WIP) chore: turn defLemma linter into Lean.Linter and rename it to defProp (WIP) May 25, 2026
@wkrozowski wkrozowski changed the title chore: turn defLemma linter into Lean.Linter and rename it to defProp (WIP) chore: move and rename defLemma linter to defProp May 25, 2026
@wkrozowski wkrozowski changed the title chore: move and rename defLemma linter to defProp chore: turn defLemma linter into Lean.Linter and rename it to defProp. May 25, 2026
@wkrozowski wkrozowski changed the title chore: turn defLemma linter into Lean.Linter and rename it to defProp. chore: turn defLemma linter into Lean.Linter and rename it to defProp May 25, 2026
mathlib-nightly-testing Bot pushed a commit to leanprover-community/batteries that referenced this pull request May 25, 2026
mathlib-nightly-testing Bot pushed a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request May 25, 2026
@wkrozowski wkrozowski marked this pull request as ready for review May 25, 2026 16:06
@wkrozowski wkrozowski added the lake-ci Run all Lake tests label May 25, 2026
mathlib-nightly-testing Bot pushed a commit to leanprover-community/batteries that referenced this pull request May 25, 2026
mathlib-nightly-testing Bot pushed a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

builds-mathlib CI has verified that Mathlib builds against this PR changelog-language Language features and metaprograms lake-ci Run all Lake tests mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants