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