Recognizer for parametrize-config structures.
(parametrize-config-p x) → *
Function:
(defun parametrize-config-p (x) (declare (xargs :guard t)) (let ((__function__ 'parametrize-config-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :parametrize-config) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(build-limit conjoin-limit output-types))) :exec (fty::alist-with-carsp (cdr x) '(build-limit conjoin-limit output-types))) (b* ((build-limit (cdr (std::da-nth 0 (cdr x)))) (conjoin-limit (cdr (std::da-nth 1 (cdr x)))) (output-types (cdr (std::da-nth 2 (cdr x))))) (and (natp build-limit) (natp conjoin-limit) (parametrize-output-type-map-p output-types))))))
Theorem:
(defthm consp-when-parametrize-config-p (implies (parametrize-config-p x) (consp x)) :rule-classes :compound-recognizer)