(filepath-set-fix x) is a usual ACL2::fty set fixing function.
(filepath-set-fix x) → *
In the logic, we apply filepath-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 filepath-set-fix (x) (declare (xargs :guard (filepath-setp x))) (mbe :logic (if (filepath-setp x) x nil) :exec x))
Theorem:
(defthm filepath-setp-of-filepath-set-fix (filepath-setp (filepath-set-fix x)))
Theorem:
(defthm filepath-set-fix-when-filepath-setp (implies (filepath-setp x) (equal (filepath-set-fix x) x)))
Theorem:
(defthm emptyp-filepath-set-fix (implies (or (emptyp x) (not (filepath-setp x))) (emptyp (filepath-set-fix x))))
Function:
(defun filepath-set-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (filepath-setp acl2::x) (filepath-setp acl2::y)))) (equal (filepath-set-fix acl2::x) (filepath-set-fix acl2::y)))
Theorem:
(defthm filepath-set-equiv-is-an-equivalence (and (booleanp (filepath-set-equiv x y)) (filepath-set-equiv x x) (implies (filepath-set-equiv x y) (filepath-set-equiv y x)) (implies (and (filepath-set-equiv x y) (filepath-set-equiv y z)) (filepath-set-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm filepath-set-equiv-implies-equal-filepath-set-fix-1 (implies (filepath-set-equiv acl2::x x-equiv) (equal (filepath-set-fix acl2::x) (filepath-set-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm filepath-set-fix-under-filepath-set-equiv (filepath-set-equiv (filepath-set-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-filepath-set-fix-1-forward-to-filepath-set-equiv (implies (equal (filepath-set-fix acl2::x) acl2::y) (filepath-set-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-filepath-set-fix-2-forward-to-filepath-set-equiv (implies (equal acl2::x (filepath-set-fix acl2::y)) (filepath-set-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm filepath-set-equiv-of-filepath-set-fix-1-forward (implies (filepath-set-equiv (filepath-set-fix acl2::x) acl2::y) (filepath-set-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm filepath-set-equiv-of-filepath-set-fix-2-forward (implies (filepath-set-equiv acl2::x (filepath-set-fix acl2::y)) (filepath-set-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)