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