This PR changes the behavior of the `rename` tactic to skip over implementation detail hypotheses when finding a hypothesis to rename. Closes #8240.
11 lines
207 B
Text
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
|