Recognizer for obs-constprop-config structures.
(obs-constprop-config-p x) → *
Function:
(defun obs-constprop-config-p (x) (declare (xargs :guard t)) (let ((__function__ 'obs-constprop-config-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :obs-constprop-config) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(gatesimp constprop-iterations obs-hyp-max-size obs-concl-min-size obs-min-ratio))) :exec (fty::alist-with-carsp (cdr x) '(gatesimp constprop-iterations obs-hyp-max-size obs-concl-min-size obs-min-ratio))) (b* ((gatesimp (cdr (std::da-nth 0 (cdr x)))) (constprop-iterations (cdr (std::da-nth 1 (cdr x)))) (obs-hyp-max-size (cdr (std::da-nth 2 (cdr x)))) (obs-concl-min-size (cdr (std::da-nth 3 (cdr x)))) (obs-min-ratio (cdr (std::da-nth 4 (cdr x))))) (and (gatesimp-p gatesimp) (natp constprop-iterations) (acl2::maybe-natp obs-hyp-max-size) (acl2::maybe-natp obs-concl-min-size) (rationalp obs-min-ratio))))))
Theorem:
(defthm consp-when-obs-constprop-config-p (implies (obs-constprop-config-p x) (consp x)) :rule-classes :compound-recognizer)