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