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