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