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