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