Implemented check for counterexamples to induction