Recognizer for filepath structures.
(filepathp x) → *
Function:
(defun filepathp (x) (declare (xargs :guard t)) (let ((__function__ 'filepathp)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(unwrap))) :exec (fty::alist-with-carsp x '(unwrap))) (b* ((unwrap (cdr (std::da-nth 0 x)))) (acl2::any-p unwrap)))))
Theorem:
(defthm consp-when-filepathp (implies (filepathp x) (consp x)) :rule-classes :compound-recognizer)