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