fix: FunInd: rewrite matches more reliably in `.induct_unfolding` (#8277)

This PR improves the generation of `.induct_unfolding` by rewriting
`match` statements more reliably, using the new “congruence equations”
introduced in #8284. Fixes #8195.
6 files changed