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