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