Recognizer for types+vartab structures.
(types+vartab-p x) → *
Function:
(defun types+vartab-p (x) (declare (xargs :guard t)) (let ((__function__ 'types+vartab-p)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(return-types variables))) :exec (fty::alist-with-carsp x '(return-types variables))) (b* ((return-types (cdr (std::da-nth 0 x))) (variables (cdr (std::da-nth 1 x)))) (and (type-setp return-types) (var-tablep variables) (not (emptyp return-types)))))))
Theorem:
(defthm consp-when-types+vartab-p (implies (types+vartab-p x) (consp x)) :rule-classes :compound-recognizer)