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