(ident-option-set-fix x) is a usual ACL2::fty set fixing function.
(ident-option-set-fix x) → *
In the logic, we apply ident-option-fix to each member of the x. In the execution, none of that is actually necessary and this is just an inlined identity function.
Function:
(defun ident-option-set-fix (x) (declare (xargs :guard (ident-option-setp x))) (mbe :logic (if (ident-option-setp x) x nil) :exec x))
Theorem:
(defthm ident-option-setp-of-ident-option-set-fix (ident-option-setp (ident-option-set-fix x)))
Theorem:
(defthm ident-option-set-fix-when-ident-option-setp (implies (ident-option-setp x) (equal (ident-option-set-fix x) x)))
Theorem:
(defthm emptyp-ident-option-set-fix (implies (or (emptyp x) (not (ident-option-setp x))) (emptyp (ident-option-set-fix x))))
Theorem:
(defthm emptyp-of-ident-option-set-fix (equal (emptyp (ident-option-set-fix x)) (or (not (ident-option-setp x)) (emptyp x))))
Function:
(defun ident-option-set-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (ident-option-setp acl2::x) (ident-option-setp acl2::y)))) (equal (ident-option-set-fix acl2::x) (ident-option-set-fix acl2::y)))
Theorem:
(defthm ident-option-set-equiv-is-an-equivalence (and (booleanp (ident-option-set-equiv x y)) (ident-option-set-equiv x x) (implies (ident-option-set-equiv x y) (ident-option-set-equiv y x)) (implies (and (ident-option-set-equiv x y) (ident-option-set-equiv y z)) (ident-option-set-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm ident-option-set-equiv-implies-equal-ident-option-set-fix-1 (implies (ident-option-set-equiv acl2::x x-equiv) (equal (ident-option-set-fix acl2::x) (ident-option-set-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm ident-option-set-fix-under-ident-option-set-equiv (ident-option-set-equiv (ident-option-set-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-ident-option-set-fix-1-forward-to-ident-option-set-equiv (implies (equal (ident-option-set-fix acl2::x) acl2::y) (ident-option-set-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-ident-option-set-fix-2-forward-to-ident-option-set-equiv (implies (equal acl2::x (ident-option-set-fix acl2::y)) (ident-option-set-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm ident-option-set-equiv-of-ident-option-set-fix-1-forward (implies (ident-option-set-equiv (ident-option-set-fix acl2::x) acl2::y) (ident-option-set-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm ident-option-set-equiv-of-ident-option-set-fix-2-forward (implies (ident-option-set-equiv acl2::x (ident-option-set-fix acl2::y)) (ident-option-set-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)