lean4-htt/tests/lean/run/renameSelf.lean
plp127 e602bdc80c
fix: have rename ignore implementation detail hypotheses (#8241)
This PR changes the behavior of the `rename` tactic to skip over
implementation detail hypotheses when finding a hypothesis to rename.

Closes #8240.
2025-05-07 06:53:13 +00:00

11 lines
207 B
Text

variable {P Q : Prop}
/--
error: failed to find a hypothesis with type
P ↔ Q
-/
#guard_msgs in
example : P ↔ Q := by
rename P ↔ Q => goal
obtain ⟨hpq, hqp⟩ := goal
constructor <;> trivial