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