Fixing function for transunit-info structures.
(transunit-info-fix x) → new-x
Function:
(defun transunit-info-fix$inline (x) (declare (xargs :guard (transunit-infop x))) (let ((__function__ 'transunit-info-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((table (valid-table-fix (cdr (std::da-nth 0 x))) )) (list (cons 'table table))) :exec x)))
Theorem:
(defthm transunit-infop-of-transunit-info-fix (b* ((new-x (transunit-info-fix$inline x))) (transunit-infop new-x)) :rule-classes :rewrite)
Theorem:
(defthm transunit-info-fix-when-transunit-infop (implies (transunit-infop x) (equal (transunit-info-fix x) x)))
Function:
(defun transunit-info-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (transunit-infop acl2::x) (transunit-infop acl2::y)))) (equal (transunit-info-fix acl2::x) (transunit-info-fix acl2::y)))
Theorem:
(defthm transunit-info-equiv-is-an-equivalence (and (booleanp (transunit-info-equiv x y)) (transunit-info-equiv x x) (implies (transunit-info-equiv x y) (transunit-info-equiv y x)) (implies (and (transunit-info-equiv x y) (transunit-info-equiv y z)) (transunit-info-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm transunit-info-equiv-implies-equal-transunit-info-fix-1 (implies (transunit-info-equiv acl2::x x-equiv) (equal (transunit-info-fix acl2::x) (transunit-info-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm transunit-info-fix-under-transunit-info-equiv (transunit-info-equiv (transunit-info-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-transunit-info-fix-1-forward-to-transunit-info-equiv (implies (equal (transunit-info-fix acl2::x) acl2::y) (transunit-info-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-transunit-info-fix-2-forward-to-transunit-info-equiv (implies (equal acl2::x (transunit-info-fix acl2::y)) (transunit-info-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm transunit-info-equiv-of-transunit-info-fix-1-forward (implies (transunit-info-equiv (transunit-info-fix acl2::x) acl2::y) (transunit-info-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm transunit-info-equiv-of-transunit-info-fix-2-forward (implies (transunit-info-equiv acl2::x (transunit-info-fix acl2::y)) (transunit-info-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)