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