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