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