Updated logic being used in theorem prover