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