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