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