Fixing function for svtv-condoverride structures.
(svtv-condoverride-fix x) → new-x
Function:
(defun svtv-condoverride-fix$inline (x) (declare (xargs :guard (svtv-condoverride-p x))) (let ((__function__ 'svtv-condoverride-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((value (svtv-baseentry-fix (std::da-nth 0 x))) (test (svtv-baseentry-fix (std::da-nth 1 x)))) (list value test)) :exec x)))
Theorem:
(defthm svtv-condoverride-p-of-svtv-condoverride-fix (b* ((new-x (svtv-condoverride-fix$inline x))) (svtv-condoverride-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm svtv-condoverride-fix-when-svtv-condoverride-p (implies (svtv-condoverride-p x) (equal (svtv-condoverride-fix x) x)))
Function:
(defun svtv-condoverride-equiv$inline (x y) (declare (xargs :guard (and (svtv-condoverride-p x) (svtv-condoverride-p y)))) (equal (svtv-condoverride-fix x) (svtv-condoverride-fix y)))
Theorem:
(defthm svtv-condoverride-equiv-is-an-equivalence (and (booleanp (svtv-condoverride-equiv x y)) (svtv-condoverride-equiv x x) (implies (svtv-condoverride-equiv x y) (svtv-condoverride-equiv y x)) (implies (and (svtv-condoverride-equiv x y) (svtv-condoverride-equiv y z)) (svtv-condoverride-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm svtv-condoverride-equiv-implies-equal-svtv-condoverride-fix-1 (implies (svtv-condoverride-equiv x x-equiv) (equal (svtv-condoverride-fix x) (svtv-condoverride-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm svtv-condoverride-fix-under-svtv-condoverride-equiv (svtv-condoverride-equiv (svtv-condoverride-fix x) x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-svtv-condoverride-fix-1-forward-to-svtv-condoverride-equiv (implies (equal (svtv-condoverride-fix x) y) (svtv-condoverride-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-svtv-condoverride-fix-2-forward-to-svtv-condoverride-equiv (implies (equal x (svtv-condoverride-fix y)) (svtv-condoverride-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm svtv-condoverride-equiv-of-svtv-condoverride-fix-1-forward (implies (svtv-condoverride-equiv (svtv-condoverride-fix x) y) (svtv-condoverride-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm svtv-condoverride-equiv-of-svtv-condoverride-fix-2-forward (implies (svtv-condoverride-equiv x (svtv-condoverride-fix y)) (svtv-condoverride-equiv x y)) :rule-classes :forward-chaining)