Resolve arguments in a vl-modinstlist-p.
(vl-modinstlist-argresolve x ss warnings) → (mv warnings new-x)
Function:
(defun vl-modinstlist-argresolve (x ss warnings) (declare (xargs :guard (and (vl-modinstlist-p x) (vl-scopestack-p ss) (vl-warninglist-p warnings)))) (let ((__function__ 'vl-modinstlist-argresolve)) (declare (ignorable __function__)) (b* (((when (atom x)) (mv (ok) nil)) ((mv warnings car) (vl-modinst-argresolve (car x) ss warnings)) ((mv warnings cdr) (vl-modinstlist-argresolve (cdr x) ss warnings))) (mv warnings (cons car cdr)))))
Theorem:
(defthm vl-warninglist-p-of-vl-modinstlist-argresolve.warnings (b* (((mv ?warnings ?new-x) (vl-modinstlist-argresolve x ss warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-modinstlist-p-of-vl-modinstlist-argresolve.new-x (b* (((mv ?warnings ?new-x) (vl-modinstlist-argresolve x ss warnings))) (vl-modinstlist-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-modinstlist-argresolve-of-vl-modinstlist-fix-x (equal (vl-modinstlist-argresolve (vl-modinstlist-fix x) ss warnings) (vl-modinstlist-argresolve x ss warnings)))
Theorem:
(defthm vl-modinstlist-argresolve-vl-modinstlist-equiv-congruence-on-x (implies (vl-modinstlist-equiv x x-equiv) (equal (vl-modinstlist-argresolve x ss warnings) (vl-modinstlist-argresolve x-equiv ss warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-modinstlist-argresolve-of-vl-scopestack-fix-ss (equal (vl-modinstlist-argresolve x (vl-scopestack-fix ss) warnings) (vl-modinstlist-argresolve x ss warnings)))
Theorem:
(defthm vl-modinstlist-argresolve-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-modinstlist-argresolve x ss warnings) (vl-modinstlist-argresolve x ss-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-modinstlist-argresolve-of-vl-warninglist-fix-warnings (equal (vl-modinstlist-argresolve x ss (vl-warninglist-fix warnings)) (vl-modinstlist-argresolve x ss warnings)))
Theorem:
(defthm vl-modinstlist-argresolve-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-modinstlist-argresolve x ss warnings) (vl-modinstlist-argresolve x ss warnings-equiv))) :rule-classes :congruence)