Fixing function for tyname-info structures.
(tyname-info-fix x) → new-x
Function:
(defun tyname-info-fix$inline (x) (declare (xargs :guard (tyname-infop x))) (mbe :logic (b* ((type (type-fix (cdr (std::da-nth 0 x))))) (list (cons 'type type))) :exec x))
Theorem:
(defthm tyname-infop-of-tyname-info-fix (b* ((new-x (tyname-info-fix$inline x))) (tyname-infop new-x)) :rule-classes :rewrite)
Theorem:
(defthm tyname-info-fix-when-tyname-infop (implies (tyname-infop x) (equal (tyname-info-fix x) x)))
Function:
(defun tyname-info-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (tyname-infop acl2::x) (tyname-infop acl2::y)))) (equal (tyname-info-fix acl2::x) (tyname-info-fix acl2::y)))
Theorem:
(defthm tyname-info-equiv-is-an-equivalence (and (booleanp (tyname-info-equiv x y)) (tyname-info-equiv x x) (implies (tyname-info-equiv x y) (tyname-info-equiv y x)) (implies (and (tyname-info-equiv x y) (tyname-info-equiv y z)) (tyname-info-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm tyname-info-equiv-implies-equal-tyname-info-fix-1 (implies (tyname-info-equiv acl2::x x-equiv) (equal (tyname-info-fix acl2::x) (tyname-info-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm tyname-info-fix-under-tyname-info-equiv (tyname-info-equiv (tyname-info-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-tyname-info-fix-1-forward-to-tyname-info-equiv (implies (equal (tyname-info-fix acl2::x) acl2::y) (tyname-info-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-tyname-info-fix-2-forward-to-tyname-info-equiv (implies (equal acl2::x (tyname-info-fix acl2::y)) (tyname-info-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm tyname-info-equiv-of-tyname-info-fix-1-forward (implies (tyname-info-equiv (tyname-info-fix acl2::x) acl2::y) (tyname-info-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm tyname-info-equiv-of-tyname-info-fix-2-forward (implies (tyname-info-equiv acl2::x (tyname-info-fix acl2::y)) (tyname-info-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm tyname-info-fix$inline-of-tyname-info-fix-x (equal (tyname-info-fix$inline (tyname-info-fix x)) (tyname-info-fix$inline x)))
Theorem:
(defthm tyname-info-fix$inline-tyname-info-equiv-congruence-on-x (implies (tyname-info-equiv x x-equiv) (equal (tyname-info-fix$inline x) (tyname-info-fix$inline x-equiv))) :rule-classes :congruence)