feat: improve equation theorem support in `grind`

This PR ensures that conditional equation theorems for function
definitions are handled correctly in `grind`. We use the same infrastructure built for
`match`-expression equations. Recall that in both cases, these theorems are
conditional when there are overlapping patterns.
2 files changed