Recognizer for fhg-args structures.
(fhg-args-p x) → *
Function:
(defun fhg-args-p (x) (declare (xargs :guard t)) (let ((acl2::__function__ 'fhg-args-p)) (declare (ignorable acl2::__function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(term-lst fn-lst fn-returns-hint-acc fn-more-returns-hint-acc lambda-acc))) :exec (fty::alist-with-carsp x '(term-lst fn-lst fn-returns-hint-acc fn-more-returns-hint-acc lambda-acc))) (b* ((term-lst (cdr (std::da-nth 0 x))) (fn-lst (cdr (std::da-nth 1 x))) (fn-returns-hint-acc (cdr (std::da-nth 2 x))) (fn-more-returns-hint-acc (cdr (std::da-nth 3 x))) (lambda-acc (cdr (std::da-nth 4 x)))) (and (pseudo-term-listp term-lst) (func-alistp fn-lst) (hint-pair-listp fn-returns-hint-acc) (hint-pair-listp fn-more-returns-hint-acc) (lambda-binding-listp lambda-acc))))))
Theorem:
(defthm consp-when-fhg-args-p (implies (fhg-args-p x) (consp x)) :rule-classes :compound-recognizer)