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