Basic equivalence relation for fun-info structures.
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)