Substitute into a vl-stmt-p
(vl-stmt-subst x sigma) → new-x
Theorem:
(defthm return-type-of-vl-stmt-subst.new-x (b* ((?new-x (vl-stmt-subst x sigma))) (vl-stmt-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm return-type-of-vl-stmtlist-subst.new-x (b* ((?new-x (vl-stmtlist-subst x sigma))) (and (vl-stmtlist-p new-x) (equal (len new-x) (len x)))) :rule-classes :rewrite)
Theorem:
(defthm vl-stmtlist-subst-of-update-nth (implies (<= (nfix acl2::n) (len acl2::x)) (equal (vl-stmtlist-subst (update-nth acl2::n acl2::v acl2::x) sigma) (update-nth acl2::n (vl-stmt-subst acl2::v sigma) (vl-stmtlist-subst acl2::x sigma)))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-stmtlist-subst-of-revappend (equal (vl-stmtlist-subst (revappend acl2::x acl2::y) sigma) (revappend (vl-stmtlist-subst acl2::x sigma) (vl-stmtlist-subst acl2::y sigma))) :rule-classes ((:rewrite)))
Theorem:
(defthm nthcdr-of-vl-stmtlist-subst (equal (nthcdr acl2::n (vl-stmtlist-subst acl2::x sigma)) (vl-stmtlist-subst (nthcdr acl2::n acl2::x) sigma)) :rule-classes ((:rewrite)))
Theorem:
(defthm nth-of-vl-stmtlist-subst (equal (nth acl2::n (vl-stmtlist-subst acl2::x sigma)) (and (< (nfix acl2::n) (len acl2::x)) (vl-stmt-subst (nth acl2::n acl2::x) sigma))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-stmtlist-subst-of-take (implies (<= (nfix acl2::n) (len acl2::x)) (equal (vl-stmtlist-subst (take acl2::n acl2::x) sigma) (take acl2::n (vl-stmtlist-subst acl2::x sigma)))) :rule-classes ((:rewrite)))
Theorem:
(defthm set-equiv-congruence-over-vl-stmtlist-subst (implies (set-equiv acl2::x acl2::y) (set-equiv (vl-stmtlist-subst acl2::x sigma) (vl-stmtlist-subst acl2::y sigma))) :rule-classes ((:congruence)))
Theorem:
(defthm subsetp-of-vl-stmtlist-subst-when-subsetp (implies (subsetp acl2::x acl2::y) (subsetp (vl-stmtlist-subst acl2::x sigma) (vl-stmtlist-subst acl2::y sigma))) :rule-classes ((:rewrite)))
Theorem:
(defthm member-of-vl-stmt-subst-in-vl-stmtlist-subst (implies (member acl2::k acl2::x) (member (vl-stmt-subst acl2::k sigma) (vl-stmtlist-subst acl2::x sigma))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-stmtlist-subst-of-rev (equal (vl-stmtlist-subst (rev acl2::x) sigma) (rev (vl-stmtlist-subst acl2::x sigma))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-stmtlist-subst-of-list-fix (equal (vl-stmtlist-subst (list-fix acl2::x) sigma) (vl-stmtlist-subst acl2::x sigma)) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-stmtlist-subst-of-append (equal (vl-stmtlist-subst (append acl2::a acl2::b) sigma) (append (vl-stmtlist-subst acl2::a sigma) (vl-stmtlist-subst acl2::b sigma))) :rule-classes ((:rewrite)))
Theorem:
(defthm cdr-of-vl-stmtlist-subst (equal (cdr (vl-stmtlist-subst acl2::x sigma)) (vl-stmtlist-subst (cdr acl2::x) sigma)) :rule-classes ((:rewrite)))
Theorem:
(defthm car-of-vl-stmtlist-subst (equal (car (vl-stmtlist-subst acl2::x sigma)) (and (consp acl2::x) (vl-stmt-subst (car acl2::x) sigma))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-stmtlist-subst-under-iff (iff (vl-stmtlist-subst acl2::x sigma) (consp acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm consp-of-vl-stmtlist-subst (equal (consp (vl-stmtlist-subst acl2::x sigma)) (consp acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm len-of-vl-stmtlist-subst (equal (len (vl-stmtlist-subst acl2::x sigma)) (len acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm true-listp-of-vl-stmtlist-subst (true-listp (vl-stmtlist-subst acl2::x sigma)) :rule-classes :type-prescription)
Theorem:
(defthm vl-stmtlist-subst-when-not-consp (implies (not (consp acl2::x)) (equal (vl-stmtlist-subst acl2::x sigma) nil)) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-stmtlist-subst-of-cons (equal (vl-stmtlist-subst (cons acl2::a acl2::b) sigma) (cons (vl-stmt-subst acl2::a sigma) (vl-stmtlist-subst acl2::b sigma))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-stmt-subst-of-vl-stmt-fix-x (equal (vl-stmt-subst (vl-stmt-fix x) sigma) (vl-stmt-subst x sigma)))
Theorem:
(defthm vl-stmt-subst-of-vl-sigma-fix-sigma (equal (vl-stmt-subst x (vl-sigma-fix sigma)) (vl-stmt-subst x sigma)))
Theorem:
(defthm vl-stmtlist-subst-of-vl-stmtlist-fix-x (equal (vl-stmtlist-subst (vl-stmtlist-fix x) sigma) (vl-stmtlist-subst x sigma)))
Theorem:
(defthm vl-stmtlist-subst-of-vl-sigma-fix-sigma (equal (vl-stmtlist-subst x (vl-sigma-fix sigma)) (vl-stmtlist-subst x sigma)))
Theorem:
(defthm vl-stmt-subst-vl-stmt-equiv-congruence-on-x (implies (vl-stmt-equiv x x-equiv) (equal (vl-stmt-subst x sigma) (vl-stmt-subst x-equiv sigma))) :rule-classes :congruence)
Theorem:
(defthm vl-stmt-subst-vl-sigma-equiv-congruence-on-sigma (implies (vl-sigma-equiv sigma sigma-equiv) (equal (vl-stmt-subst x sigma) (vl-stmt-subst x sigma-equiv))) :rule-classes :congruence)
Theorem:
(defthm vl-stmtlist-subst-vl-stmtlist-equiv-congruence-on-x (implies (vl-stmtlist-equiv x x-equiv) (equal (vl-stmtlist-subst x sigma) (vl-stmtlist-subst x-equiv sigma))) :rule-classes :congruence)
Theorem:
(defthm vl-stmtlist-subst-vl-sigma-equiv-congruence-on-sigma (implies (vl-sigma-equiv sigma sigma-equiv) (equal (vl-stmtlist-subst x sigma) (vl-stmtlist-subst x sigma-equiv))) :rule-classes :congruence)