Fixing function for vl-operandinfo structures.
(vl-operandinfo-fix x) → new-x
Function:
(defun vl-operandinfo-fix$inline (x) (declare (xargs :guard (vl-operandinfo-p x))) (let ((__function__ 'vl-operandinfo-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((orig-expr (vl-expr-fix (std::prod-car (std::prod-car (std::prod-car x))))) (context (vl-scopecontext-fix (std::prod-cdr (std::prod-car (std::prod-car x))))) (prefixname (vl-scopeexpr-fix (std::prod-car (std::prod-cdr (std::prod-car x))))) (declname (str-fix (std::prod-cdr (std::prod-cdr (std::prod-car x))))) (hidtrace (vl-hidtrace-fix (std::prod-car (std::prod-car (std::prod-cdr x))))) (hidtype (vl-datatype-fix (std::prod-cdr (std::prod-car (std::prod-cdr x))))) (seltrace (vl-seltrace-fix (std::prod-car (std::prod-cdr (std::prod-cdr x))))) (part (vl-partselect-fix (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-cdr x)))))) (type (vl-datatype-fix (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-cdr x))))))) (std::prod-cons (std::prod-cons (std::prod-cons orig-expr context) (std::prod-cons prefixname declname)) (std::prod-cons (std::prod-cons hidtrace hidtype) (std::prod-cons seltrace (std::prod-cons part type))))) :exec x)))
Theorem:
(defthm vl-operandinfo-p-of-vl-operandinfo-fix (b* ((new-x (vl-operandinfo-fix$inline x))) (vl-operandinfo-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-operandinfo-fix-when-vl-operandinfo-p (implies (vl-operandinfo-p x) (equal (vl-operandinfo-fix x) x)))
Function:
(defun vl-operandinfo-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (vl-operandinfo-p acl2::x) (vl-operandinfo-p acl2::y)))) (equal (vl-operandinfo-fix acl2::x) (vl-operandinfo-fix acl2::y)))
Theorem:
(defthm vl-operandinfo-equiv-is-an-equivalence (and (booleanp (vl-operandinfo-equiv x y)) (vl-operandinfo-equiv x x) (implies (vl-operandinfo-equiv x y) (vl-operandinfo-equiv y x)) (implies (and (vl-operandinfo-equiv x y) (vl-operandinfo-equiv y z)) (vl-operandinfo-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm vl-operandinfo-equiv-implies-equal-vl-operandinfo-fix-1 (implies (vl-operandinfo-equiv acl2::x x-equiv) (equal (vl-operandinfo-fix acl2::x) (vl-operandinfo-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm vl-operandinfo-fix-under-vl-operandinfo-equiv (vl-operandinfo-equiv (vl-operandinfo-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-vl-operandinfo-fix-1-forward-to-vl-operandinfo-equiv (implies (equal (vl-operandinfo-fix acl2::x) acl2::y) (vl-operandinfo-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-vl-operandinfo-fix-2-forward-to-vl-operandinfo-equiv (implies (equal acl2::x (vl-operandinfo-fix acl2::y)) (vl-operandinfo-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm vl-operandinfo-equiv-of-vl-operandinfo-fix-1-forward (implies (vl-operandinfo-equiv (vl-operandinfo-fix acl2::x) acl2::y) (vl-operandinfo-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm vl-operandinfo-equiv-of-vl-operandinfo-fix-2-forward (implies (vl-operandinfo-equiv acl2::x (vl-operandinfo-fix acl2::y)) (vl-operandinfo-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)