Recognizer for atj-test structures.
(atj-testp x) → *
Function:
(defun atj-testp (x) (declare (xargs :guard t)) (let ((__function__ 'atj-testp)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(name function inputs outputs))) :exec (fty::alist-with-carsp x '(name function inputs outputs))) (b* ((name (cdr (std::da-nth 0 x))) (function (cdr (std::da-nth 1 x))) (inputs (cdr (std::da-nth 2 x))) (outputs (cdr (std::da-nth 3 x)))) (and (stringp name) (symbolp function) (atj-test-value-listp inputs) (atj-test-value-listp outputs))))))
Theorem:
(defthm consp-when-atj-testp (implies (atj-testp x) (consp x)) :rule-classes :compound-recognizer)