Basic equivalence relation for fundef-result structures.
Function:
(defun fundef-result-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (fundef-resultp acl2::x) (fundef-resultp acl2::y)))) (equal (fundef-result-fix acl2::x) (fundef-result-fix acl2::y)))
Theorem:
(defthm fundef-result-equiv-is-an-equivalence (and (booleanp (fundef-result-equiv x y)) (fundef-result-equiv x x) (implies (fundef-result-equiv x y) (fundef-result-equiv y x)) (implies (and (fundef-result-equiv x y) (fundef-result-equiv y z)) (fundef-result-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm fundef-result-equiv-implies-equal-fundef-result-fix-1 (implies (fundef-result-equiv acl2::x x-equiv) (equal (fundef-result-fix acl2::x) (fundef-result-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm fundef-result-fix-under-fundef-result-equiv (fundef-result-equiv (fundef-result-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-fundef-result-fix-1-forward-to-fundef-result-equiv (implies (equal (fundef-result-fix acl2::x) acl2::y) (fundef-result-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-fundef-result-fix-2-forward-to-fundef-result-equiv (implies (equal acl2::x (fundef-result-fix acl2::y)) (fundef-result-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm fundef-result-equiv-of-fundef-result-fix-1-forward (implies (fundef-result-equiv (fundef-result-fix acl2::x) acl2::y) (fundef-result-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm fundef-result-equiv-of-fundef-result-fix-2-forward (implies (fundef-result-equiv acl2::x (fundef-result-fix acl2::y)) (fundef-result-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)