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