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