Zulip Chat Archive

Stream: metaprogramming / tactics

Topic: loc.wildcard


Damiano Testa (Apr 25 2022 at 11:38):

Dear All,

should loc.wildcard include the current goal as well? That is, if I want to apply a tactic at *, I should get both local_context and target, right?

Is there a single command that returns local_context ++ target?
EDIT: This part is somewhat nonsense, since, even though local_context appears to have type list expr and target appears to have type expr, I think that local_context are the names of the variables in the context, while target is the type of the goal.

The question of whether tactic at * should mean all hypotheses and also the target still holds!

Thanks!

Mario Carneiro (Apr 25 2022 at 18:21):

yes, at * means all hypotheses and the target

Mario Carneiro (Apr 25 2022 at 18:21):

src#interactive.loc.apply contains the reasoning about this case. You should usually use this instead of destructuring loc directly

Damiano Testa (Apr 25 2022 at 18:30):

Ah, i did not know. I did something, maybe I'll have to change it a little bit.


Last updated: Dec 20 2023 at 11:08 UTC