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