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