Eliminate
(vl-paramtype-wildelim x ctx warnings) → (mv warnings new-x)
Function:
(defun vl-paramtype-wildelim (x ctx warnings) (declare (xargs :guard (and (vl-paramtype-p x) (vl-context-p ctx) (vl-warninglist-p warnings)))) (let ((__function__ 'vl-paramtype-wildelim)) (declare (ignorable __function__)) (b* ((x (vl-paramtype-fix x)) (warnings (vl-warninglist-fix warnings))) (vl-paramtype-case x (:vl-implicitvalueparam (b* (((mv warnings range-prime) (vl-maybe-range-wildelim x.range ctx warnings)) ((mv warnings default-prime) (vl-maybe-expr-wildelim x.default ctx warnings)) (x-prime (change-vl-implicitvalueparam x :range range-prime :default default-prime))) (mv warnings x-prime))) (:vl-explicitvalueparam (b* (((mv warnings type-prime) (vl-datatype-wildelim x.type ctx warnings)) ((mv warnings default-prime) (vl-maybe-expr-wildelim x.default ctx warnings)) (x-prime (change-vl-explicitvalueparam x :type type-prime :default default-prime))) (mv warnings x-prime))) (:vl-typeparam (b* (((mv warnings default-prime) (vl-maybe-datatype-wildelim x.default ctx warnings)) (x-prime (change-vl-typeparam x :default default-prime))) (mv warnings x-prime)))))))
Theorem:
(defthm vl-warninglist-p-of-vl-paramtype-wildelim.warnings (b* (((mv ?warnings ?new-x) (vl-paramtype-wildelim x ctx warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-paramtype-p-of-vl-paramtype-wildelim.new-x (b* (((mv ?warnings ?new-x) (vl-paramtype-wildelim x ctx warnings))) (vl-paramtype-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-paramtype-wildelim-of-vl-paramtype-fix-x (equal (vl-paramtype-wildelim (vl-paramtype-fix x) ctx warnings) (vl-paramtype-wildelim x ctx warnings)))
Theorem:
(defthm vl-paramtype-wildelim-vl-paramtype-equiv-congruence-on-x (implies (vl-paramtype-equiv x x-equiv) (equal (vl-paramtype-wildelim x ctx warnings) (vl-paramtype-wildelim x-equiv ctx warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-paramtype-wildelim-of-vl-context-fix-ctx (equal (vl-paramtype-wildelim x (vl-context-fix ctx) warnings) (vl-paramtype-wildelim x ctx warnings)))
Theorem:
(defthm vl-paramtype-wildelim-vl-context-equiv-congruence-on-ctx (implies (vl-context-equiv ctx ctx-equiv) (equal (vl-paramtype-wildelim x ctx warnings) (vl-paramtype-wildelim x ctx-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-paramtype-wildelim-of-vl-warninglist-fix-warnings (equal (vl-paramtype-wildelim x ctx (vl-warninglist-fix warnings)) (vl-paramtype-wildelim x ctx warnings)))
Theorem:
(defthm vl-paramtype-wildelim-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-paramtype-wildelim x ctx warnings) (vl-paramtype-wildelim x ctx warnings-equiv))) :rule-classes :congruence)