Fixing function for vl-arguments structures.
(vl-arguments-fix x) → new-x
Function:
(defun vl-arguments-fix$inline (x) (declare (xargs :guard (vl-arguments-p x))) (let ((__function__ 'vl-arguments-fix)) (declare (ignorable __function__)) (mbe :logic (common-lisp::case (vl-arguments-kind x) (:vl-arguments-plain (b* ((args (vl-plainarglist-fix (std::da-nth 0 (cdr x))))) (cons :vl-arguments-plain (list args)))) (:vl-arguments-named (b* ((args (vl-namedarglist-fix (std::da-nth 0 (cdr x)))) (starp (acl2::bool-fix (std::da-nth 1 (cdr x))))) (cons :vl-arguments-named (list args starp))))) :exec x)))
Theorem:
(defthm vl-arguments-p-of-vl-arguments-fix (b* ((new-x (vl-arguments-fix$inline x))) (vl-arguments-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-arguments-fix-when-vl-arguments-p (implies (vl-arguments-p x) (equal (vl-arguments-fix x) x)))
Function:
(defun vl-arguments-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (vl-arguments-p acl2::x) (vl-arguments-p acl2::y)))) (equal (vl-arguments-fix acl2::x) (vl-arguments-fix acl2::y)))
Theorem:
(defthm vl-arguments-equiv-is-an-equivalence (and (booleanp (vl-arguments-equiv x y)) (vl-arguments-equiv x x) (implies (vl-arguments-equiv x y) (vl-arguments-equiv y x)) (implies (and (vl-arguments-equiv x y) (vl-arguments-equiv y z)) (vl-arguments-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm vl-arguments-equiv-implies-equal-vl-arguments-fix-1 (implies (vl-arguments-equiv acl2::x x-equiv) (equal (vl-arguments-fix acl2::x) (vl-arguments-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm vl-arguments-fix-under-vl-arguments-equiv (vl-arguments-equiv (vl-arguments-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-vl-arguments-fix-1-forward-to-vl-arguments-equiv (implies (equal (vl-arguments-fix acl2::x) acl2::y) (vl-arguments-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-vl-arguments-fix-2-forward-to-vl-arguments-equiv (implies (equal acl2::x (vl-arguments-fix acl2::y)) (vl-arguments-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm vl-arguments-equiv-of-vl-arguments-fix-1-forward (implies (vl-arguments-equiv (vl-arguments-fix acl2::x) acl2::y) (vl-arguments-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm vl-arguments-equiv-of-vl-arguments-fix-2-forward (implies (vl-arguments-equiv acl2::x (vl-arguments-fix acl2::y)) (vl-arguments-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm vl-arguments-kind$inline-of-vl-arguments-fix-x (equal (vl-arguments-kind$inline (vl-arguments-fix x)) (vl-arguments-kind$inline x)))
Theorem:
(defthm vl-arguments-kind$inline-vl-arguments-equiv-congruence-on-x (implies (vl-arguments-equiv x x-equiv) (equal (vl-arguments-kind$inline x) (vl-arguments-kind$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm consp-of-vl-arguments-fix (consp (vl-arguments-fix x)) :rule-classes :type-prescription)