(binding-fix x) is a usual ACL2::fty omap fixing function.
(binding-fix x) → *
Function:
(defun binding-fix (x) (declare (xargs :guard (bindingp x))) (mbe :logic (if (bindingp x) x nil) :exec x))
Theorem:
(defthm bindingp-of-binding-fix (bindingp (binding-fix x)))
Theorem:
(defthm binding-fix-when-bindingp (implies (bindingp x) (equal (binding-fix x) x)))
Theorem:
(defthm emptyp-binding-fix (implies (or (omap::emptyp x) (not (bindingp x))) (omap::emptyp (binding-fix x))))
Theorem:
(defthm emptyp-of-binding-fix-to-not-binding-or-emptyp (equal (omap::emptyp (binding-fix x)) (or (not (bindingp x)) (omap::emptyp x))))
Function:
(defun binding-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (bindingp acl2::x) (bindingp acl2::y)))) (equal (binding-fix acl2::x) (binding-fix acl2::y)))
Theorem:
(defthm binding-equiv-is-an-equivalence (and (booleanp (binding-equiv x y)) (binding-equiv x x) (implies (binding-equiv x y) (binding-equiv y x)) (implies (and (binding-equiv x y) (binding-equiv y z)) (binding-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm binding-equiv-implies-equal-binding-fix-1 (implies (binding-equiv acl2::x x-equiv) (equal (binding-fix acl2::x) (binding-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm binding-fix-under-binding-equiv (binding-equiv (binding-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-binding-fix-1-forward-to-binding-equiv (implies (equal (binding-fix acl2::x) acl2::y) (binding-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-binding-fix-2-forward-to-binding-equiv (implies (equal acl2::x (binding-fix acl2::y)) (binding-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm binding-equiv-of-binding-fix-1-forward (implies (binding-equiv (binding-fix acl2::x) acl2::y) (binding-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm binding-equiv-of-binding-fix-2-forward (implies (binding-equiv acl2::x (binding-fix acl2::y)) (binding-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)