Get the match field from a ctrex-rule.
(ctrex-rule->match x) → match
This is an ordinary field accessor created by defprod.
Function:
(defun ctrex-rule->match$inline (x) (declare (xargs :guard (ctrex-rule-p x))) (declare (xargs :guard t)) (let ((__function__ 'ctrex-rule->match)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (pseudo-term-subst-fix (std::prod-cdr (std::prod-cdr (std::prod-car x))))) :exec (std::prod-cdr (std::prod-cdr (std::prod-car x))))))
Theorem:
(defthm pseudo-term-subst-p-of-ctrex-rule->match (b* ((match (ctrex-rule->match$inline x))) (pseudo-term-subst-p match)) :rule-classes :rewrite)
Theorem:
(defthm ctrex-rule->match$inline-of-ctrex-rule-fix-x (equal (ctrex-rule->match$inline (ctrex-rule-fix x)) (ctrex-rule->match$inline x)))
Theorem:
(defthm ctrex-rule->match$inline-ctrex-rule-equiv-congruence-on-x (implies (ctrex-rule-equiv x x-equiv) (equal (ctrex-rule->match$inline x) (ctrex-rule->match$inline x-equiv))) :rule-classes :congruence)