Recognizer for reserr structures.
(reserrp x) → *
Function:
(defun reserrp (x) (declare (xargs :guard t)) (let ((__function__ 'reserrp)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :error) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(info))) :exec (alist-with-carsp (cdr x) '(info))) (b* ((info (cdr (std::da-nth 0 (cdr x))))) (acl2::any-p info)))))
Theorem:
(defthm consp-when-reserrp (implies (reserrp x) (consp x)) :rule-classes :compound-recognizer)