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