Recognizer for jcunit structures.
(jcunitp x) → *
Function:
(defun jcunitp (x) (declare (xargs :guard t)) (let ((__function__ 'jcunitp)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(package? imports types))) :exec (fty::alist-with-carsp x '(package? imports types))) (b* ((package? (cdr (std::da-nth 0 x))) (imports (cdr (std::da-nth 1 x))) (types (cdr (std::da-nth 2 x)))) (and (maybe-stringp package?) (jimport-listp imports) (jclass-listp types))))))
Theorem:
(defthm consp-when-jcunitp (implies (jcunitp x) (consp x)) :rule-classes :compound-recognizer)