Recognizer for fhg-single-args structures.
(fhg-single-args-p x) → *
Function:
(defun fhg-single-args-p (x) (declare (xargs :guard t)) (let ((acl2::__function__ 'fhg-single-args-p)) (declare (ignorable acl2::__function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(fn actuals fn-returns-hint-acc fn-more-returns-hint-acc lambda-acc))) :exec (fty::alist-with-carsp x '(fn actuals fn-returns-hint-acc fn-more-returns-hint-acc lambda-acc))) (b* ((fn (cdr (std::da-nth 0 x))) (actuals (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 (func-p fn) (pseudo-term-listp actuals) (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-single-args-p (implies (fhg-single-args-p x) (consp x)) :rule-classes :compound-recognizer)