Intuitive, type-safe expression quotations for Lean 4.
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.