Recognizer for type-result structures.
(type-resultp acl2::x) → *
Function:
(defun type-resultp (acl2::x) (declare (xargs :guard t)) (let ((__function__ 'type-resultp)) (declare (ignorable __function__)) (cond ((typep acl2::x) (b* ((get acl2::x)) (typep get))) (t (b* ((get acl2::x)) (reserrp get))))))
Theorem:
(defthm consp-when-type-resultp (implies (type-resultp acl2::x) (consp acl2::x)) :rule-classes :compound-recognizer)