Core routine behind vl-expr-clean-selects.
(vl-expr-clean-selects1 x ss) → new-x
Theorem:
(defthm return-type-of-vl-expr-clean-selects1.new-x (b* ((?new-x (vl-expr-clean-selects1 x ss))) (vl-expr-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm return-type-of-vl-exprlist-clean-selects1.new-x (b* ((?new-x (vl-exprlist-clean-selects1 x ss))) (and (vl-exprlist-p new-x) (equal (len new-x) (len x)))) :rule-classes :rewrite)
Theorem:
(defthm vl-exprlist-clean-selects1-of-update-nth (implies (<= (nfix acl2::n) (len acl2::x)) (equal (vl-exprlist-clean-selects1 (update-nth acl2::n acl2::v acl2::x) ss) (update-nth acl2::n (vl-expr-clean-selects1 acl2::v ss) (vl-exprlist-clean-selects1 acl2::x ss)))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-exprlist-clean-selects1-of-revappend (equal (vl-exprlist-clean-selects1 (revappend acl2::x acl2::y) ss) (revappend (vl-exprlist-clean-selects1 acl2::x ss) (vl-exprlist-clean-selects1 acl2::y ss))) :rule-classes ((:rewrite)))
Theorem:
(defthm nthcdr-of-vl-exprlist-clean-selects1 (equal (nthcdr acl2::n (vl-exprlist-clean-selects1 acl2::x ss)) (vl-exprlist-clean-selects1 (nthcdr acl2::n acl2::x) ss)) :rule-classes ((:rewrite)))
Theorem:
(defthm nth-of-vl-exprlist-clean-selects1 (equal (nth acl2::n (vl-exprlist-clean-selects1 acl2::x ss)) (and (< (nfix acl2::n) (len acl2::x)) (vl-expr-clean-selects1 (nth acl2::n acl2::x) ss))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-exprlist-clean-selects1-of-take (implies (<= (nfix acl2::n) (len acl2::x)) (equal (vl-exprlist-clean-selects1 (take acl2::n acl2::x) ss) (take acl2::n (vl-exprlist-clean-selects1 acl2::x ss)))) :rule-classes ((:rewrite)))
Theorem:
(defthm set-equiv-congruence-over-vl-exprlist-clean-selects1 (implies (set-equiv acl2::x acl2::y) (set-equiv (vl-exprlist-clean-selects1 acl2::x ss) (vl-exprlist-clean-selects1 acl2::y ss))) :rule-classes ((:congruence)))
Theorem:
(defthm subsetp-of-vl-exprlist-clean-selects1-when-subsetp (implies (subsetp acl2::x acl2::y) (subsetp (vl-exprlist-clean-selects1 acl2::x ss) (vl-exprlist-clean-selects1 acl2::y ss))) :rule-classes ((:rewrite)))
Theorem:
(defthm member-of-vl-expr-clean-selects1-in-vl-exprlist-clean-selects1 (implies (member acl2::k acl2::x) (member (vl-expr-clean-selects1 acl2::k ss) (vl-exprlist-clean-selects1 acl2::x ss))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-exprlist-clean-selects1-of-rev (equal (vl-exprlist-clean-selects1 (rev acl2::x) ss) (rev (vl-exprlist-clean-selects1 acl2::x ss))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-exprlist-clean-selects1-of-list-fix (equal (vl-exprlist-clean-selects1 (list-fix acl2::x) ss) (vl-exprlist-clean-selects1 acl2::x ss)) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-exprlist-clean-selects1-of-append (equal (vl-exprlist-clean-selects1 (append acl2::a acl2::b) ss) (append (vl-exprlist-clean-selects1 acl2::a ss) (vl-exprlist-clean-selects1 acl2::b ss))) :rule-classes ((:rewrite)))
Theorem:
(defthm cdr-of-vl-exprlist-clean-selects1 (equal (cdr (vl-exprlist-clean-selects1 acl2::x ss)) (vl-exprlist-clean-selects1 (cdr acl2::x) ss)) :rule-classes ((:rewrite)))
Theorem:
(defthm car-of-vl-exprlist-clean-selects1 (equal (car (vl-exprlist-clean-selects1 acl2::x ss)) (and (consp acl2::x) (vl-expr-clean-selects1 (car acl2::x) ss))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-exprlist-clean-selects1-under-iff (iff (vl-exprlist-clean-selects1 acl2::x ss) (consp acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm consp-of-vl-exprlist-clean-selects1 (equal (consp (vl-exprlist-clean-selects1 acl2::x ss)) (consp acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm len-of-vl-exprlist-clean-selects1 (equal (len (vl-exprlist-clean-selects1 acl2::x ss)) (len acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm true-listp-of-vl-exprlist-clean-selects1 (true-listp (vl-exprlist-clean-selects1 acl2::x ss)) :rule-classes :type-prescription)
Theorem:
(defthm vl-exprlist-clean-selects1-when-not-consp (implies (not (consp acl2::x)) (equal (vl-exprlist-clean-selects1 acl2::x ss) nil)) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-exprlist-clean-selects1-of-cons (equal (vl-exprlist-clean-selects1 (cons acl2::a acl2::b) ss) (cons (vl-expr-clean-selects1 acl2::a ss) (vl-exprlist-clean-selects1 acl2::b ss))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-expr-clean-selects1-of-vl-expr-fix-x (equal (vl-expr-clean-selects1 (vl-expr-fix x) ss) (vl-expr-clean-selects1 x ss)))
Theorem:
(defthm vl-expr-clean-selects1-of-vl-scopestack-fix-ss (equal (vl-expr-clean-selects1 x (vl-scopestack-fix ss)) (vl-expr-clean-selects1 x ss)))
Theorem:
(defthm vl-exprlist-clean-selects1-of-vl-exprlist-fix-x (equal (vl-exprlist-clean-selects1 (vl-exprlist-fix x) ss) (vl-exprlist-clean-selects1 x ss)))
Theorem:
(defthm vl-exprlist-clean-selects1-of-vl-scopestack-fix-ss (equal (vl-exprlist-clean-selects1 x (vl-scopestack-fix ss)) (vl-exprlist-clean-selects1 x ss)))
Theorem:
(defthm vl-expr-clean-selects1-vl-expr-equiv-congruence-on-x (implies (vl-expr-equiv x x-equiv) (equal (vl-expr-clean-selects1 x ss) (vl-expr-clean-selects1 x-equiv ss))) :rule-classes :congruence)
Theorem:
(defthm vl-expr-clean-selects1-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-expr-clean-selects1 x ss) (vl-expr-clean-selects1 x ss-equiv))) :rule-classes :congruence)
Theorem:
(defthm vl-exprlist-clean-selects1-vl-exprlist-equiv-congruence-on-x (implies (vl-exprlist-equiv x x-equiv) (equal (vl-exprlist-clean-selects1 x ss) (vl-exprlist-clean-selects1 x-equiv ss))) :rule-classes :congruence)
Theorem:
(defthm vl-exprlist-clean-selects1-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-exprlist-clean-selects1 x ss) (vl-exprlist-clean-selects1 x ss-equiv))) :rule-classes :congruence)