Recognizer for transunit structures.
(transunitp x) → *
Function:
(defun transunitp (x) (declare (xargs :guard t)) (let ((__function__ 'transunitp)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(decls info))) :exec (fty::alist-with-carsp x '(decls info))) (b* ((decls (cdr (std::da-nth 0 x))) (info (cdr (std::da-nth 1 x)))) (and (extdecl-listp decls) (acl2::any-p info))))))
Theorem:
(defthm consp-when-transunitp (implies (transunitp x) (consp x)) :rule-classes :compound-recognizer)