Recognizer for rewrite-config structures.
(rewrite-config-p x) → *
Function:
(defun rewrite-config-p (x) (declare (xargs :guard t)) (let ((__function__ 'rewrite-config-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :rewrite-config) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(cuts4-config cut-tries-limit zero-cost-replace evaluation-method gatesimp))) :exec (fty::alist-with-carsp (cdr x) '(cuts4-config cut-tries-limit zero-cost-replace evaluation-method gatesimp))) (b* ((cuts4-config (cdr (std::da-nth 0 (cdr x)))) (cut-tries-limit (cdr (std::da-nth 1 (cdr x)))) (zero-cost-replace (cdr (std::da-nth 2 (cdr x)))) (evaluation-method (cdr (std::da-nth 3 (cdr x)))) (gatesimp (cdr (std::da-nth 4 (cdr x))))) (and (cuts4-config-p cuts4-config) (acl2::maybe-natp cut-tries-limit) (booleanp zero-cost-replace) (rewrite-eval-method-p evaluation-method) (gatesimp-p gatesimp))))))
Theorem:
(defthm consp-when-rewrite-config-p (implies (rewrite-config-p x) (consp x)) :rule-classes :compound-recognizer)