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