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