(vl-streamexprlist-update-subexprs x subexprs) → new-x
Function:
(defun vl-streamexprlist-update-subexprs (x subexprs) (declare (xargs :guard (and (vl-streamexprlist-p x) (vl-exprlist-p subexprs)))) (declare (xargs :guard (equal (len subexprs) (len (vl-streamexprlist->subexprs x))))) (let ((__function__ 'vl-streamexprlist-update-subexprs)) (declare (ignorable __function__)) (if (atom x) x (let ((len (len (vl-streamexpr->subexprs (car x))))) (cons (vl-streamexpr-update-subexprs (car x) (take len subexprs)) (vl-streamexprlist-update-subexprs (cdr x) (nthcdr len subexprs)))))))
Theorem:
(defthm vl-streamexprlist-p-of-vl-streamexprlist-update-subexprs (b* ((new-x (vl-streamexprlist-update-subexprs x subexprs))) (vl-streamexprlist-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-streamexprlist-update-subexprs-identity (equal (vl-streamexprlist-update-subexprs x (vl-streamexprlist->subexprs x)) (vl-streamexprlist-fix x)))
Theorem:
(defthm vl-streamexprlist-update-subexprs-identity2 (implies (equal (len y) (len (vl-streamexprlist->subexprs x))) (equal (vl-streamexprlist->subexprs (vl-streamexprlist-update-subexprs x y)) (vl-exprlist-fix y))))
Theorem:
(defthm vl-streamexprlist-update-subexprs-of-vl-streamexprlist-fix-x (equal (vl-streamexprlist-update-subexprs (vl-streamexprlist-fix x) subexprs) (vl-streamexprlist-update-subexprs x subexprs)))
Theorem:
(defthm vl-streamexprlist-update-subexprs-vl-streamexprlist-equiv-congruence-on-x (implies (vl-streamexprlist-equiv x x-equiv) (equal (vl-streamexprlist-update-subexprs x subexprs) (vl-streamexprlist-update-subexprs x-equiv subexprs))) :rule-classes :congruence)
Theorem:
(defthm vl-streamexprlist-update-subexprs-of-vl-exprlist-fix-subexprs (equal (vl-streamexprlist-update-subexprs x (vl-exprlist-fix subexprs)) (vl-streamexprlist-update-subexprs x subexprs)))
Theorem:
(defthm vl-streamexprlist-update-subexprs-vl-exprlist-equiv-congruence-on-subexprs (implies (vl-exprlist-equiv subexprs subexprs-equiv) (equal (vl-streamexprlist-update-subexprs x subexprs) (vl-streamexprlist-update-subexprs x subexprs-equiv))) :rule-classes :congruence)