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