Recognizer for assertion structures.
(assertionp x) → *
Function:
(defun assertionp (x) (declare (xargs :guard t)) (let ((__function__ 'assertionp)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(asg constr))) :exec (fty::alist-with-carsp x '(asg constr))) (b* ((asg (cdr (std::da-nth 0 x))) (constr (cdr (std::da-nth 1 x)))) (and (assignmentp asg) (constraintp constr))))))
Theorem:
(defthm consp-when-assertionp (implies (assertionp x) (consp x)) :rule-classes :compound-recognizer)