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