Filtering...

apply-terms-same-args

books/std/system/apply-terms-same-args

Included Books

other
(in-package "ACL2")
include-book
(include-book "apply-term")
include-book
(include-book "pseudo-termfn-listp")
other
(define apply-terms-same-args
  ((fns pseudo-termfn-listp) (args pseudo-term-listp))
  :returns (terms "A @(tsee pseudo-term-listp).")
  :verify-guards nil
  :parents (std/system/term-transformations)
  :short "Apply each function symbol or lambda expression of a list
          to the same list of pseudo-term arguments,
          obtaining a list of corresponding function applications."
  :long (topstring-p "This utility lifts @(tsee apply-term)
    from a single function to a list of functions.")
  (if (endp fns)
    nil
    (cons (apply-term (car fns) args)
      (apply-terms-same-args (cdr fns) args))))