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