Recognizer for reference-value structures.
(reference-valuep x) → *
Function:
(defun reference-valuep (x) (declare (xargs :guard t)) (let ((__function__ 'reference-valuep)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :pointer)) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((get (std::da-nth 0 (cdr x)))) (pointerp get)))) (t (and (eq (car x) :null) (and (true-listp (cdr x)) (eql (len (cdr x)) 0)) (b* nil t)))))))
Theorem:
(defthm consp-when-reference-valuep (implies (reference-valuep x) (consp x)) :rule-classes :compound-recognizer)