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