Check if a value of type
Function:
(defun boolean-from-sshort (x) (declare (xargs :guard (and (sshortp x)))) (/= (integer-from-sshort x) 0))
Theorem:
(defthm booleanp-of-boolean-from-sshort (booleanp (boolean-from-sshort x)))
Theorem:
(defthm boolean-from-sshort-of-sshort-fix-x (equal (boolean-from-sshort (sshort-fix x)) (boolean-from-sshort x)))
Theorem:
(defthm boolean-from-sshort-sshort-equiv-congruence-on-x (implies (sshort-equiv x x-equiv) (equal (boolean-from-sshort x) (boolean-from-sshort x-equiv))) :rule-classes :congruence)