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 (std::da-nth 0 (cdr x)))) (problem-mods (string-list-fix (std::da-nth 1 (cdr x)))) (already-annotated (acl2::bool-fix (std::da-nth 2 (cdr x)))) (unroll-limit (nfix (std::da-nth 3 (cdr x)))) (sc-limit (nfix (std::da-nth 4 (cdr x)))) (elab-limit (nfix (std::da-nth 5 (cdr x)))) (uniquecase-conservative (nfix (std::da-nth 6 (cdr x)))) (uniquecase-constraints (acl2::bool-fix (std::da-nth 7 (cdr x)))) (enum-constraints (std::da-nth 8 (cdr x))) (enum-fixups (std::da-nth 9 (cdr x))) (sv-simplify (acl2::bool-fix (std::da-nth 10 (cdr x)))) (sv-simplify-verbosep (acl2::bool-fix (std::da-nth 11 (cdr x)))) (sv-include-atts (string-list-fix (std::da-nth 12 (cdr x)))) (nb-latch-delay-hack (acl2::bool-fix (std::da-nth 13 (cdr x)))) (name-without-default-params (acl2::bool-fix (std::da-nth 14 (cdr x)))) (unparam-bad-instance-fatalp (acl2::bool-fix (std::da-nth 15 (cdr x)))) (defer-argresolve (acl2::bool-fix (std::da-nth 16 (cdr x)))) (suppress-fatal-warning-types (acl2::symbol-list-fix (std::da-nth 17 (cdr x)))) (user-paramsettings (vl-user-paramsettings-fix (std::da-nth 18 (cdr x)))) (user-paramsettings-mode (vl-user-paramsettings-mode-fix (std::da-nth 19 (cdr x)))) (pre-elab-topmods (string-list-fix (std::da-nth 20 (cdr x)))) (pre-elab-filter (acl2::bool-fix (std::da-nth 21 (cdr x)))) (post-elab-topmods (string-list-fix (std::da-nth 22 (cdr x)))) (post-elab-filter (acl2::bool-fix (std::da-nth 23 (cdr x)))) (allow-bad-topmods (acl2::bool-fix (std::da-nth 24 (cdr x))))) (cons :vl-simpconfig (list compress-p problem-mods already-annotated unroll-limit sc-limit elab-limit uniquecase-conservative uniquecase-constraints enum-constraints enum-fixups sv-simplify sv-simplify-verbosep sv-include-atts nb-latch-delay-hack name-without-default-params unparam-bad-instance-fatalp defer-argresolve suppress-fatal-warning-types user-paramsettings user-paramsettings-mode pre-elab-topmods pre-elab-filter post-elab-topmods post-elab-filter allow-bad-topmods))) :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)