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