Recognizer for expr-type structures.
(expr-typep x) → *
Function:
(defun expr-typep (x) (declare (xargs :guard t)) (let ((__function__ 'expr-typep)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :expr-type) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(type lvalue))) :exec (fty::alist-with-carsp (cdr x) '(type lvalue))) (b* ((type (cdr (std::da-nth 0 (cdr x)))) (lvalue (cdr (std::da-nth 1 (cdr x))))) (and (typep type) (booleanp lvalue))))))
Theorem:
(defthm consp-when-expr-typep (implies (expr-typep x) (consp x)) :rule-classes :compound-recognizer)