Recognizer for jparam structures.
(jparamp x) → *
Function:
(defun jparamp (x) (declare (xargs :guard t)) (let ((__function__ 'jparamp)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(final? type name))) :exec (fty::alist-with-carsp x '(final? type name))) (b* ((final? (cdr (std::da-nth 0 x))) (type (cdr (std::da-nth 1 x))) (name (cdr (std::da-nth 2 x)))) (and (booleanp final?) (jtypep type) (stringp name))))))
Theorem:
(defthm consp-when-jparamp (implies (jparamp x) (consp x)) :rule-classes :compound-recognizer)