Gather all top-level expressions from a vl-paramdecllist-p.
(vl-paramdecllist-allexprs x) → exprs
Function:
(defun vl-paramdecllist-allexprs (x) (declare (xargs :guard (vl-paramdecllist-p x))) (let ((__function__ 'vl-paramdecllist-allexprs)) (declare (ignorable __function__)) (mbe :logic (if (atom x) nil (append (vl-paramdecl-allexprs (car x)) (vl-paramdecllist-allexprs (cdr x)))) :exec (with-local-nrev (vl-paramdecllist-allexprs-nrev x nrev)))))
Theorem:
(defthm vl-exprlist-p-of-vl-paramdecllist-allexprs (b* ((exprs (vl-paramdecllist-allexprs x))) (vl-exprlist-p exprs)) :rule-classes :rewrite)
Theorem:
(defthm true-listp-of-vl-paramdecllist-allexprs (true-listp (vl-paramdecllist-allexprs x)) :rule-classes :type-prescription)
Theorem:
(defthm vl-paramdecllist-allexprs-nrev-removal (equal (vl-paramdecllist-allexprs-nrev x nrev) (append nrev (vl-paramdecllist-allexprs x))))
Theorem:
(defthm set-equiv-congruence-over-vl-paramdecllist-allexprs (implies (set-equiv acl2::x acl2::y) (set-equiv (vl-paramdecllist-allexprs acl2::x) (vl-paramdecllist-allexprs acl2::y))) :rule-classes ((:congruence)))
Theorem:
(defthm subsetp-of-vl-paramdecllist-allexprs-when-subsetp (implies (subsetp acl2::x acl2::y) (subsetp (vl-paramdecllist-allexprs acl2::x) (vl-paramdecllist-allexprs acl2::y))) :rule-classes ((:rewrite)))
Theorem:
(defthm member-in-vl-paramdecllist-allexprs (implies (and (member acl2::k (vl-paramdecl-allexprs acl2::j)) (member acl2::j acl2::x)) (member acl2::k (vl-paramdecllist-allexprs acl2::x))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-paramdecllist-allexprs-of-list-fix (equal (vl-paramdecllist-allexprs (list-fix acl2::x)) (vl-paramdecllist-allexprs acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-paramdecllist-allexprs-of-append (equal (vl-paramdecllist-allexprs (append acl2::a acl2::b)) (append (vl-paramdecllist-allexprs acl2::a) (vl-paramdecllist-allexprs acl2::b))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-paramdecllist-allexprs-when-not-consp (implies (not (consp acl2::x)) (equal (vl-paramdecllist-allexprs acl2::x) nil)) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-paramdecllist-allexprs-of-cons (equal (vl-paramdecllist-allexprs (cons acl2::a acl2::b)) (append (vl-paramdecl-allexprs acl2::a) (vl-paramdecllist-allexprs acl2::b))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-paramdecllist-allexprs-of-vl-paramdecllist-fix-x (equal (vl-paramdecllist-allexprs (vl-paramdecllist-fix x)) (vl-paramdecllist-allexprs x)))
Theorem:
(defthm vl-paramdecllist-allexprs-vl-paramdecllist-equiv-congruence-on-x (implies (vl-paramdecllist-equiv x x-equiv) (equal (vl-paramdecllist-allexprs x) (vl-paramdecllist-allexprs x-equiv))) :rule-classes :congruence)