Rewrite operators throughout a vl-arguments-p
(vl-arguments-oprewrite x warnings) → (mv warnings new-x)
Function:
(defun vl-arguments-oprewrite (x warnings) (declare (xargs :guard (and (vl-arguments-p x) (vl-warninglist-p warnings)))) (let ((__function__ 'vl-arguments-oprewrite)) (declare (ignorable __function__)) (b* ((x (vl-arguments-fix x))) (vl-arguments-case x :vl-arguments-named (b* (((mv warnings args-prime) (vl-namedarglist-oprewrite x.args warnings))) (mv warnings (change-vl-arguments-named x :args args-prime))) :vl-arguments-plain (b* (((mv warnings args-prime) (vl-plainarglist-oprewrite x.args warnings))) (mv warnings (change-vl-arguments-plain x :args args-prime)))))))
Theorem:
(defthm vl-warninglist-p-of-vl-arguments-oprewrite.warnings (b* (((mv ?warnings ?new-x) (vl-arguments-oprewrite x warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-arguments-p-of-vl-arguments-oprewrite.new-x (b* (((mv ?warnings ?new-x) (vl-arguments-oprewrite x warnings))) (vl-arguments-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-arguments-oprewrite-of-vl-arguments-fix-x (equal (vl-arguments-oprewrite (vl-arguments-fix x) warnings) (vl-arguments-oprewrite x warnings)))
Theorem:
(defthm vl-arguments-oprewrite-vl-arguments-equiv-congruence-on-x (implies (vl-arguments-equiv x x-equiv) (equal (vl-arguments-oprewrite x warnings) (vl-arguments-oprewrite x-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-arguments-oprewrite-of-vl-warninglist-fix-warnings (equal (vl-arguments-oprewrite x (vl-warninglist-fix warnings)) (vl-arguments-oprewrite x warnings)))
Theorem:
(defthm vl-arguments-oprewrite-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-arguments-oprewrite x warnings) (vl-arguments-oprewrite x warnings-equiv))) :rule-classes :congruence)