(vl-assignpat-update-subexprs x subexprs) → new-x
Function:
(defun vl-assignpat-update-subexprs (x subexprs) (declare (xargs :guard (and (vl-assignpat-p x) (vl-exprlist-p subexprs)))) (declare (xargs :guard (equal (len subexprs) (len (vl-assignpat->subexprs x))))) (let ((__function__ 'vl-assignpat-update-subexprs)) (declare (ignorable __function__)) (b* ((subexprs (vl-exprlist-fix subexprs))) (vl-assignpat-case x :positional (change-vl-assignpat-positional x :vals subexprs) :keyval (change-vl-assignpat-keyval x :pairs (vl-keyvallist-update-subexprs x.pairs subexprs)) :repeat (change-vl-assignpat-repeat x :reps (car subexprs) :vals (cdr subexprs))))))
Theorem:
(defthm vl-assignpat-p-of-vl-assignpat-update-subexprs (b* ((new-x (vl-assignpat-update-subexprs x subexprs))) (vl-assignpat-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-assignpat-update-subexprs-identity (equal (vl-assignpat-update-subexprs x (vl-assignpat->subexprs x)) (vl-assignpat-fix x)))
Theorem:
(defthm vl-assignpat-update-subexprs-identity2 (implies (equal (len y) (len (vl-assignpat->subexprs x))) (equal (vl-assignpat->subexprs (vl-assignpat-update-subexprs x y)) (vl-exprlist-fix y))))
Theorem:
(defthm vl-assignpat-update-subexprs-of-vl-assignpat-fix-x (equal (vl-assignpat-update-subexprs (vl-assignpat-fix x) subexprs) (vl-assignpat-update-subexprs x subexprs)))
Theorem:
(defthm vl-assignpat-update-subexprs-vl-assignpat-equiv-congruence-on-x (implies (vl-assignpat-equiv x x-equiv) (equal (vl-assignpat-update-subexprs x subexprs) (vl-assignpat-update-subexprs x-equiv subexprs))) :rule-classes :congruence)
Theorem:
(defthm vl-assignpat-update-subexprs-of-vl-exprlist-fix-subexprs (equal (vl-assignpat-update-subexprs x (vl-exprlist-fix subexprs)) (vl-assignpat-update-subexprs x subexprs)))
Theorem:
(defthm vl-assignpat-update-subexprs-vl-exprlist-equiv-congruence-on-subexprs (implies (vl-exprlist-equiv subexprs subexprs-equiv) (equal (vl-assignpat-update-subexprs x subexprs) (vl-assignpat-update-subexprs x subexprs-equiv))) :rule-classes :congruence)