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