leanprover-community / lean4-metaprogramming-book

https://leanprover-community.github.io/lean4-metaprogramming-book/
Apache License 2.0
211 stars 50 forks source link

metam: add note about matching expressions with `isDefEq` #70

Open JLimperg opened 2 years ago

JLimperg commented 2 years ago

The MetaM chapter already contains some notes about matching expressions up to computation, using whnf. But arguably the more convenient approach is to use isDefEq with a pattern expression containing some metavariables (like the quote4 library). I should add a note about this trick.