MetaCoq / metacoq

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

Adapt to coq PR #18921 fixing bugs of the inference of the return clause for Program-style pattern-matching #1078

Closed herbelin closed 4 months ago

herbelin commented 4 months ago

Coq PR coq/coq#18921 fixes two bugs in the inference of the return clause for Program-style pattern-matching and this has the apparent consequence of modifying the return clause of the match in the definition PCUICSafeChecker.check_projections, and that one more obligation is solved automatically.

We drop the now useless proof (with a comment to indicate that it depends on the Coq version).

To be merged synchronously (though maybe there is a way to make it compatible over different versions? maybe with a Fail?)