Basic equivalence relation for variable-context structures.
Function:
(defun variable-context-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (variable-contextp acl2::x) (variable-contextp acl2::y)))) (equal (variable-context-fix acl2::x) (variable-context-fix acl2::y)))
Theorem:
(defthm variable-context-equiv-is-an-equivalence (and (booleanp (variable-context-equiv x y)) (variable-context-equiv x x) (implies (variable-context-equiv x y) (variable-context-equiv y x)) (implies (and (variable-context-equiv x y) (variable-context-equiv y z)) (variable-context-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm variable-context-equiv-implies-equal-variable-context-fix-1 (implies (variable-context-equiv acl2::x x-equiv) (equal (variable-context-fix acl2::x) (variable-context-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm variable-context-fix-under-variable-context-equiv (variable-context-equiv (variable-context-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-variable-context-fix-1-forward-to-variable-context-equiv (implies (equal (variable-context-fix acl2::x) acl2::y) (variable-context-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-variable-context-fix-2-forward-to-variable-context-equiv (implies (equal acl2::x (variable-context-fix acl2::y)) (variable-context-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm variable-context-equiv-of-variable-context-fix-1-forward (implies (variable-context-equiv (variable-context-fix acl2::x) acl2::y) (variable-context-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm variable-context-equiv-of-variable-context-fix-2-forward (implies (variable-context-equiv acl2::x (variable-context-fix acl2::y)) (variable-context-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)