Recognizer for valid-ord-info structures.
(valid-ord-infop x) → *
Function:
(defun valid-ord-infop (x) (declare (xargs :guard t)) (let ((__function__ 'valid-ord-infop)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :objfun)) (and (true-listp (cdr x)) (eql (len (cdr x)) 3) (b* ((type (std::da-nth 0 (cdr x))) (linkage (std::da-nth 1 (cdr x))) (defstatus (std::da-nth 2 (cdr x)))) (and (typep type) (linkagep linkage) (valid-defstatusp defstatus))))) ((eq (car x) :enumconst) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) (t (and (eq (car x) :typedef) (and (true-listp (cdr x)) (eql (len (cdr x)) 0)) (b* nil t)))))))
Theorem:
(defthm consp-when-valid-ord-infop (implies (valid-ord-infop x) (consp x)) :rule-classes :compound-recognizer)