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