Fixing function for svtv-line structures.
(svtv-line-fix x) → new-x
Function:
(defun svtv-line-fix$inline (x) (declare (xargs :guard (svtv-line-p x))) (let ((__function__ 'svtv-line-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((lhs (lhs-fix (std::prod-car x))) (entries (svtv-entrylist-fix (std::prod-cdr x)))) (std::prod-cons lhs entries)) :exec x)))
Theorem:
(defthm svtv-line-p-of-svtv-line-fix (b* ((new-x (svtv-line-fix$inline x))) (svtv-line-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm svtv-line-fix-when-svtv-line-p (implies (svtv-line-p x) (equal (svtv-line-fix x) x)))
Function:
(defun svtv-line-equiv$inline (x y) (declare (xargs :guard (and (svtv-line-p x) (svtv-line-p y)))) (equal (svtv-line-fix x) (svtv-line-fix y)))
Theorem:
(defthm svtv-line-equiv-is-an-equivalence (and (booleanp (svtv-line-equiv x y)) (svtv-line-equiv x x) (implies (svtv-line-equiv x y) (svtv-line-equiv y x)) (implies (and (svtv-line-equiv x y) (svtv-line-equiv y z)) (svtv-line-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm svtv-line-equiv-implies-equal-svtv-line-fix-1 (implies (svtv-line-equiv x x-equiv) (equal (svtv-line-fix x) (svtv-line-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm svtv-line-fix-under-svtv-line-equiv (svtv-line-equiv (svtv-line-fix x) x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-svtv-line-fix-1-forward-to-svtv-line-equiv (implies (equal (svtv-line-fix x) y) (svtv-line-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-svtv-line-fix-2-forward-to-svtv-line-equiv (implies (equal x (svtv-line-fix y)) (svtv-line-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm svtv-line-equiv-of-svtv-line-fix-1-forward (implies (svtv-line-equiv (svtv-line-fix x) y) (svtv-line-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm svtv-line-equiv-of-svtv-line-fix-2-forward (implies (svtv-line-equiv x (svtv-line-fix y)) (svtv-line-equiv x y)) :rule-classes :forward-chaining)