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