feat: proofs for theory propagation in `grind order`

This PR implements proof construction for theory propagation in `grind order`.
3 files changed