(vl-assignlist-scopesubst x ss) maps vl-assign-scopesubst across a list.
(vl-assignlist-scopesubst x ss) → new-x
This is an ordinary defprojection.
Function:
(defun vl-assignlist-scopesubst-exec (x ss acc) (declare (xargs :guard (and (vl-assignlist-p x) (vl-scopestack-p ss)))) (declare (xargs :guard t)) (let ((__function__ 'vl-assignlist-scopesubst-exec)) (declare (ignorable __function__)) (if (consp x) (vl-assignlist-scopesubst-exec (cdr x) ss (cons (vl-assign-scopesubst (car x) ss) acc)) acc)))
Function:
(defun vl-assignlist-scopesubst-nrev (x ss nrev) (declare (xargs :stobjs (nrev))) (declare (xargs :guard (and (vl-assignlist-p x) (vl-scopestack-p ss)))) (declare (xargs :guard t)) (let ((__function__ 'vl-assignlist-scopesubst-nrev)) (declare (ignorable __function__)) (if (atom x) (nrev-fix nrev) (let ((nrev (nrev-push (vl-assign-scopesubst (car x) ss) nrev))) (vl-assignlist-scopesubst-nrev (cdr x) ss nrev)))))
Function:
(defun vl-assignlist-scopesubst (x ss) (declare (xargs :guard (and (vl-assignlist-p x) (vl-scopestack-p ss)))) (declare (xargs :guard t)) (let ((__function__ 'vl-assignlist-scopesubst)) (declare (ignorable __function__)) (mbe :logic (if (consp x) (cons (vl-assign-scopesubst (car x) ss) (vl-assignlist-scopesubst (cdr x) ss)) nil) :exec (if (atom x) nil (with-local-nrev (vl-assignlist-scopesubst-nrev x ss nrev))))))
Theorem:
(defthm vl-assignlist-p-of-vl-assignlist-scopesubst (b* ((new-x (vl-assignlist-scopesubst x ss))) (vl-assignlist-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-assignlist-scopesubst-of-vl-assignlist-fix-x (equal (vl-assignlist-scopesubst (vl-assignlist-fix x) ss) (vl-assignlist-scopesubst x ss)))
Theorem:
(defthm vl-assignlist-scopesubst-vl-assignlist-equiv-congruence-on-x (implies (vl-assignlist-equiv x x-equiv) (equal (vl-assignlist-scopesubst x ss) (vl-assignlist-scopesubst x-equiv ss))) :rule-classes :congruence)
Theorem:
(defthm vl-assignlist-scopesubst-of-vl-scopestack-fix-ss (equal (vl-assignlist-scopesubst x (vl-scopestack-fix ss)) (vl-assignlist-scopesubst x ss)))
Theorem:
(defthm vl-assignlist-scopesubst-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-assignlist-scopesubst x ss) (vl-assignlist-scopesubst x ss-equiv))) :rule-classes :congruence)
Theorem:
(defthm vl-assignlist-scopesubst-of-update-nth (implies (<= (nfix acl2::n) (len acl2::x)) (equal (vl-assignlist-scopesubst (update-nth acl2::n acl2::v acl2::x) ss) (update-nth acl2::n (vl-assign-scopesubst acl2::v ss) (vl-assignlist-scopesubst acl2::x ss)))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-assignlist-scopesubst-of-revappend (equal (vl-assignlist-scopesubst (revappend acl2::x acl2::y) ss) (revappend (vl-assignlist-scopesubst acl2::x ss) (vl-assignlist-scopesubst acl2::y ss))) :rule-classes ((:rewrite)))
Theorem:
(defthm nthcdr-of-vl-assignlist-scopesubst (equal (nthcdr acl2::n (vl-assignlist-scopesubst acl2::x ss)) (vl-assignlist-scopesubst (nthcdr acl2::n acl2::x) ss)) :rule-classes ((:rewrite)))
Theorem:
(defthm nth-of-vl-assignlist-scopesubst (equal (nth acl2::n (vl-assignlist-scopesubst acl2::x ss)) (and (< (nfix acl2::n) (len acl2::x)) (vl-assign-scopesubst (nth acl2::n acl2::x) ss))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-assignlist-scopesubst-nrev-removal (equal (vl-assignlist-scopesubst-nrev acl2::x ss nrev) (append nrev (vl-assignlist-scopesubst acl2::x ss))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-assignlist-scopesubst-exec-removal (equal (vl-assignlist-scopesubst-exec acl2::x ss acl2::acc) (revappend (vl-assignlist-scopesubst acl2::x ss) acl2::acc)) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-assignlist-scopesubst-of-take (implies (<= (nfix acl2::n) (len acl2::x)) (equal (vl-assignlist-scopesubst (take acl2::n acl2::x) ss) (take acl2::n (vl-assignlist-scopesubst acl2::x ss)))) :rule-classes ((:rewrite)))
Theorem:
(defthm set-equiv-congruence-over-vl-assignlist-scopesubst (implies (set-equiv acl2::x acl2::y) (set-equiv (vl-assignlist-scopesubst acl2::x ss) (vl-assignlist-scopesubst acl2::y ss))) :rule-classes ((:congruence)))
Theorem:
(defthm subsetp-of-vl-assignlist-scopesubst-when-subsetp (implies (subsetp acl2::x acl2::y) (subsetp (vl-assignlist-scopesubst acl2::x ss) (vl-assignlist-scopesubst acl2::y ss))) :rule-classes ((:rewrite)))
Theorem:
(defthm member-of-vl-assign-scopesubst-in-vl-assignlist-scopesubst (implies (member acl2::k acl2::x) (member (vl-assign-scopesubst acl2::k ss) (vl-assignlist-scopesubst acl2::x ss))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-assignlist-scopesubst-of-rev (equal (vl-assignlist-scopesubst (rev acl2::x) ss) (rev (vl-assignlist-scopesubst acl2::x ss))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-assignlist-scopesubst-of-list-fix (equal (vl-assignlist-scopesubst (list-fix acl2::x) ss) (vl-assignlist-scopesubst acl2::x ss)) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-assignlist-scopesubst-of-append (equal (vl-assignlist-scopesubst (append acl2::a acl2::b) ss) (append (vl-assignlist-scopesubst acl2::a ss) (vl-assignlist-scopesubst acl2::b ss))) :rule-classes ((:rewrite)))
Theorem:
(defthm cdr-of-vl-assignlist-scopesubst (equal (cdr (vl-assignlist-scopesubst acl2::x ss)) (vl-assignlist-scopesubst (cdr acl2::x) ss)) :rule-classes ((:rewrite)))
Theorem:
(defthm car-of-vl-assignlist-scopesubst (equal (car (vl-assignlist-scopesubst acl2::x ss)) (and (consp acl2::x) (vl-assign-scopesubst (car acl2::x) ss))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-assignlist-scopesubst-under-iff (iff (vl-assignlist-scopesubst acl2::x ss) (consp acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm consp-of-vl-assignlist-scopesubst (equal (consp (vl-assignlist-scopesubst acl2::x ss)) (consp acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm len-of-vl-assignlist-scopesubst (equal (len (vl-assignlist-scopesubst acl2::x ss)) (len acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm true-listp-of-vl-assignlist-scopesubst (true-listp (vl-assignlist-scopesubst acl2::x ss)) :rule-classes :type-prescription)
Theorem:
(defthm vl-assignlist-scopesubst-when-not-consp (implies (not (consp acl2::x)) (equal (vl-assignlist-scopesubst acl2::x ss) nil)) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-assignlist-scopesubst-of-cons (equal (vl-assignlist-scopesubst (cons acl2::a acl2::b) ss) (cons (vl-assign-scopesubst acl2::a ss) (vl-assignlist-scopesubst acl2::b ss))) :rule-classes ((:rewrite)))