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