Recognizer for balance-config structures.
(balance-config-p x) → *
Function:
(defun balance-config-p (x) (declare (xargs :guard t)) (let ((__function__ 'balance-config-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :balance-config) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(search-higher-levels search-second-lit search-limit supergate-limit verbosity-level gatesimp))) :exec (fty::alist-with-carsp (cdr x) '(search-higher-levels search-second-lit search-limit supergate-limit verbosity-level gatesimp))) (b* ((search-higher-levels (cdr (std::da-nth 0 (cdr x)))) (search-second-lit (cdr (std::da-nth 1 (cdr x)))) (search-limit (cdr (std::da-nth 2 (cdr x)))) (supergate-limit (cdr (std::da-nth 3 (cdr x)))) (verbosity-level (cdr (std::da-nth 4 (cdr x)))) (gatesimp (cdr (std::da-nth 5 (cdr x))))) (and (booleanp search-higher-levels) (booleanp search-second-lit) (natp search-limit) (posp supergate-limit) (natp verbosity-level) (gatesimp-p gatesimp))))))
Theorem:
(defthm consp-when-balance-config-p (implies (balance-config-p x) (consp x)) :rule-classes :compound-recognizer)