RFC: simp attribute to accept ← modifier #5828
Labels
P-medium
We may work on this issue if we find the time
RFC accepted
RFC is waiting for a corresponding PR (external or internal)
RFC
Request for comments
Proposal
When invoking the
simp
tactic, it is possible to writesimp [foo, ↓bar, ←baz]
, but the attribute version of extending the simpset only supportsbut not
attribute [simp ←] bar
to add the inverse of a rewrite rule to the simp set.
Adding support for this presumably amounts to extending the syntax in
Lean.Parser.Attr.simp
and then setting theinv
parameter toLean.Meta.addSimpTheorem
inLean.Meta.mkSimpAttr
.I assume there is no reason this isn’t already the case beyond “nobody asked for it yet”?
Context
The alternative
rsimp
simpset that’s part of the plan in #5806 benefits from being able to writeattribute [simp ←] Nat.add_eq
instead of
Impact
Add 👍 to issues you consider important. If others benefit from the changes in this proposal being added, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered: