(vl-scopedef-fix x) is a ACL2::fty fixing function.
(vl-scopedef-fix x) → fty::newx
Note that in the execution this is just an inline identity function.
Function:
(defun vl-scopedef-fix$inline (x) (declare (xargs :guard (vl-scopedef-p x))) (let ((__function__ 'vl-scopedef-fix)) (declare (ignorable __function__)) (mbe :logic (common-lisp::case (tag x) ((:vl-module) (vl-module-fix x)) ((:vl-udp) (vl-udp-fix x)) ((:vl-interface) (vl-interface-fix x)) (otherwise (vl-program-fix x))) :exec x)))
Theorem:
(defthm vl-scopedef-p-of-vl-scopedef-fix (b* ((fty::newx (vl-scopedef-fix$inline x))) (vl-scopedef-p fty::newx)) :rule-classes :rewrite)
Theorem:
(defthm vl-scopedef-fix-when-vl-scopedef-p (implies (vl-scopedef-p x) (equal (vl-scopedef-fix x) x)))
Function:
(defun vl-scopedef-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (vl-scopedef-p acl2::x) (vl-scopedef-p acl2::y)))) (equal (vl-scopedef-fix acl2::x) (vl-scopedef-fix acl2::y)))
Theorem:
(defthm vl-scopedef-equiv-is-an-equivalence (and (booleanp (vl-scopedef-equiv x y)) (vl-scopedef-equiv x x) (implies (vl-scopedef-equiv x y) (vl-scopedef-equiv y x)) (implies (and (vl-scopedef-equiv x y) (vl-scopedef-equiv y z)) (vl-scopedef-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm vl-scopedef-equiv-implies-equal-vl-scopedef-fix-1 (implies (vl-scopedef-equiv acl2::x x-equiv) (equal (vl-scopedef-fix acl2::x) (vl-scopedef-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm vl-scopedef-fix-under-vl-scopedef-equiv (vl-scopedef-equiv (vl-scopedef-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-vl-scopedef-fix-1-forward-to-vl-scopedef-equiv (implies (equal (vl-scopedef-fix acl2::x) acl2::y) (vl-scopedef-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-vl-scopedef-fix-2-forward-to-vl-scopedef-equiv (implies (equal acl2::x (vl-scopedef-fix acl2::y)) (vl-scopedef-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm vl-scopedef-equiv-of-vl-scopedef-fix-1-forward (implies (vl-scopedef-equiv (vl-scopedef-fix acl2::x) acl2::y) (vl-scopedef-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm vl-scopedef-equiv-of-vl-scopedef-fix-2-forward (implies (vl-scopedef-equiv acl2::x (vl-scopedef-fix acl2::y)) (vl-scopedef-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm tag-of-vl-scopedef-fix-forward (or (equal (tag (vl-scopedef-fix x)) :vl-module) (equal (tag (vl-scopedef-fix x)) :vl-udp) (equal (tag (vl-scopedef-fix x)) :vl-interface) (equal (tag (vl-scopedef-fix x)) :vl-program)) :rule-classes ((:forward-chaining :trigger-terms ((tag (vl-scopedef-fix x))))))