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