Recognizer for funarg structures.
(funargp x) → *
Function:
(defun funargp (x) (declare (xargs :guard t)) (let ((__function__ 'funargp)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :funarg) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(name sort value))) :exec (fty::alist-with-carsp (cdr x) '(name sort value))) (b* ((name (cdr (std::da-nth 0 (cdr x)))) (sort (cdr (std::da-nth 1 (cdr x)))) (value (cdr (std::da-nth 2 (cdr x))))) (and (identifierp name) (var/const-sortp sort) (valuep value))))))
Theorem:
(defthm consp-when-funargp (implies (funargp x) (consp x)) :rule-classes :compound-recognizer)