MetaCoq / metacoq

Metaprogramming, verified meta-theory and implementation of Coq in Coq
https://metacoq.github.io
MIT License
371 stars 79 forks source link

Examples of generating universe polymorphic code? #396

Open gmalecha opened 4 years ago

gmalecha commented 4 years ago

Are there any examples of people using the template monad to generate universe polymorphic code? I was having difficulty generating polymorphic lenses in the lens library: https://github.com/gmalecha/coq-lens/blob/master/theories/Lens.v

mattam82 commented 4 years ago

I didn't try, but maybe others did. It could be that we lack some support somewhere, did you have an example of something you want to quote/unquote?