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