Evaluation semantics of rationalp.
Function:
(defun eval-rationalp (x) (declare (xargs :guard (valuep x))) (let ((__function__ 'eval-rationalp)) (declare (ignorable __function__)) (lift-value (value-case-rational x))))
Theorem:
(defthm valuep-of-eval-rationalp (b* ((result (eval-rationalp x))) (valuep result)) :rule-classes :rewrite)
Theorem:
(defthm eval-rationalp-of-value-fix-x (equal (eval-rationalp (value-fix x)) (eval-rationalp x)))
Theorem:
(defthm eval-rationalp-value-equiv-congruence-on-x (implies (value-equiv x x-equiv) (equal (eval-rationalp x) (eval-rationalp x-equiv))) :rule-classes :congruence)