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