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