← All repos

quote4

Intuitive, type-safe expression quotations for Lean 4.

lean4
Browse cluster: Lean4 Formal Verification & Cryptography
248commits
17contributors
1languages

Tech stack & purpose

quote4 is a Lean 4 package that implements type-safe expression quotations for constructing object-level expressions in meta-level code. It combines intuitive syntax with Lean 4's metaprogramming capabilities, providing `Q(·)` and `q(·)` macros that enable developers to write type-safe quoted expressions with support for antiquotations and dependent types. The package is built on a type family called `QQ`, which tracks the type of quoted expressions and offers advantages over similar systems like Template Haskell by supporting universe polymorphism and dependent types.

Languages

Lean
100.0%

Contributors