Recognizer for 31bits bit structures.
(31bits-p x) → *
Function:
(defun 31bits-p (x) (declare (xargs :guard t)) (let ((__function__ '31bits-p)) (declare (ignorable __function__)) (mbe :logic (unsigned-byte-p 31 x) :exec (and (natp x) (< x 2147483648)))))
Theorem:
(defthm 31bits-p-when-unsigned-byte-p (implies (unsigned-byte-p 31 x) (31bits-p x)))
Theorem:
(defthm unsigned-byte-p-when-31bits-p (implies (31bits-p x) (unsigned-byte-p 31 x)))
Theorem:
(defthm 31bits-p-compound-recognizer (implies (31bits-p x) (natp x)) :rule-classes :compound-recognizer)