Fixing function for vl-taskdecl structures.
(vl-taskdecl-fix x) → new-x
Function:
(defun vl-taskdecl-fix$inline (x) (declare (xargs :guard (vl-taskdecl-p x))) (let ((__function__ 'vl-taskdecl-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((name (str-fix (std::prod-car (std::prod-car (std::prod-car (cdr x)))))) (body (vl-stmt-fix (std::prod-cdr (std::prod-car (std::prod-car (cdr x)))))) (loc (vl-location-fix (std::prod-car (std::prod-cdr (std::prod-car (cdr x)))))) (portdecls (vl-portdecllist-fix (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x))))))) (vardecls (vl-vardecllist-fix (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x))))))) (paramdecls (vl-paramdecllist-fix (std::prod-car (std::prod-car (std::prod-cdr (cdr x)))))) (typedefs (vl-typedeflist-fix (std::prod-car (std::prod-cdr (std::prod-car (std::prod-cdr (cdr x))))))) (imports (vl-importlist-fix (std::prod-cdr (std::prod-cdr (std::prod-car (std::prod-cdr (cdr x))))))) (atts (vl-atts-fix (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x)))))) (lifetime (vl-lifetime-fix (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x))))))) (loaditems (vl-portdecl-or-blockitem-list-fix (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x)))))))) (cons :vl-taskdecl (std::prod-cons (std::prod-cons (std::prod-cons name body) (std::prod-cons loc (std::prod-cons portdecls vardecls))) (std::prod-cons (std::prod-cons paramdecls (std::prod-cons typedefs imports)) (std::prod-cons atts (std::prod-cons lifetime loaditems)))))) :exec x)))
Theorem:
(defthm vl-taskdecl-p-of-vl-taskdecl-fix (b* ((new-x (vl-taskdecl-fix$inline x))) (vl-taskdecl-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-taskdecl-fix-when-vl-taskdecl-p (implies (vl-taskdecl-p x) (equal (vl-taskdecl-fix x) x)))
Function:
(defun vl-taskdecl-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (vl-taskdecl-p acl2::x) (vl-taskdecl-p acl2::y)))) (equal (vl-taskdecl-fix acl2::x) (vl-taskdecl-fix acl2::y)))
Theorem:
(defthm vl-taskdecl-equiv-is-an-equivalence (and (booleanp (vl-taskdecl-equiv x y)) (vl-taskdecl-equiv x x) (implies (vl-taskdecl-equiv x y) (vl-taskdecl-equiv y x)) (implies (and (vl-taskdecl-equiv x y) (vl-taskdecl-equiv y z)) (vl-taskdecl-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm vl-taskdecl-equiv-implies-equal-vl-taskdecl-fix-1 (implies (vl-taskdecl-equiv acl2::x x-equiv) (equal (vl-taskdecl-fix acl2::x) (vl-taskdecl-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm vl-taskdecl-fix-under-vl-taskdecl-equiv (vl-taskdecl-equiv (vl-taskdecl-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-vl-taskdecl-fix-1-forward-to-vl-taskdecl-equiv (implies (equal (vl-taskdecl-fix acl2::x) acl2::y) (vl-taskdecl-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-vl-taskdecl-fix-2-forward-to-vl-taskdecl-equiv (implies (equal acl2::x (vl-taskdecl-fix acl2::y)) (vl-taskdecl-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm vl-taskdecl-equiv-of-vl-taskdecl-fix-1-forward (implies (vl-taskdecl-equiv (vl-taskdecl-fix acl2::x) acl2::y) (vl-taskdecl-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm vl-taskdecl-equiv-of-vl-taskdecl-fix-2-forward (implies (vl-taskdecl-equiv acl2::x (vl-taskdecl-fix acl2::y)) (vl-taskdecl-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)