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