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