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