Recognizer of values of type
(ulongp x) → yes/no
Function:
(defun ulongp (x) (declare (xargs :guard t)) (let ((__function__ 'ulongp)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :ulong) (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((get (std::da-nth 0 (cdr x)))) (ulong-integerp get)))))
Theorem:
(defthm booleanp-of-ulongp (b* ((yes/no (ulongp x))) (booleanp yes/no)) :rule-classes :rewrite)
Theorem:
(defthm consp-when-ulongp (implies (ulongp x) (consp x)) :rule-classes :compound-recognizer)