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