Extends vl-modinst-blankargs across a vl-modinstlist-p.
(vl-modinstlist-blankargs x ss nf warnings) → (mv warnings new-x vardecls nf)
Function:
(defun vl-modinstlist-blankargs (x ss nf warnings) (declare (xargs :guard (and (vl-modinstlist-p x) (vl-scopestack-p ss) (vl-namefactory-p nf) (vl-warninglist-p warnings)))) (let ((__function__ 'vl-modinstlist-blankargs)) (declare (ignorable __function__)) (b* (((when (atom x)) (mv (ok) nil nil (vl-namefactory-fix nf))) ((mv warnings car-prime car-vardecls nf) (vl-modinst-blankargs (car x) ss nf warnings)) ((mv warnings cdr-prime cdr-vardecls nf) (vl-modinstlist-blankargs (cdr x) ss nf warnings)) (x-prime (cons car-prime cdr-prime)) (vardecls (append car-vardecls cdr-vardecls))) (mv warnings x-prime vardecls nf))))
Theorem:
(defthm vl-warninglist-p-of-vl-modinstlist-blankargs.warnings (b* (((mv ?warnings ?new-x ?vardecls ?nf) (vl-modinstlist-blankargs x ss nf warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-modinstlist-p-of-vl-modinstlist-blankargs.new-x (b* (((mv ?warnings ?new-x ?vardecls ?nf) (vl-modinstlist-blankargs x ss nf warnings))) (vl-modinstlist-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-vardecllist-p-of-vl-modinstlist-blankargs.vardecls (b* (((mv ?warnings ?new-x ?vardecls ?nf) (vl-modinstlist-blankargs x ss nf warnings))) (vl-vardecllist-p vardecls)) :rule-classes :rewrite)
Theorem:
(defthm vl-namefactory-p-of-vl-modinstlist-blankargs.nf (b* (((mv ?warnings ?new-x ?vardecls ?nf) (vl-modinstlist-blankargs x ss nf warnings))) (vl-namefactory-p nf)) :rule-classes :rewrite)
Theorem:
(defthm vl-modinstlist-blankargs-mvtypes-1 (true-listp (mv-nth 1 (vl-modinstlist-blankargs x ss nf warnings))) :rule-classes :type-prescription)
Theorem:
(defthm vl-modinstlist-blankargs-mvtypes-2 (true-listp (mv-nth 2 (vl-modinstlist-blankargs x ss nf warnings))) :rule-classes :type-prescription)
Theorem:
(defthm vl-modinstlist-blankargs-of-vl-modinstlist-fix-x (equal (vl-modinstlist-blankargs (vl-modinstlist-fix x) ss nf warnings) (vl-modinstlist-blankargs x ss nf warnings)))
Theorem:
(defthm vl-modinstlist-blankargs-vl-modinstlist-equiv-congruence-on-x (implies (vl-modinstlist-equiv x x-equiv) (equal (vl-modinstlist-blankargs x ss nf warnings) (vl-modinstlist-blankargs x-equiv ss nf warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-modinstlist-blankargs-of-vl-scopestack-fix-ss (equal (vl-modinstlist-blankargs x (vl-scopestack-fix ss) nf warnings) (vl-modinstlist-blankargs x ss nf warnings)))
Theorem:
(defthm vl-modinstlist-blankargs-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-modinstlist-blankargs x ss nf warnings) (vl-modinstlist-blankargs x ss-equiv nf warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-modinstlist-blankargs-of-vl-namefactory-fix-nf (equal (vl-modinstlist-blankargs x ss (vl-namefactory-fix nf) warnings) (vl-modinstlist-blankargs x ss nf warnings)))
Theorem:
(defthm vl-modinstlist-blankargs-vl-namefactory-equiv-congruence-on-nf (implies (vl-namefactory-equiv nf nf-equiv) (equal (vl-modinstlist-blankargs x ss nf warnings) (vl-modinstlist-blankargs x ss nf-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-modinstlist-blankargs-of-vl-warninglist-fix-warnings (equal (vl-modinstlist-blankargs x ss nf (vl-warninglist-fix warnings)) (vl-modinstlist-blankargs x ss nf warnings)))
Theorem:
(defthm vl-modinstlist-blankargs-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-modinstlist-blankargs x ss nf warnings) (vl-modinstlist-blankargs x ss nf warnings-equiv))) :rule-classes :congruence)