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