• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
        • C
          • Syntax-for-tools
            • Disambiguator
            • Abstract-syntax
            • Parser
            • Validator
            • Printer
            • Formalized-subset
            • Mapping-to-language-definition
            • Input-files
            • Defpred
            • Output-files
            • Abstract-syntax-operations
            • Validation-information
            • Implementation-environments
            • Concrete-syntax
              • Grammar
              • Files
              • Grammar-character-p
              • Keywords
              • Grammar-character-listp
              • File-paths
                • Filepath-option
                • Filepath
                • Filepath-set
                  • Filepath-set-fix
                  • Filepath-setp
                    • Filepath-set-equiv
              • Unambiguity
              • Ascii-identifiers
              • Preprocessing
              • Abstraction-mapping
            • Atc
            • Language
            • Representation
            • Transformation-tools
            • Insertion-sort
            • Pack
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Filepath-set

    Filepath-setp

    Recognizer for filepath-set.

    Signature
    (filepath-setp x) → *

    Definitions and Theorems

    Function: filepath-setp

    (defun filepath-setp (x)
      (declare (xargs :guard t))
      (if (atom x)
          (null x)
        (and (filepathp (car x))
             (or (null (cdr x))
                 (and (consp (cdr x))
                      (acl2::fast-<< (car x) (cadr x))
                      (filepath-setp (cdr x)))))))

    Theorem: booleanp-offilepath-setp

    (defthm booleanp-offilepath-setp
      (booleanp (filepath-setp x)))

    Theorem: setp-when-filepath-setp

    (defthm setp-when-filepath-setp
      (implies (filepath-setp x) (setp x))
      :rule-classes (:rewrite))

    Theorem: filepathp-of-head-when-filepath-setp

    (defthm filepathp-of-head-when-filepath-setp
      (implies (filepath-setp x)
               (implies (not (emptyp x))
                        (filepathp (head x)))))

    Theorem: filepath-setp-of-tail-when-filepath-setp

    (defthm filepath-setp-of-tail-when-filepath-setp
      (implies (filepath-setp x)
               (filepath-setp (tail x))))

    Theorem: filepath-setp-of-insert

    (defthm filepath-setp-of-insert
      (equal (filepath-setp (insert a x))
             (and (filepathp a)
                  (filepath-setp (sfix x)))))

    Theorem: filepathp-when-in-filepath-setp-binds-free-x

    (defthm filepathp-when-in-filepath-setp-binds-free-x
      (implies (and (in a x) (filepath-setp x))
               (filepathp a)))

    Theorem: not-in-filepath-setp-when-not-filepathp

    (defthm not-in-filepath-setp-when-not-filepathp
      (implies (and (filepath-setp x)
                    (not (filepathp a)))
               (not (in a x))))

    Theorem: filepath-setp-of-union

    (defthm filepath-setp-of-union
      (equal (filepath-setp (union x y))
             (and (filepath-setp (sfix x))
                  (filepath-setp (sfix y)))))

    Theorem: filepath-setp-of-intersect

    (defthm filepath-setp-of-intersect
      (implies (and (filepath-setp x)
                    (filepath-setp y))
               (filepath-setp (intersect x y))))

    Theorem: filepath-setp-of-difference

    (defthm filepath-setp-of-difference
      (implies (filepath-setp x)
               (filepath-setp (difference x y))))

    Theorem: filepath-setp-of-delete

    (defthm filepath-setp-of-delete
      (implies (filepath-setp x)
               (filepath-setp (delete a x))))