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