Recognizer for ubyte11.
(ubyte11p x) → yes/no
Function:
(defun ubyte11p (x) (declare (xargs :guard t)) (mbe :logic (unsigned-byte-p 11 x) :exec (and (integerp x) (<= 0 x) (< x 2048))))
Theorem:
(defthm booleanp-of-ubyte11p (b* ((yes/no (ubyte11p x))) (booleanp yes/no)) :rule-classes :rewrite)
Theorem:
(defthm ubyte11p-forward-unsigned-byte-p (implies (ubyte11p x) (unsigned-byte-p 11 x)) :rule-classes :forward-chaining)
Theorem:
(defthm unsigned-byte-p-rewrite-ubyte11p (equal (unsigned-byte-p 11 x) (ubyte11p x)))
Theorem:
(defthm natp-when-ubyte11p (implies (ubyte11p x) (natp x)) :rule-classes :compound-recognizer)