Fixing function for snapshot-config structures.
(snapshot-config-fix x) → new-x
Function:
(defun snapshot-config-fix$inline (x) (declare (xargs :guard (snapshot-config-p x))) (let ((__function__ 'snapshot-config-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((filename (acl2::str-fix (cdr x)))) (cons :snapshot-config filename)) :exec x)))
Theorem:
(defthm snapshot-config-p-of-snapshot-config-fix (b* ((new-x (snapshot-config-fix$inline x))) (snapshot-config-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm snapshot-config-fix-when-snapshot-config-p (implies (snapshot-config-p x) (equal (snapshot-config-fix x) x)))
Function:
(defun snapshot-config-equiv$inline (x acl2::y) (declare (xargs :guard (and (snapshot-config-p x) (snapshot-config-p acl2::y)))) (equal (snapshot-config-fix x) (snapshot-config-fix acl2::y)))
Theorem:
(defthm snapshot-config-equiv-is-an-equivalence (and (booleanp (snapshot-config-equiv x y)) (snapshot-config-equiv x x) (implies (snapshot-config-equiv x y) (snapshot-config-equiv y x)) (implies (and (snapshot-config-equiv x y) (snapshot-config-equiv y z)) (snapshot-config-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm snapshot-config-equiv-implies-equal-snapshot-config-fix-1 (implies (snapshot-config-equiv x x-equiv) (equal (snapshot-config-fix x) (snapshot-config-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm snapshot-config-fix-under-snapshot-config-equiv (snapshot-config-equiv (snapshot-config-fix x) x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-snapshot-config-fix-1-forward-to-snapshot-config-equiv (implies (equal (snapshot-config-fix x) acl2::y) (snapshot-config-equiv x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-snapshot-config-fix-2-forward-to-snapshot-config-equiv (implies (equal x (snapshot-config-fix acl2::y)) (snapshot-config-equiv x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm snapshot-config-equiv-of-snapshot-config-fix-1-forward (implies (snapshot-config-equiv (snapshot-config-fix x) acl2::y) (snapshot-config-equiv x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm snapshot-config-equiv-of-snapshot-config-fix-2-forward (implies (snapshot-config-equiv x (snapshot-config-fix acl2::y)) (snapshot-config-equiv x acl2::y)) :rule-classes :forward-chaining)