Zulip Chat Archive

Stream: lean4

Topic: Redefining the elaborator for the `simp` attribute


Simon Hudon (Mar 27 2022 at 05:08):

I just wrote this code but attr isn't recognized.

elab_rules : attr
| `(simp $x $y $z) => _
-- unsupported syntax category 'attr'

Since it was declared as

syntax (name := simp) "simp" (Tactic.simpPre <|> Tactic.simpPost)? (prio)? : attr

in Init/Notation.lean. I take it changing the behavior of @[simp] is not done by writing an elab_rules. Is it still possible? If so, how?


Last updated: Dec 20 2023 at 11:08 UTC