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