Check if a value is an integer.
The name of this function is analogous to
the notation
Function:
(defun value-case-integer (x) (declare (xargs :guard (valuep x))) (let ((__function__ 'value-case-integer)) (declare (ignorable __function__)) (and (value-case x :number) (integerp (value-number->get x)))))
Theorem:
(defthm booleanp-of-value-case-integer (b* ((yes/no (value-case-integer x))) (booleanp yes/no)) :rule-classes :rewrite)
Theorem:
(defthm value-case-integer-of-value-fix-x (equal (value-case-integer (value-fix x)) (value-case-integer x)))
Theorem:
(defthm value-case-integer-value-equiv-congruence-on-x (implies (value-equiv x x-equiv) (equal (value-case-integer x) (value-case-integer x-equiv))) :rule-classes :congruence)