Recognizer for fty-info structures.
(fty-info-p x) → *
Function:
(defun fty-info-p (x) (declare (xargs :guard t)) (let ((acl2::__function__ 'fty-info-p)) (declare (ignorable acl2::__function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(name category type guards returns))) :exec (fty::alist-with-carsp x '(name category type guards returns))) (b* ((name (cdr (std::da-nth 0 x))) (category (cdr (std::da-nth 1 x))) (type (cdr (std::da-nth 2 x))) (guards (cdr (std::da-nth 3 x))) (returns (cdr (std::da-nth 4 x)))) (and (symbolp name) (symbolp category) (symbolp type) (symbol-listp guards) (symbolp returns))))))
Theorem:
(defthm consp-when-fty-info-p (implies (fty-info-p x) (consp x)) :rule-classes :compound-recognizer)