Equational prover