Recognizer for filedata structures.
(filedatap x) → *
Function:
(defun filedatap (x) (declare (xargs :guard t)) (let ((__function__ 'filedatap)) (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)))) (byte-listp unwrap)))))
Theorem:
(defthm consp-when-filedatap (implies (filedatap x) (consp x)) :rule-classes :compound-recognizer)