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