(maybe-evex-p x) → *
Function:
(defun maybe-evex-p (x) (declare (xargs :guard t)) (let ((__function__ 'maybe-evex-p)) (declare (ignorable __function__)) (or (not x) (evex-p x))))
Function:
(defun maybe-evex-fix (x) (declare (xargs :guard (maybe-evex-p x))) (let ((__function__ 'maybe-evex-fix)) (declare (ignorable __function__)) (mbe :logic (if (maybe-evex-p x) x 'nil) :exec x)))
Function:
(defun maybe-evex-equiv$inline (x y) (declare (xargs :guard (and (maybe-evex-p x) (maybe-evex-p y)))) (equal (maybe-evex-fix x) (maybe-evex-fix y)))
Theorem:
(defthm maybe-evex-equiv-is-an-equivalence (and (booleanp (maybe-evex-equiv x y)) (maybe-evex-equiv x x) (implies (maybe-evex-equiv x y) (maybe-evex-equiv y x)) (implies (and (maybe-evex-equiv x y) (maybe-evex-equiv y z)) (maybe-evex-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm maybe-evex-equiv-implies-equal-maybe-evex-fix-1 (implies (maybe-evex-equiv x x-equiv) (equal (maybe-evex-fix x) (maybe-evex-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm maybe-evex-fix-under-maybe-evex-equiv (maybe-evex-equiv (maybe-evex-fix x) x) :rule-classes (:rewrite :rewrite-quoted-constant))