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