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