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