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
If a theorem is deprecated and used in simp or dsimp, the deprecation warning is attached to simp, rather than to the declaration itself.
Note: the warning message is correct, it is simply logged at the incorrect syntax node.
Context
This arose in the context of automatic replacement of deprecated declarations. See also this Zulip thread.
Steps to Reproduce
@[deprecated]theoremhi : True := .intro
example : True := by-- the warning is on `simp`
simp [
hi -- could the warning be logged at the syntax node of `hi`?
]
Expected behavior: The warning is on hi, not on simp
Actual behavior: The warning is on simp, not on hi.
Versions
#eval Lean.versionString: "4.9.0-rc1"
OS version: live.lean-lang.org, Linux
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
If a theorem is deprecated and used in
simp
ordsimp
, the deprecation warning is attached tosimp
, rather than to the declaration itself.Note: the warning message is correct, it is simply logged at the incorrect syntax node.
Context
This arose in the context of automatic replacement of deprecated declarations. See also this Zulip thread.
Steps to Reproduce
Expected behavior: The warning is on
hi
, not onsimp
Actual behavior: The warning is on
simp
, not onhi
.Versions
#eval Lean.versionString
: "4.9.0-rc1"OS version: live.lean-lang.org, Linux
Additional Information
#4448 is already a PR to fix this issue.
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: