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