Fixing function for vl-design structures.
(vl-design-fix x) → new-x
Function:
(defun vl-design-fix$inline (x) (declare (xargs :guard (vl-design-p x))) (let ((__function__ 'vl-design-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((version (vl-syntaxversion-fix (std::prod-car (std::prod-car (std::prod-car (std::prod-car (cdr x))))))) (mods (vl-modulelist-fix (std::prod-cdr (std::prod-car (std::prod-car (std::prod-car (cdr x))))))) (udps (vl-udplist-fix (std::prod-car (std::prod-cdr (std::prod-car (std::prod-car (cdr x))))))) (interfaces (vl-interfacelist-fix (std::prod-cdr (std::prod-cdr (std::prod-car (std::prod-car (cdr x))))))) (programs (vl-programlist-fix (std::prod-car (std::prod-car (std::prod-cdr (std::prod-car (cdr x))))))) (packages (vl-packagelist-fix (std::prod-cdr (std::prod-car (std::prod-cdr (std::prod-car (cdr x))))))) (configs (vl-configlist-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))))))) (taskdecls (vl-taskdecllist-fix (std::prod-car (std::prod-car (std::prod-car (std::prod-cdr (cdr x))))))) (fundecls (vl-fundecllist-fix (std::prod-cdr (std::prod-car (std::prod-car (std::prod-cdr (cdr x))))))) (paramdecls (vl-paramdecllist-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))))))) (fwdtypes (vl-fwdtypedeflist-fix (std::prod-car (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x))))))) (typedefs (vl-typedeflist-fix (std::prod-cdr (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x))))))) (warnings (vl-warninglist-fix (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x))))))) (comments (vl-commentmap-fix (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x)))))))) (cons :vl-design (std::prod-cons (std::prod-cons (std::prod-cons (std::prod-cons version mods) (std::prod-cons udps interfaces)) (std::prod-cons (std::prod-cons programs packages) (std::prod-cons configs vardecls))) (std::prod-cons (std::prod-cons (std::prod-cons taskdecls fundecls) (std::prod-cons paramdecls imports)) (std::prod-cons (std::prod-cons fwdtypes typedefs) (std::prod-cons warnings comments)))))) :exec x)))
Theorem:
(defthm vl-design-p-of-vl-design-fix (b* ((new-x (vl-design-fix$inline x))) (vl-design-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-design-fix-when-vl-design-p (implies (vl-design-p x) (equal (vl-design-fix x) x)))
Function:
(defun vl-design-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (vl-design-p acl2::x) (vl-design-p acl2::y)))) (equal (vl-design-fix acl2::x) (vl-design-fix acl2::y)))
Theorem:
(defthm vl-design-equiv-is-an-equivalence (and (booleanp (vl-design-equiv x y)) (vl-design-equiv x x) (implies (vl-design-equiv x y) (vl-design-equiv y x)) (implies (and (vl-design-equiv x y) (vl-design-equiv y z)) (vl-design-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm vl-design-equiv-implies-equal-vl-design-fix-1 (implies (vl-design-equiv acl2::x x-equiv) (equal (vl-design-fix acl2::x) (vl-design-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm vl-design-fix-under-vl-design-equiv (vl-design-equiv (vl-design-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-vl-design-fix-1-forward-to-vl-design-equiv (implies (equal (vl-design-fix acl2::x) acl2::y) (vl-design-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-vl-design-fix-2-forward-to-vl-design-equiv (implies (equal acl2::x (vl-design-fix acl2::y)) (vl-design-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm vl-design-equiv-of-vl-design-fix-1-forward (implies (vl-design-equiv (vl-design-fix acl2::x) acl2::y) (vl-design-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm vl-design-equiv-of-vl-design-fix-2-forward (implies (vl-design-equiv acl2::x (vl-design-fix acl2::y)) (vl-design-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)