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