Zulip Chat Archive

Stream: lean4

Topic: Qq and local variables


Jakob von Raumer (Mar 30 2023 at 11:23):

Is it possible to use Qq with local variables, e.g. let-bound variables in a do-block?

Gabriel Ebner (Mar 30 2023 at 16:31):

Can you be a bit more specific? I believe the answer is yes in any way that I can think of: you can use quoted expression in do-blocks, antiquotations can refer to quoted expressions introduced by bind, quoted expressions can be free variables, etc.

Gabriel Ebner (Mar 30 2023 at 16:32):

Quote4 does not keep track of the local context however. Nothing prevents you from taking a free variable out of a forallTelescope.

Jakob von Raumer (Apr 03 2023 at 14:51):

Okay, I'll try and come up with a small example


Last updated: Dec 20 2023 at 11:08 UTC