Recognizer for vl-exprdist structures.
(vl-exprdist-p x) → *
Function:
(defun vl-exprdist-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-exprdist-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-exprdist) (std::prod-consp (cdr x)) (b* ((expr (std::prod-car (cdr x))) (dist (std::prod-cdr (cdr x)))) (and (vl-expr-p expr) (vl-distlist-p dist))))))
Theorem:
(defthm consp-when-vl-exprdist-p (implies (vl-exprdist-p x) (consp x)) :rule-classes :compound-recognizer)