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