Fixing function for renaming-result structures.
(renaming-result-fix acl2::x) → new-x
Function:
(defun renaming-result-fix$inline (acl2::x) (declare (xargs :guard (renaming-resultp acl2::x))) (let ((__function__ 'renaming-result-fix)) (declare (ignorable __function__)) (mbe :logic (case (renaming-result-kind acl2::x) (:ok (b* ((get (renaming-fix acl2::x))) get)) (:err (b* ((get (fty::reserr-fix acl2::x))) get))) :exec acl2::x)))
Theorem:
(defthm renaming-resultp-of-renaming-result-fix (b* ((new-x (renaming-result-fix$inline acl2::x))) (renaming-resultp new-x)) :rule-classes :rewrite)
Theorem:
(defthm renaming-result-fix-when-renaming-resultp (implies (renaming-resultp acl2::x) (equal (renaming-result-fix acl2::x) acl2::x)))
Function:
(defun renaming-result-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (renaming-resultp acl2::x) (renaming-resultp acl2::y)))) (equal (renaming-result-fix acl2::x) (renaming-result-fix acl2::y)))
Theorem:
(defthm renaming-result-equiv-is-an-equivalence (and (booleanp (renaming-result-equiv x y)) (renaming-result-equiv x x) (implies (renaming-result-equiv x y) (renaming-result-equiv y x)) (implies (and (renaming-result-equiv x y) (renaming-result-equiv y z)) (renaming-result-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm renaming-result-equiv-implies-equal-renaming-result-fix-1 (implies (renaming-result-equiv acl2::x x-equiv) (equal (renaming-result-fix acl2::x) (renaming-result-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm renaming-result-fix-under-renaming-result-equiv (renaming-result-equiv (renaming-result-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-renaming-result-fix-1-forward-to-renaming-result-equiv (implies (equal (renaming-result-fix acl2::x) acl2::y) (renaming-result-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-renaming-result-fix-2-forward-to-renaming-result-equiv (implies (equal acl2::x (renaming-result-fix acl2::y)) (renaming-result-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm renaming-result-equiv-of-renaming-result-fix-1-forward (implies (renaming-result-equiv (renaming-result-fix acl2::x) acl2::y) (renaming-result-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm renaming-result-equiv-of-renaming-result-fix-2-forward (implies (renaming-result-equiv acl2::x (renaming-result-fix acl2::y)) (renaming-result-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm renaming-result-kind$inline-of-renaming-result-fix-x (equal (renaming-result-kind$inline (renaming-result-fix acl2::x)) (renaming-result-kind$inline acl2::x)))
Theorem:
(defthm renaming-result-kind$inline-renaming-result-equiv-congruence-on-x (implies (renaming-result-equiv acl2::x x-equiv) (equal (renaming-result-kind$inline acl2::x) (renaming-result-kind$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm consp-of-renaming-result-fix (consp (renaming-result-fix acl2::x)) :rule-classes :type-prescription)