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