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