Expands all of the names in a list of STV :input or :output lines.
(stv-expand-names-in-lines lines type mod) → new-lines
Function:
(defun stv-expand-names-in-lines (lines type mod) (declare (xargs :guard (and (true-list-listp lines) (or (eq type :i) (eq type :o))))) (let ((__function__ 'stv-expand-names-in-lines)) (declare (ignorable __function__)) (b* (((when (atom lines)) nil) (line1 (car lines)) ((cons name phases) line1) (new-name (stv-expand-name name type mod))) (cons (cons new-name phases) (stv-expand-names-in-lines (cdr lines) type mod)))))
Theorem:
(defthm alistp-of-stv-expand-names-in-lines (alistp (stv-expand-names-in-lines lines type mod)))
Theorem:
(defthm true-list-listp-of-stv-expand-names-in-lines (implies (true-list-listp lines) (true-list-listp (stv-expand-names-in-lines lines type mod))))