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