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