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