(maybe-svar-fix x) → xx
Function:
(defun maybe-svar-fix$inline (x) (declare (xargs :guard (maybe-svar-p x))) (let ((__function__ 'maybe-svar-fix)) (declare (ignorable __function__)) (mbe :logic (and x (svar-fix x)) :exec x)))
Theorem:
(defthm maybe-svar-p-of-maybe-svar-fix (b* ((xx (maybe-svar-fix$inline x))) (maybe-svar-p xx)) :rule-classes :rewrite)
Theorem:
(defthm maybe-svar-fix-when-maybe-svar-p (implies (maybe-svar-p x) (equal (maybe-svar-fix x) x)))
Function:
(defun maybe-svar-equiv$inline (x y) (declare (xargs :guard (and (maybe-svar-p x) (maybe-svar-p y)))) (equal (maybe-svar-fix x) (maybe-svar-fix y)))
Theorem:
(defthm maybe-svar-equiv-is-an-equivalence (and (booleanp (maybe-svar-equiv x y)) (maybe-svar-equiv x x) (implies (maybe-svar-equiv x y) (maybe-svar-equiv y x)) (implies (and (maybe-svar-equiv x y) (maybe-svar-equiv y z)) (maybe-svar-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm maybe-svar-equiv-implies-equal-maybe-svar-fix-1 (implies (maybe-svar-equiv x x-equiv) (equal (maybe-svar-fix x) (maybe-svar-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm maybe-svar-fix-under-maybe-svar-equiv (maybe-svar-equiv (maybe-svar-fix x) x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-maybe-svar-fix-1-forward-to-maybe-svar-equiv (implies (equal (maybe-svar-fix x) y) (maybe-svar-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-maybe-svar-fix-2-forward-to-maybe-svar-equiv (implies (equal x (maybe-svar-fix y)) (maybe-svar-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm maybe-svar-equiv-of-maybe-svar-fix-1-forward (implies (maybe-svar-equiv (maybe-svar-fix x) y) (maybe-svar-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm maybe-svar-equiv-of-maybe-svar-fix-2-forward (implies (maybe-svar-equiv x (maybe-svar-fix y)) (maybe-svar-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm maybe-svar-equiv-refines-svar-equiv (implies (maybe-svar-equiv x y) (svar-equiv x y)) :rule-classes (:refinement))
Theorem:
(defthm svar-p-of-maybe-svar-fix (implies (maybe-svar-fix x) (svar-p (maybe-svar-fix x))))