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