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