Fixing function for vl-simpconfig structures.
(vl-simpconfig-fix x) → new-x
Function:
(defun vl-simpconfig-fix$inline (x) (declare (xargs :guard (vl-simpconfig-p x))) (let ((__function__ 'vl-simpconfig-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((compress-p (acl2::bool-fix (cdr (std::da-nth 0 (cdr x))))) (problem-mods (string-list-fix (cdr (std::da-nth 1 (cdr x))))) (clean-params-p (acl2::bool-fix (cdr (std::da-nth 2 (cdr x))))) (unroll-limit (nfix (cdr (std::da-nth 3 (cdr x)))))) (cons :vl-simpconfig (list (cons 'compress-p compress-p) (cons 'problem-mods problem-mods) (cons 'clean-params-p clean-params-p) (cons 'unroll-limit unroll-limit)))) :exec x)))
Theorem:
(defthm vl-simpconfig-p-of-vl-simpconfig-fix (b* ((new-x (vl-simpconfig-fix$inline x))) (vl-simpconfig-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-simpconfig-fix-when-vl-simpconfig-p (implies (vl-simpconfig-p x) (equal (vl-simpconfig-fix x) x)))
Function:
(defun vl-simpconfig-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (vl-simpconfig-p acl2::x) (vl-simpconfig-p acl2::y)))) (equal (vl-simpconfig-fix acl2::x) (vl-simpconfig-fix acl2::y)))
Theorem:
(defthm vl-simpconfig-equiv-is-an-equivalence (and (booleanp (vl-simpconfig-equiv x y)) (vl-simpconfig-equiv x x) (implies (vl-simpconfig-equiv x y) (vl-simpconfig-equiv y x)) (implies (and (vl-simpconfig-equiv x y) (vl-simpconfig-equiv y z)) (vl-simpconfig-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm vl-simpconfig-equiv-implies-equal-vl-simpconfig-fix-1 (implies (vl-simpconfig-equiv acl2::x x-equiv) (equal (vl-simpconfig-fix acl2::x) (vl-simpconfig-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm vl-simpconfig-fix-under-vl-simpconfig-equiv (vl-simpconfig-equiv (vl-simpconfig-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-vl-simpconfig-fix-1-forward-to-vl-simpconfig-equiv (implies (equal (vl-simpconfig-fix acl2::x) acl2::y) (vl-simpconfig-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-vl-simpconfig-fix-2-forward-to-vl-simpconfig-equiv (implies (equal acl2::x (vl-simpconfig-fix acl2::y)) (vl-simpconfig-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm vl-simpconfig-equiv-of-vl-simpconfig-fix-1-forward (implies (vl-simpconfig-equiv (vl-simpconfig-fix acl2::x) acl2::y) (vl-simpconfig-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm vl-simpconfig-equiv-of-vl-simpconfig-fix-2-forward (implies (vl-simpconfig-equiv acl2::x (vl-simpconfig-fix acl2::y)) (vl-simpconfig-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)