Recognizer for file structures.
(filep x) → *
Function:
(defun filep (x) (declare (xargs :guard t)) (let ((__function__ 'filep)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :file) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(declons))) :exec (fty::alist-with-carsp (cdr x) '(declons))) (b* ((declons (cdr (std::da-nth 0 (cdr x))))) (ext-declon-listp declons)))))
Theorem:
(defthm consp-when-filep (implies (filep x) (consp x)) :rule-classes :compound-recognizer)