Eliminate
(vl-packeddimensionlist-wildelim x ctx warnings) → (mv warnings new-x)
Function:
(defun vl-packeddimensionlist-wildelim (x ctx warnings) (declare (xargs :guard (and (vl-packeddimensionlist-p x) (vl-context-p ctx) (vl-warninglist-p warnings)))) (let ((__function__ 'vl-packeddimensionlist-wildelim)) (declare (ignorable __function__)) (b* (((when (atom x)) (mv (ok) x)) ((mv warnings car-prime) (vl-packeddimension-wildelim (car x) ctx warnings)) ((mv warnings cdr-prime) (vl-packeddimensionlist-wildelim (cdr x) ctx warnings))) (mv warnings (cons car-prime cdr-prime)))))
Theorem:
(defthm vl-warninglist-p-of-vl-packeddimensionlist-wildelim.warnings (b* (((mv ?warnings ?new-x) (vl-packeddimensionlist-wildelim x ctx warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-packeddimensionlist-p-of-vl-packeddimensionlist-wildelim.new-x (b* (((mv ?warnings ?new-x) (vl-packeddimensionlist-wildelim x ctx warnings))) (vl-packeddimensionlist-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-packeddimensionlist-wildelim-when-atom (implies (atom x) (equal (vl-packeddimensionlist-wildelim x ctx warnings) (mv (ok) x))))
Theorem:
(defthm vl-packeddimensionlist-wildelim-of-cons (equal (vl-packeddimensionlist-wildelim (cons a x) ctx warnings) (b* (((mv warnings car-prime) (vl-packeddimension-wildelim a ctx warnings)) ((mv warnings cdr-prime) (vl-packeddimensionlist-wildelim x ctx warnings))) (mv warnings (cons car-prime cdr-prime)))))
Theorem:
(defthm len-of-vl-packeddimensionlist-wildelim (equal (len (mv-nth 1 (vl-packeddimensionlist-wildelim x ctx warnings))) (len x)))
Theorem:
(defthm vl-packeddimensionlist-wildelim-of-vl-packeddimensionlist-fix-x (equal (vl-packeddimensionlist-wildelim (vl-packeddimensionlist-fix x) ctx warnings) (vl-packeddimensionlist-wildelim x ctx warnings)))
Theorem:
(defthm vl-packeddimensionlist-wildelim-vl-packeddimensionlist-equiv-congruence-on-x (implies (vl-packeddimensionlist-equiv x x-equiv) (equal (vl-packeddimensionlist-wildelim x ctx warnings) (vl-packeddimensionlist-wildelim x-equiv ctx warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-packeddimensionlist-wildelim-of-vl-context-fix-ctx (equal (vl-packeddimensionlist-wildelim x (vl-context-fix ctx) warnings) (vl-packeddimensionlist-wildelim x ctx warnings)))
Theorem:
(defthm vl-packeddimensionlist-wildelim-vl-context-equiv-congruence-on-ctx (implies (vl-context-equiv ctx ctx-equiv) (equal (vl-packeddimensionlist-wildelim x ctx warnings) (vl-packeddimensionlist-wildelim x ctx-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-packeddimensionlist-wildelim-of-vl-warninglist-fix-warnings (equal (vl-packeddimensionlist-wildelim x ctx (vl-warninglist-fix warnings)) (vl-packeddimensionlist-wildelim x ctx warnings)))
Theorem:
(defthm vl-packeddimensionlist-wildelim-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-packeddimensionlist-wildelim x ctx warnings) (vl-packeddimensionlist-wildelim x ctx warnings-equiv))) :rule-classes :congruence)