Fixing function for atj-maybe-function-type-info structures.
(atj-maybe-function-type-info-fix x) → new-x
Function:
(defun atj-maybe-function-type-info-fix$inline (x) (declare (xargs :guard (atj-maybe-function-type-info-p x))) (let ((__function__ 'atj-maybe-function-type-info-fix)) (declare (ignorable __function__)) (mbe :logic (cond ((not x) nil) (t (b* ((fty::val (atj-function-type-info-fix x))) fty::val))) :exec x)))
Theorem:
(defthm atj-maybe-function-type-info-p-of-atj-maybe-function-type-info-fix (b* ((new-x (atj-maybe-function-type-info-fix$inline x))) (atj-maybe-function-type-info-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm atj-maybe-function-type-info-fix-when-atj-maybe-function-type-info-p (implies (atj-maybe-function-type-info-p x) (equal (atj-maybe-function-type-info-fix x) x)))
Function:
(defun atj-maybe-function-type-info-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (atj-maybe-function-type-info-p acl2::x) (atj-maybe-function-type-info-p acl2::y)))) (equal (atj-maybe-function-type-info-fix acl2::x) (atj-maybe-function-type-info-fix acl2::y)))
Theorem:
(defthm atj-maybe-function-type-info-equiv-is-an-equivalence (and (booleanp (atj-maybe-function-type-info-equiv x y)) (atj-maybe-function-type-info-equiv x x) (implies (atj-maybe-function-type-info-equiv x y) (atj-maybe-function-type-info-equiv y x)) (implies (and (atj-maybe-function-type-info-equiv x y) (atj-maybe-function-type-info-equiv y z)) (atj-maybe-function-type-info-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm atj-maybe-function-type-info-equiv-implies-equal-atj-maybe-function-type-info-fix-1 (implies (atj-maybe-function-type-info-equiv acl2::x x-equiv) (equal (atj-maybe-function-type-info-fix acl2::x) (atj-maybe-function-type-info-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm atj-maybe-function-type-info-fix-under-atj-maybe-function-type-info-equiv (atj-maybe-function-type-info-equiv (atj-maybe-function-type-info-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-atj-maybe-function-type-info-fix-1-forward-to-atj-maybe-function-type-info-equiv (implies (equal (atj-maybe-function-type-info-fix acl2::x) acl2::y) (atj-maybe-function-type-info-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-atj-maybe-function-type-info-fix-2-forward-to-atj-maybe-function-type-info-equiv (implies (equal acl2::x (atj-maybe-function-type-info-fix acl2::y)) (atj-maybe-function-type-info-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm atj-maybe-function-type-info-equiv-of-atj-maybe-function-type-info-fix-1-forward (implies (atj-maybe-function-type-info-equiv (atj-maybe-function-type-info-fix acl2::x) acl2::y) (atj-maybe-function-type-info-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm atj-maybe-function-type-info-equiv-of-atj-maybe-function-type-info-fix-2-forward (implies (atj-maybe-function-type-info-equiv acl2::x (atj-maybe-function-type-info-fix acl2::y)) (atj-maybe-function-type-info-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)