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