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