Skip to content

chore: deprecate liftReflToEq and rel_of_eq_and_refl - #15080

Merged
kim-em merged 1 commit into
masterfrom
rel_of_eq_and_refl
Sep 9, 2026
Merged

chore: deprecate liftReflToEq and rel_of_eq_and_refl#15080
kim-em merged 1 commit into
masterfrom
rel_of_eq_and_refl

Conversation

@kim-em

@kim-em kim-em commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

This PR deprecates Lean.MVarId.liftReflToEq and its helper theorem Lean.Meta.Rfl.rel_of_eq_and_refl. Neither is hooked up to a tactic in core, and downstream users should keep their own copies.

The only user is Mathlib, which calls liftReflToEq directly from Mathlib.Tactic.CongrM and Mathlib.Tactic.CongrExclamation; leanprover-community/mathlib4#43601 moves both declarations there.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CH8QxMAJ7CEKkYq6z2DuUp

Neither is hooked up to a tactic in core; the only user is Mathlib, which
calls `liftReflToEq` directly from `Mathlib.Tactic.CongrM` and
`Mathlib.Tactic.CongrExclamation`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CH8QxMAJ7CEKkYq6z2DuUp
@kim-em
kim-em requested a review from leodemoura as a code owner September 9, 2026 04:36
@kim-em kim-em added the changelog-library Library label Sep 9, 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 Sep 9, 2026
@mathlib-lean-pr-testing

Copy link
Copy Markdown

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 9e3f6c6c8671b3270684c4ce46b40449929f93f2 --onto d359ee1694e7e93efbcf2a23a56ea92340ccd001. You can force Mathlib CI using the force-mathlib-ci label. (2026-09-09 04:49:57)

@leanprover-bot

Copy link
Copy Markdown
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI will not be attempted unless your PR branches off the nightly-with-manual branch. Try git rebase 9e3f6c6c8671b3270684c4ce46b40449929f93f2 --onto c155094f54eab345cca3da867dbd888a34fbf0d2. You can force reference manual CI using the force-manual-ci label. (2026-09-09 04:49:59)

@kim-em
kim-em added this pull request to the merge queue Sep 9, 2026
Merged via the queue into master with commit d7918b7 Sep 9, 2026
29 checks passed
mathlib-bors Bot pushed a commit to leanprover-community/mathlib4 that referenced this pull request Sep 10, 2026
This PR moves `Lean.MVarId.liftReflToEq` and its helper theorem `Lean.Meta.Rfl.rel_of_eq_and_refl` from core into `Mathlib/Tactic/Relation/Rfl.lean`, where they become `Mathlib.Tactic.liftReflToEq` and `Mathlib.Tactic.rel_of_eq_and_refl`. Mathlib is the only user of either declaration, so core deprecates them in leanprover/lean4#15080.

The new names avoid a clash with the deprecated core declarations, so the two call sites in `Mathlib.Tactic.CongrM` and `Mathlib.Tactic.CongrExclamation` no longer use dot notation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01CH8QxMAJ7CEKkYq6z2DuUp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-library Library 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