Zulip Chat Archive
Stream: Is there code for X?
Topic: Can I give different names to tactics?
Mr Proof (Jun 14 2024 at 00:49):
If I have a tactic like rw[<-Real.sq_sqrt]
can I assign this to a different named variable just to give it a different name?
Kyle Miller (Jun 14 2024 at 01:06):
It sounds like you're asking about making tactic macros.
macro "the_great_tactic_of_mr_proof" : tactic =>
`(tactic| rw [<-Real.sq_sqrt])
Then the_great_tactic_of_mr_proof
is rw [<-Real.sq_sqrt]
for short.
Last updated: May 02 2025 at 03:31 UTC