(vl-atomguts-fix x) is a ACL2::fty fixing function.
(vl-atomguts-fix x) → fty::newx
Note that in the execution this is just an inline identity function.
Function:
(defun vl-atomguts-fix$inline (x) (declare (xargs :guard (vl-atomguts-p x))) (let ((__function__ 'vl-atomguts-fix)) (declare (ignorable __function__)) (mbe :logic (common-lisp::case (tag x) ((:vl-constint) (vl-constint-fix x)) ((:vl-weirdint) (vl-weirdint-fix x)) ((:vl-extint) (vl-extint-fix x)) ((:vl-string) (vl-string-fix x)) ((:vl-real) (vl-real-fix x)) ((:vl-id) (vl-id-fix x)) ((:vl-hidpiece) (vl-hidpiece-fix x)) ((:vl-funname) (vl-funname-fix x)) ((:vl-sysfunname) (vl-sysfunname-fix x)) ((:vl-typename) (vl-typename-fix x)) ((:vl-keyguts) (vl-keyguts-fix x)) ((:vl-time) (vl-time-fix x)) ((:vl-basictype) (vl-basictype-fix x)) (otherwise (vl-tagname-fix x))) :exec x)))
Theorem:
(defthm vl-atomguts-p-of-vl-atomguts-fix (b* ((fty::newx (vl-atomguts-fix$inline x))) (vl-atomguts-p fty::newx)) :rule-classes :rewrite)
Theorem:
(defthm vl-atomguts-fix-when-vl-atomguts-p (implies (vl-atomguts-p x) (equal (vl-atomguts-fix x) x)))
Function:
(defun vl-atomguts-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (vl-atomguts-p acl2::x) (vl-atomguts-p acl2::y)))) (equal (vl-atomguts-fix acl2::x) (vl-atomguts-fix acl2::y)))
Theorem:
(defthm vl-atomguts-equiv-is-an-equivalence (and (booleanp (vl-atomguts-equiv x y)) (vl-atomguts-equiv x x) (implies (vl-atomguts-equiv x y) (vl-atomguts-equiv y x)) (implies (and (vl-atomguts-equiv x y) (vl-atomguts-equiv y z)) (vl-atomguts-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm vl-atomguts-equiv-implies-equal-vl-atomguts-fix-1 (implies (vl-atomguts-equiv acl2::x x-equiv) (equal (vl-atomguts-fix acl2::x) (vl-atomguts-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm vl-atomguts-fix-under-vl-atomguts-equiv (vl-atomguts-equiv (vl-atomguts-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-vl-atomguts-fix-1-forward-to-vl-atomguts-equiv (implies (equal (vl-atomguts-fix acl2::x) acl2::y) (vl-atomguts-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-vl-atomguts-fix-2-forward-to-vl-atomguts-equiv (implies (equal acl2::x (vl-atomguts-fix acl2::y)) (vl-atomguts-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm vl-atomguts-equiv-of-vl-atomguts-fix-1-forward (implies (vl-atomguts-equiv (vl-atomguts-fix acl2::x) acl2::y) (vl-atomguts-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm vl-atomguts-equiv-of-vl-atomguts-fix-2-forward (implies (vl-atomguts-equiv acl2::x (vl-atomguts-fix acl2::y)) (vl-atomguts-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm tag-of-vl-atomguts-fix-forward (or (equal (tag (vl-atomguts-fix x)) :vl-constint) (equal (tag (vl-atomguts-fix x)) :vl-weirdint) (equal (tag (vl-atomguts-fix x)) :vl-extint) (equal (tag (vl-atomguts-fix x)) :vl-string) (equal (tag (vl-atomguts-fix x)) :vl-real) (equal (tag (vl-atomguts-fix x)) :vl-id) (equal (tag (vl-atomguts-fix x)) :vl-hidpiece) (equal (tag (vl-atomguts-fix x)) :vl-funname) (equal (tag (vl-atomguts-fix x)) :vl-sysfunname) (equal (tag (vl-atomguts-fix x)) :vl-typename) (equal (tag (vl-atomguts-fix x)) :vl-keyguts) (equal (tag (vl-atomguts-fix x)) :vl-time) (equal (tag (vl-atomguts-fix x)) :vl-basictype) (equal (tag (vl-atomguts-fix x)) :vl-tagname)) :rule-classes ((:forward-chaining :trigger-terms ((tag (vl-atomguts-fix x))))))