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