You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rename_i does not ignore implementation detail hypotheses.
Steps to Reproduce
MWE:
classFoowhereclassBarextends Foo where
bar : True
deffoo : Foo := {}
example [Bar] : Bar := {
foo with bar := by {
rename_i inst
guard_hyp inst : Bar
/- hypothesis inst has type Foo not Bar -/
}
Apologies for the somewhat complex MWE. It's just to set up a goal with an implementation detail hypothesis (namely __src, which appears because of the extended structure).
Prerequisites
Please put an X between the brackets as you perform the following steps:
https://github.com/leanprover/lean4/issues
Avoid dependencies to Mathlib or Batteries.
https://live.lean-lang.org/#project=lean-nightly
(You can also use the settings there to switch to “Lean nightly”)
Description
rename_i
does not ignore implementation detail hypotheses.Steps to Reproduce
MWE:
Apologies for the somewhat complex MWE. It's just to set up a goal with an implementation detail hypothesis (namely
__src
, which appears because of theextend
ed structure).Versions
"4.12.0-nightly-2024-08-26"
Impact
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered: