• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
      • Io
      • Defttag
      • Sys-call
      • Save-exec
      • Quicklisp
      • Std/io
      • Oslib
        • File-types
        • Argv
        • Copy
        • Catpath
        • Ls
        • Universal-time
        • Tempfile
        • Basename
        • Dirname
        • Copy!
        • Ls-files
        • Mkdir
        • Rmtree
        • Lisp-version
        • Lisp-type
        • Ls-subdirs
        • Date
        • Getpid
        • Dirnames
        • Basenames
        • Basename!
        • Ls-subdirs!
        • Ls-files!
        • Dirname!
        • Ls!
        • Catpaths
          • Mkdir!
          • Rmtree!
          • Remove-nonstrings
        • Bridge
        • Clex
        • Tshell
        • Unsound-eval
        • Hacker
        • ACL2s-interface
        • Startup-banner
        • Command-line
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Oslib

    Catpaths

    Extend a base directory with many file names.

    Signature
    (catpaths basedir filenames) → paths
    Arguments
    basedir — Directory whose name should be extended, which may or may not end with a slash.
        Guard (stringp basedir).
    filenames — Names of files to append to basedir.
        Guard (string-listp filenames).
    Returns
    paths — Extended paths.
        Type (string-listp paths).

    Definitions and Theorems

    Function: catpaths

    (defun catpaths (basedir filenames)
      (declare (xargs :guard (and (stringp basedir)
                                  (string-listp filenames))))
      (let ((__function__ 'catpaths))
        (declare (ignorable __function__))
        (if (atom filenames)
            nil
          (cons (catpath basedir (car filenames))
                (catpaths basedir (cdr filenames))))))

    Theorem: string-listp-of-catpaths

    (defthm string-listp-of-catpaths
      (b* ((paths (catpaths basedir filenames)))
        (string-listp paths))
      :rule-classes :rewrite)