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