Recognizer for input-item structures.
(input-itemp x) → *
Function:
(defun input-itemp (x) (declare (xargs :guard t)) (let ((__function__ 'input-itemp)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :input-item) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(name type value))) :exec (fty::alist-with-carsp (cdr x) '(name type value))) (b* ((name (cdr (std::da-nth 0 (cdr x)))) (type (cdr (std::da-nth 1 (cdr x)))) (value (cdr (std::da-nth 2 (cdr x))))) (and (identifierp name) (input-typep type) (input-expressionp value))))))
Theorem:
(defthm consp-when-input-itemp (implies (input-itemp x) (consp x)) :rule-classes :compound-recognizer)