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