(vl-assignlist-split x delta) → (mv new-x delta)
Function:
(defun vl-assignlist-split (x delta) (declare (xargs :guard (and (vl-assignlist-p x) (vl-delta-p delta)))) (let ((__function__ 'vl-assignlist-split)) (declare (ignorable __function__)) (b* (((when (atom x)) (mv nil delta)) ((mv car delta) (vl-assign-split (car x) delta)) ((mv cdr delta) (vl-assignlist-split (cdr x) delta))) (mv (cons car cdr) delta))))
Theorem:
(defthm vl-assignlist-p-of-vl-assignlist-split.new-x (implies (and (force (vl-assignlist-p x)) (force (vl-delta-p delta))) (b* (((mv ?new-x ?delta) (vl-assignlist-split x delta))) (vl-assignlist-p new-x))) :rule-classes :rewrite)
Theorem:
(defthm vl-delta-p-of-vl-assignlist-split.delta (implies (and (force (vl-assignlist-p x)) (force (vl-delta-p delta))) (b* (((mv ?new-x ?delta) (vl-assignlist-split x delta))) (vl-delta-p delta))) :rule-classes :rewrite)