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