Apply
Function:
(defun lognot-scalar-value (val) (declare (xargs :guard (valuep val))) (declare (xargs :guard (value-scalarp val))) (let ((__function__ 'lognot-scalar-value)) (declare (ignorable __function__)) (cond ((value-integerp val) (lognot-integer-value val)) ((value-case val :pointer) (lognot-pointer-value val)) (t (ec-call (value-fix (impossible)))))))
Theorem:
(defthm valuep-of-lognot-scalar-value (b* ((resval (lognot-scalar-value val))) (valuep resval)) :rule-classes :rewrite)
Theorem:
(defthm lognot-scalar-value-of-value-fix-val (equal (lognot-scalar-value (value-fix val)) (lognot-scalar-value val)))
Theorem:
(defthm lognot-scalar-value-value-equiv-congruence-on-val (implies (value-equiv val val-equiv) (equal (lognot-scalar-value val) (lognot-scalar-value val-equiv))) :rule-classes :congruence)