(vl-modulelist-original-sources x filemap) maps vl-module-original-source across a list.
(vl-modulelist-original-sources x filemap) → *
This is an ordinary defprojection.
Function:
(defun vl-modulelist-original-sources-exec (x filemap acc) (declare (xargs :guard (and (vl-modulelist-p x) (vl-filemap-p filemap)))) (let ((__function__ 'vl-modulelist-original-sources-exec)) (declare (ignorable __function__)) (if (consp x) (vl-modulelist-original-sources-exec (cdr x) filemap (cons (vl-module-original-source (car x) filemap) acc)) acc)))
Function:
(defun vl-modulelist-original-sources-nrev (x filemap nrev) (declare (xargs :stobjs (nrev))) (declare (xargs :guard (and (vl-modulelist-p x) (vl-filemap-p filemap)))) (let ((__function__ 'vl-modulelist-original-sources-nrev)) (declare (ignorable __function__)) (if (atom x) (nrev-fix nrev) (let ((nrev (nrev-push (vl-module-original-source (car x) filemap) nrev))) (vl-modulelist-original-sources-nrev (cdr x) filemap nrev)))))
Function:
(defun vl-modulelist-original-sources (x filemap) (declare (xargs :guard (and (vl-modulelist-p x) (vl-filemap-p filemap)))) (let ((__function__ 'vl-modulelist-original-sources)) (declare (ignorable __function__)) (mbe :logic (if (consp x) (cons (vl-module-original-source (car x) filemap) (vl-modulelist-original-sources (cdr x) filemap)) nil) :exec (if (atom x) nil (with-local-nrev (vl-modulelist-original-sources-nrev x filemap nrev))))))
Theorem:
(defthm vl-modulelist-original-sources-of-update-nth (implies (<= (nfix acl2::n) (len acl2::x)) (equal (vl-modulelist-original-sources (update-nth acl2::n acl2::v acl2::x) filemap) (update-nth acl2::n (vl-module-original-source acl2::v filemap) (vl-modulelist-original-sources acl2::x filemap)))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-modulelist-original-sources-of-revappend (equal (vl-modulelist-original-sources (revappend acl2::x acl2::y) filemap) (revappend (vl-modulelist-original-sources acl2::x filemap) (vl-modulelist-original-sources acl2::y filemap))) :rule-classes ((:rewrite)))
Theorem:
(defthm nthcdr-of-vl-modulelist-original-sources (equal (nthcdr acl2::n (vl-modulelist-original-sources acl2::x filemap)) (vl-modulelist-original-sources (nthcdr acl2::n acl2::x) filemap)) :rule-classes ((:rewrite)))
Theorem:
(defthm nth-of-vl-modulelist-original-sources (equal (nth acl2::n (vl-modulelist-original-sources acl2::x filemap)) (and (< (nfix acl2::n) (len acl2::x)) (vl-module-original-source (nth acl2::n acl2::x) filemap))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-modulelist-original-sources-nrev-removal (equal (vl-modulelist-original-sources-nrev acl2::x filemap nrev) (append nrev (vl-modulelist-original-sources acl2::x filemap))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-modulelist-original-sources-exec-removal (equal (vl-modulelist-original-sources-exec acl2::x filemap acl2::acc) (revappend (vl-modulelist-original-sources acl2::x filemap) acl2::acc)) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-modulelist-original-sources-of-take (implies (<= (nfix acl2::n) (len acl2::x)) (equal (vl-modulelist-original-sources (take acl2::n acl2::x) filemap) (take acl2::n (vl-modulelist-original-sources acl2::x filemap)))) :rule-classes ((:rewrite)))
Theorem:
(defthm set-equiv-congruence-over-vl-modulelist-original-sources (implies (set-equiv acl2::x acl2::y) (set-equiv (vl-modulelist-original-sources acl2::x filemap) (vl-modulelist-original-sources acl2::y filemap))) :rule-classes ((:congruence)))
Theorem:
(defthm subsetp-of-vl-modulelist-original-sources-when-subsetp (implies (subsetp acl2::x acl2::y) (subsetp (vl-modulelist-original-sources acl2::x filemap) (vl-modulelist-original-sources acl2::y filemap))) :rule-classes ((:rewrite)))
Theorem:
(defthm member-of-vl-module-original-source-in-vl-modulelist-original-sources (implies (member acl2::k acl2::x) (member (vl-module-original-source acl2::k filemap) (vl-modulelist-original-sources acl2::x filemap))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-modulelist-original-sources-of-rev (equal (vl-modulelist-original-sources (rev acl2::x) filemap) (rev (vl-modulelist-original-sources acl2::x filemap))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-modulelist-original-sources-of-list-fix (equal (vl-modulelist-original-sources (list-fix acl2::x) filemap) (vl-modulelist-original-sources acl2::x filemap)) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-modulelist-original-sources-of-append (equal (vl-modulelist-original-sources (append acl2::a acl2::b) filemap) (append (vl-modulelist-original-sources acl2::a filemap) (vl-modulelist-original-sources acl2::b filemap))) :rule-classes ((:rewrite)))
Theorem:
(defthm cdr-of-vl-modulelist-original-sources (equal (cdr (vl-modulelist-original-sources acl2::x filemap)) (vl-modulelist-original-sources (cdr acl2::x) filemap)) :rule-classes ((:rewrite)))
Theorem:
(defthm car-of-vl-modulelist-original-sources (equal (car (vl-modulelist-original-sources acl2::x filemap)) (and (consp acl2::x) (vl-module-original-source (car acl2::x) filemap))) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-modulelist-original-sources-under-iff (iff (vl-modulelist-original-sources acl2::x filemap) (consp acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm consp-of-vl-modulelist-original-sources (equal (consp (vl-modulelist-original-sources acl2::x filemap)) (consp acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm len-of-vl-modulelist-original-sources (equal (len (vl-modulelist-original-sources acl2::x filemap)) (len acl2::x)) :rule-classes ((:rewrite)))
Theorem:
(defthm true-listp-of-vl-modulelist-original-sources (true-listp (vl-modulelist-original-sources acl2::x filemap)) :rule-classes :type-prescription)
Theorem:
(defthm vl-modulelist-original-sources-when-not-consp (implies (not (consp acl2::x)) (equal (vl-modulelist-original-sources acl2::x filemap) nil)) :rule-classes ((:rewrite)))
Theorem:
(defthm vl-modulelist-original-sources-of-cons (equal (vl-modulelist-original-sources (cons acl2::a acl2::b) filemap) (cons (vl-module-original-source acl2::a filemap) (vl-modulelist-original-sources acl2::b filemap))) :rule-classes ((:rewrite)))
Theorem:
(defthm string-listp-of-vl-modulelist-original-sources (string-listp (vl-modulelist-original-sources x filemap)))