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