Recognizer for rw-pair structures.
(rw-pair-p x) → *
Function:
(defun rw-pair-p (x) (declare (xargs :guard t)) (let ((__function__ 'rw-pair-p)) (declare (ignorable __function__)) (and (true-listp x) (eql (len x) 2) (b* ((hyps (std::da-nth 0 x)) (concl (std::da-nth 1 x))) (and (pseudo-term-listp hyps) (pseudo-termp concl))))))
Theorem:
(defthm consp-when-rw-pair-p (implies (rw-pair-p x) (consp x)) :rule-classes :compound-recognizer)