Eliminate
(vl-paramargs-wildelim x ctx warnings) → (mv warnings new-x)
Function:
(defun vl-paramargs-wildelim (x ctx warnings) (declare (xargs :guard (and (vl-paramargs-p x) (vl-context-p ctx) (vl-warninglist-p warnings)))) (let ((__function__ 'vl-paramargs-wildelim)) (declare (ignorable __function__)) (b* ((x (vl-paramargs-fix x)) (warnings (vl-warninglist-fix warnings))) (vl-paramargs-case x :vl-paramargs-named (b* (((mv warnings args) (vl-namedparamvaluelist-wildelim x.args ctx warnings))) (mv warnings (change-vl-paramargs-named x :args args))) :vl-paramargs-plain (b* (((mv warnings args) (vl-paramvaluelist-wildelim x.args ctx warnings))) (mv warnings (change-vl-paramargs-plain x :args args)))))))
Theorem:
(defthm vl-warninglist-p-of-vl-paramargs-wildelim.warnings (b* (((mv ?warnings ?new-x) (vl-paramargs-wildelim x ctx warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-paramargs-p-of-vl-paramargs-wildelim.new-x (b* (((mv ?warnings ?new-x) (vl-paramargs-wildelim x ctx warnings))) (vl-paramargs-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-paramargs-wildelim-of-vl-paramargs-fix-x (equal (vl-paramargs-wildelim (vl-paramargs-fix x) ctx warnings) (vl-paramargs-wildelim x ctx warnings)))
Theorem:
(defthm vl-paramargs-wildelim-vl-paramargs-equiv-congruence-on-x (implies (vl-paramargs-equiv x x-equiv) (equal (vl-paramargs-wildelim x ctx warnings) (vl-paramargs-wildelim x-equiv ctx warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-paramargs-wildelim-of-vl-context-fix-ctx (equal (vl-paramargs-wildelim x (vl-context-fix ctx) warnings) (vl-paramargs-wildelim x ctx warnings)))
Theorem:
(defthm vl-paramargs-wildelim-vl-context-equiv-congruence-on-ctx (implies (vl-context-equiv ctx ctx-equiv) (equal (vl-paramargs-wildelim x ctx warnings) (vl-paramargs-wildelim x ctx-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-paramargs-wildelim-of-vl-warninglist-fix-warnings (equal (vl-paramargs-wildelim x ctx (vl-warninglist-fix warnings)) (vl-paramargs-wildelim x ctx warnings)))
Theorem:
(defthm vl-paramargs-wildelim-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-paramargs-wildelim x ctx warnings) (vl-paramargs-wildelim x ctx warnings-equiv))) :rule-classes :congruence)