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