Recognizer for flatten-res structures.
(flatten-res-p x) → *
Function:
(defun flatten-res-p (x) (declare (xargs :guard t)) (let ((__function__ 'flatten-res-p)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(assigns fixups constraints var-decl-map))) :exec (fty::alist-with-carsp x '(assigns fixups constraints var-decl-map))) (b* ((assigns (cdr (std::da-nth 0 x))) (fixups (cdr (std::da-nth 1 x))) (constraints (cdr (std::da-nth 2 x))) (var-decl-map (cdr (std::da-nth 3 x)))) (and (assigns-p assigns) (assigns-p fixups) (constraintlist-p constraints) (var-decl-map-p var-decl-map))))))
Theorem:
(defthm consp-when-flatten-res-p (implies (flatten-res-p x) (consp x)) :rule-classes :compound-recognizer)