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