Recognizer for fileset structures.
(filesetp x) → *
Function:
(defun filesetp (x) (declare (xargs :guard t)) (let ((__function__ 'filesetp)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :fileset) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(path-wo-ext dot-h dot-c))) :exec (fty::alist-with-carsp (cdr x) '(path-wo-ext dot-h dot-c))) (b* ((path-wo-ext (cdr (std::da-nth 0 (cdr x)))) (dot-h (cdr (std::da-nth 1 (cdr x)))) (dot-c (cdr (std::da-nth 2 (cdr x))))) (and (stringp path-wo-ext) (file-optionp dot-h) (filep dot-c))))))
Theorem:
(defthm consp-when-filesetp (implies (filesetp x) (consp x)) :rule-classes :compound-recognizer)