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