(vl-partselect-update-subexprs x subexprs) → new-x
Function:
(defun vl-partselect-update-subexprs (x subexprs) (declare (xargs :guard (and (vl-partselect-p x) (vl-exprlist-p subexprs)))) (declare (xargs :guard (equal (len subexprs) (len (vl-partselect->subexprs x))))) (let ((__function__ 'vl-partselect-update-subexprs)) (declare (ignorable __function__)) (vl-partselect-case x :none (vl-partselect-fix x) :range (vl-range->partselect (vl-range-update-subexprs x.range subexprs)) :plusminus (vl-plusminus->partselect (vl-plusminus-update-subexprs x.plusminus subexprs)))))
Theorem:
(defthm vl-partselect-p-of-vl-partselect-update-subexprs (b* ((new-x (vl-partselect-update-subexprs x subexprs))) (vl-partselect-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-partselect-update-subexprs-identity (equal (vl-partselect-update-subexprs x (vl-partselect->subexprs x)) (vl-partselect-fix x)))
Theorem:
(defthm vl-partselect-update-subexprs-identity2 (implies (equal (len y) (len (vl-partselect->subexprs x))) (equal (vl-partselect->subexprs (vl-partselect-update-subexprs x y)) (vl-exprlist-fix y))))
Theorem:
(defthm vl-partselect-update-subexprs-of-vl-partselect-fix-x (equal (vl-partselect-update-subexprs (vl-partselect-fix x) subexprs) (vl-partselect-update-subexprs x subexprs)))
Theorem:
(defthm vl-partselect-update-subexprs-vl-partselect-equiv-congruence-on-x (implies (vl-partselect-equiv x x-equiv) (equal (vl-partselect-update-subexprs x subexprs) (vl-partselect-update-subexprs x-equiv subexprs))) :rule-classes :congruence)
Theorem:
(defthm vl-partselect-update-subexprs-of-vl-exprlist-fix-subexprs (equal (vl-partselect-update-subexprs x (vl-exprlist-fix subexprs)) (vl-partselect-update-subexprs x subexprs)))
Theorem:
(defthm vl-partselect-update-subexprs-vl-exprlist-equiv-congruence-on-subexprs (implies (vl-exprlist-equiv subexprs subexprs-equiv) (equal (vl-partselect-update-subexprs x subexprs) (vl-partselect-update-subexprs x subexprs-equiv))) :rule-classes :congruence)