Fixing function for transunit-ensemble structures.
(transunit-ensemble-fix x) → new-x
Function:
(defun transunit-ensemble-fix$inline (x) (declare (xargs :guard (transunit-ensemblep x))) (let ((__function__ 'transunit-ensemble-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((unwrap (filepath-transunit-map-fix (cdr (std::da-nth 0 x))))) (list (cons 'unwrap unwrap))) :exec x)))
Theorem:
(defthm transunit-ensemblep-of-transunit-ensemble-fix (b* ((new-x (transunit-ensemble-fix$inline x))) (transunit-ensemblep new-x)) :rule-classes :rewrite)
Theorem:
(defthm transunit-ensemble-fix-when-transunit-ensemblep (implies (transunit-ensemblep x) (equal (transunit-ensemble-fix x) x)))
Function:
(defun transunit-ensemble-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (transunit-ensemblep acl2::x) (transunit-ensemblep acl2::y)))) (equal (transunit-ensemble-fix acl2::x) (transunit-ensemble-fix acl2::y)))
Theorem:
(defthm transunit-ensemble-equiv-is-an-equivalence (and (booleanp (transunit-ensemble-equiv x y)) (transunit-ensemble-equiv x x) (implies (transunit-ensemble-equiv x y) (transunit-ensemble-equiv y x)) (implies (and (transunit-ensemble-equiv x y) (transunit-ensemble-equiv y z)) (transunit-ensemble-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm transunit-ensemble-equiv-implies-equal-transunit-ensemble-fix-1 (implies (transunit-ensemble-equiv acl2::x x-equiv) (equal (transunit-ensemble-fix acl2::x) (transunit-ensemble-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm transunit-ensemble-fix-under-transunit-ensemble-equiv (transunit-ensemble-equiv (transunit-ensemble-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-transunit-ensemble-fix-1-forward-to-transunit-ensemble-equiv (implies (equal (transunit-ensemble-fix acl2::x) acl2::y) (transunit-ensemble-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-transunit-ensemble-fix-2-forward-to-transunit-ensemble-equiv (implies (equal acl2::x (transunit-ensemble-fix acl2::y)) (transunit-ensemble-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm transunit-ensemble-equiv-of-transunit-ensemble-fix-1-forward (implies (transunit-ensemble-equiv (transunit-ensemble-fix acl2::x) acl2::y) (transunit-ensemble-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm transunit-ensemble-equiv-of-transunit-ensemble-fix-2-forward (implies (transunit-ensemble-equiv acl2::x (transunit-ensemble-fix acl2::y)) (transunit-ensemble-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)