Name unnamed gate instances.
(vl-gateinstlist-addinstnames x nf) → (mv new-x nf)
Function:
(defun vl-gateinstlist-addinstnames (x nf) (declare (xargs :guard (and (vl-gateinstlist-p x) (vl-namefactory-p nf)))) (let ((__function__ 'vl-gateinstlist-addinstnames)) (declare (ignorable __function__)) (b* (((when (atom x)) (mv x (vl-namefactory-fix nf))) ((mv car nf) (vl-gateinst-addinstnames (car x) nf)) ((mv cdr nf) (vl-gateinstlist-addinstnames (cdr x) nf))) (mv (cons car cdr) nf))))
Theorem:
(defthm vl-gateinstlist-p-of-vl-gateinstlist-addinstnames.new-x (b* (((mv ?new-x ?nf) (vl-gateinstlist-addinstnames x nf))) (vl-gateinstlist-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-namefactory-p-of-vl-gateinstlist-addinstnames.nf (b* (((mv ?new-x ?nf) (vl-gateinstlist-addinstnames x nf))) (vl-namefactory-p nf)) :rule-classes :rewrite)
Theorem:
(defthm vl-gateinstlist-addinstnames-of-vl-gateinstlist-fix-x (equal (vl-gateinstlist-addinstnames (vl-gateinstlist-fix x) nf) (vl-gateinstlist-addinstnames x nf)))
Theorem:
(defthm vl-gateinstlist-addinstnames-vl-gateinstlist-equiv-congruence-on-x (implies (vl-gateinstlist-equiv x x-equiv) (equal (vl-gateinstlist-addinstnames x nf) (vl-gateinstlist-addinstnames x-equiv nf))) :rule-classes :congruence)
Theorem:
(defthm vl-gateinstlist-addinstnames-of-vl-namefactory-fix-nf (equal (vl-gateinstlist-addinstnames x (vl-namefactory-fix nf)) (vl-gateinstlist-addinstnames x nf)))
Theorem:
(defthm vl-gateinstlist-addinstnames-vl-namefactory-equiv-congruence-on-nf (implies (vl-namefactory-equiv nf nf-equiv) (equal (vl-gateinstlist-addinstnames x nf) (vl-gateinstlist-addinstnames x nf-equiv))) :rule-classes :congruence)