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