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