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