Recognizer for cgraph-value structures.
(cgraph-value-p x) → *
Function:
(defun cgraph-value-p (x) (declare (xargs :guard t)) (let ((__function__ 'cgraph-value-p)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(val priority rule))) :exec (fty::alist-with-carsp x '(val priority rule))) (b* ((?val (cdr (std::da-nth 0 x))) (priority (cdr (std::da-nth 1 x))) (rule (cdr (std::da-nth 2 x)))) (and (natp priority) (symbolp rule))))))
Theorem:
(defthm consp-when-cgraph-value-p (implies (cgraph-value-p x) (consp x)) :rule-classes :compound-recognizer)