Zulip Chat Archive
Stream: lean4
Topic: quote4 match error "resulting term contains metavariable"
David Renshaw (Dec 15 2022 at 00:36):
@Gabriel Ebner : am I doing something wrong here ^ ?
Gabriel Ebner (Dec 15 2022 at 00:46):
Once you see it, it's obvious. This also works:
def bar (p : Q(Prop)) : TacticM Unit := match p with
| ~q((($a : Prop)) → ($b : Prop)) => do pure ()
| _ => pure ()
Gabriel Ebner (Dec 15 2022 at 00:47):
This is an awkward side effect of the new (a : A) → b
syntax for ∀
.
David Renshaw (Dec 15 2022 at 00:48):
thanks!
Last updated: Dec 20 2023 at 11:08 UTC