Recognizer for vl-zipinfo structures.
(vl-zipinfo-p x) → *
Function:
(defun vl-zipinfo-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-zipinfo-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-zipinfo) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(filename name syntax date ltime))) :exec (fty::alist-with-carsp (cdr x) '(filename name syntax date ltime))) (b* ((filename (cdr (std::da-nth 0 (cdr x)))) (name (cdr (std::da-nth 1 (cdr x)))) (syntax (cdr (std::da-nth 2 (cdr x)))) (date (cdr (std::da-nth 3 (cdr x)))) (ltime (cdr (std::da-nth 4 (cdr x))))) (and (stringp filename) (stringp name) (stringp syntax) (stringp date) (natp ltime))))))
Theorem:
(defthm consp-when-vl-zipinfo-p (implies (vl-zipinfo-p x) (consp x)) :rule-classes :compound-recognizer)