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