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