Recognizer for ex-args structures.
(ex-args-p x) → *
Function:
(defun ex-args-p (x) (declare (xargs :guard t)) (let ((acl2::__function__ 'ex-args-p)) (declare (ignorable acl2::__function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(term-lst fn-lst fn-lvls wrld-fn-len expand-lst))) :exec (fty::alist-with-carsp x '(term-lst fn-lst fn-lvls wrld-fn-len expand-lst))) (b* ((term-lst (cdr (std::da-nth 0 x))) (fn-lst (cdr (std::da-nth 1 x))) (fn-lvls (cdr (std::da-nth 2 x))) (wrld-fn-len (cdr (std::da-nth 3 x))) (expand-lst (cdr (std::da-nth 4 x)))) (and (pseudo-term-listp term-lst) (func-alistp fn-lst) (sym-nat-alistp fn-lvls) (natp wrld-fn-len) (pseudo-term-alistp expand-lst))))))
Theorem:
(defthm consp-when-ex-args-p (implies (ex-args-p x) (consp x)) :rule-classes :compound-recognizer)