feat: AC theorems for `grind` (#10093)

This PR adds background theorems for a new solver to be implemented in
`grind` that will support associative and commutative operators.
3 files changed