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