Recognizer for linkage structures.
(linkagep x) → *
Function:
(defun linkagep (x) (declare (xargs :guard t)) (let ((__function__ 'linkagep)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :external)) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :internal) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) (t (and (eq (car x) :none) (and (true-listp (cdr x)) (eql (len (cdr x)) 0)) (b* nil t)))))))
Theorem:
(defthm consp-when-linkagep (implies (linkagep x) (consp x)) :rule-classes :compound-recognizer)