For everybody involved (including @gmalecha), @Yannick found a useful fix, and even by looking (and trusting!) the error messages from Coq’s rewrite:
For more examples, see: