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