fix: notify `grind` solvers about equalities in classes with heterogeneous equalities

This PR fixes an internal `grind` error (`mkEqProof` invoked with terms of different types) and missed solver equalities in equivalence classes merged via `HEq` (e.g., `Fin n` and `Fin m` terms related by `cast`).

Each equivalence class kept one representative per solver, which could have a different type than the terms of an equality or disequality. Disequalities were sent to solvers with ill-typed terms, and equalities between terms of different types than the representative were dropped. Solvers now have one representative per type. The new code runs only for classes with `heqProofs := true`; the code path for other classes is unchanged.

Closes #15799

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 files changed