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