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