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