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