feat: warn on inexact deprecations - #14600
Merged
Merged
Conversation
|
The adaptation PR for this PR is leanprover/downstream-lean4#21. |
|
Mathlib CI status (docs):
|
Collaborator
|
Reference manual CI status:
|
leanprover-bot
added a commit
to leanprover/reference-manual
that referenced
this pull request
Jul 30, 2026
TwoFX
marked this pull request as ready for review
July 30, 2026 14:21
TwoFX
requested review from
datokrat,
digama0,
hargoniX,
kim-em,
sgraf812 and
tydeu
as code owners
July 30, 2026 14:21
Member
Author
|
@wkrozowski If you have a minute, I'd appreciate your review on the meta code. |
wkrozowski
reviewed
Jul 30, 2026
wkrozowski
reviewed
Jul 30, 2026
This was referenced Jul 31, 2026
leanprover-bot
added a commit
to leanprover/reference-manual
that referenced
this pull request
Aug 10, 2026
kim-em
pushed a commit
to leanprover-community/batteries
that referenced
this pull request
Aug 13, 2026
leanprover/lean4#14600 warns when a deprecation's replacement has a different type. All eleven sites here are intentional: in each case the deprecated declaration's own proof is the replacement, either instantiated at a more specific argument or rearranged, so the marker is the right response rather than a change of target. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
kim-em
added a commit
to leanprover-community/mathlib4-nightly-testing
that referenced
this pull request
Aug 14, 2026
Picks up the `+typeChanged` markers for the eleven inexact deprecations leanprover/lean4#14600 flags in Batteries, which `main` does not carry. Co-Authored-By: Claude Opus 5 (1M context) <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 adds a warning when deprecating a declaration in favor of another declaration that is not reducibly defeq.
Here is the warning in full:
The majority of the diff is removing deprecated declarations which would have triggered this warning but are overdue for removal anyway.