feat: avoid some redundant proof terms in `grind` (#6615)

This PR adds two auxiliary functions `mkEqTrueCore` and `mkOfEqTrueCore`
that avoid redundant proof terms in proofs produced by `grind`.
8 files changed