Recognizer for atc-premise structures.
(atc-premisep x) → *
Function:
(defun atc-premisep (x) (declare (xargs :guard t)) (let ((__function__ 'atc-premisep)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :compustate)) (and (true-listp (cdr x)) (eql (len (cdr x)) 2) (b* ((var (std::da-nth 0 (cdr x))) (term (std::da-nth 1 (cdr x)))) (and (symbolp var) (acl2::any-p term))))) ((eq (car x) :cvalue) (and (true-listp (cdr x)) (eql (len (cdr x)) 2) (b* ((var (std::da-nth 0 (cdr x))) (term (std::da-nth 1 (cdr x)))) (and (symbolp var) (acl2::any-p term))))) ((eq (car x) :cvalues) (and (true-listp (cdr x)) (eql (len (cdr x)) 2) (b* ((vars (std::da-nth 0 (cdr x))) (term (std::da-nth 1 (cdr x)))) (and (symbol-listp vars) (acl2::any-p term))))) (t (and (eq (car x) :test) (and (true-listp (cdr x)) (eql (len (cdr x)) 1)) (b* ((term (std::da-nth 0 (cdr x)))) (acl2::any-p term))))))))
Theorem:
(defthm consp-when-atc-premisep (implies (atc-premisep x) (consp x)) :rule-classes :compound-recognizer)