Rewrite operators throughout a vl-evatomlist-p
(vl-evatomlist-oprewrite x warnings) → (mv warnings new-x)
Function:
(defun vl-evatomlist-oprewrite (x warnings) (declare (xargs :guard (and (vl-evatomlist-p x) (vl-warninglist-p warnings)))) (let ((__function__ 'vl-evatomlist-oprewrite)) (declare (ignorable __function__)) (b* (((when (atom x)) (mv (ok) nil)) ((mv warnings car-prime) (vl-evatom-oprewrite (car x) warnings)) ((mv warnings cdr-prime) (vl-evatomlist-oprewrite (cdr x) warnings))) (mv warnings (cons car-prime cdr-prime)))))
Theorem:
(defthm vl-warninglist-p-of-vl-evatomlist-oprewrite.warnings (b* (((mv ?warnings ?new-x) (vl-evatomlist-oprewrite x warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-evatomlist-p-of-vl-evatomlist-oprewrite.new-x (b* (((mv ?warnings ?new-x) (vl-evatomlist-oprewrite x warnings))) (vl-evatomlist-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-evatomlist-oprewrite-mvtypes-1 (true-listp (mv-nth 1 (vl-evatomlist-oprewrite x warnings))) :rule-classes :type-prescription)
Theorem:
(defthm vl-evatomlist-oprewrite-of-vl-evatomlist-fix-x (equal (vl-evatomlist-oprewrite (vl-evatomlist-fix x) warnings) (vl-evatomlist-oprewrite x warnings)))
Theorem:
(defthm vl-evatomlist-oprewrite-vl-evatomlist-equiv-congruence-on-x (implies (vl-evatomlist-equiv x x-equiv) (equal (vl-evatomlist-oprewrite x warnings) (vl-evatomlist-oprewrite x-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-evatomlist-oprewrite-of-vl-warninglist-fix-warnings (equal (vl-evatomlist-oprewrite x (vl-warninglist-fix warnings)) (vl-evatomlist-oprewrite x warnings)))
Theorem:
(defthm vl-evatomlist-oprewrite-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-evatomlist-oprewrite x warnings) (vl-evatomlist-oprewrite x warnings-equiv))) :rule-classes :congruence)