Recognizer for cr8bits bit structures.
(cr8bits-p x) → *
Function:
(defun cr8bits-p$inline (x) (declare (xargs :guard t)) (mbe :logic (unsigned-byte-p 4 x) :exec (and (natp x) (< x 16))))
Theorem:
(defthm cr8bits-p-when-unsigned-byte-p (implies (unsigned-byte-p 4 x) (cr8bits-p x)))
Theorem:
(defthm unsigned-byte-p-when-cr8bits-p (implies (cr8bits-p x) (unsigned-byte-p 4 x)))
Theorem:
(defthm cr8bits-p-compound-recognizer (implies (cr8bits-p x) (natp x)) :rule-classes :compound-recognizer)