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