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