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