Zulip Chat Archive

Stream: general

Topic: set ≠ tactic.interactive.set


Frédéric Le Roux (Jun 18 2020 at 19:48):

I have the following problem. I would like to recognise the type set X by pattern matching in some tactic, like

private meta def analyse_expr_step  (e : expr) : tactic string :=
match e with
| `(set %%X)

But since I am in a tactic.interactive namespace, Lean thinks that setis the tactic tactic.interactive set. How can I refer to plain setin a tactic.interactive namespace ??

Chris Hughes (Jun 18 2020 at 19:49):

_root_.set

Frédéric Le Roux (Jun 18 2020 at 19:58):

Thanks!

Alex J. Best (Jun 18 2020 at 20:08):

What do people think of editing the error reporting for ambiguous overload in lean now to print the _root_ namespace? I've also forgotten this many times and don't see any reason not to do this.


Last updated: Dec 20 2023 at 11:08 UTC