Recognizer for atc-context structures.
(atc-contextp x) → *
Function:
(defun atc-contextp (x) (declare (xargs :guard t)) (let ((__function__ 'atc-contextp)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(preamble premises))) :exec (fty::alist-with-carsp x '(preamble premises))) (b* ((preamble (cdr (std::da-nth 0 x))) (premises (cdr (std::da-nth 1 x)))) (and (true-listp preamble) (atc-premise-listp premises))))))
Theorem:
(defthm consp-when-atc-contextp (implies (atc-contextp x) (consp x)) :rule-classes :compound-recognizer)