(pseudo-term-fix x) → xx
Function:
(defun pseudo-term-fix (x) (declare (xargs :guard (pseudo-termp x))) (let ((__function__ 'pseudo-term-fix)) (declare (ignorable __function__)) (mbe :logic (and (pseudo-termp x) x) :exec x)))
Theorem:
(defthm pseudo-termp-of-pseudo-term-fix (b* ((xx (pseudo-term-fix x))) (pseudo-termp xx)) :rule-classes :rewrite)
Theorem:
(defthm pseudo-term-fix-when-pseudo-termp (implies (pseudo-termp x) (equal (pseudo-term-fix x) x)))
Function:
(defun pseudo-term-equiv$inline (x y) (declare (xargs :guard (and (pseudo-termp x) (pseudo-termp y)))) (equal (pseudo-term-fix x) (pseudo-term-fix y)))
Theorem:
(defthm pseudo-term-equiv-is-an-equivalence (and (booleanp (pseudo-term-equiv x y)) (pseudo-term-equiv x x) (implies (pseudo-term-equiv x y) (pseudo-term-equiv y x)) (implies (and (pseudo-term-equiv x y) (pseudo-term-equiv y z)) (pseudo-term-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm pseudo-term-equiv-implies-equal-pseudo-term-fix-1 (implies (pseudo-term-equiv x x-equiv) (equal (pseudo-term-fix x) (pseudo-term-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm pseudo-term-fix-under-pseudo-term-equiv (pseudo-term-equiv (pseudo-term-fix x) x) :rule-classes (:rewrite :rewrite-quoted-constant))