• 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-fix
                  • Filepath-equiv
                  • Filepathp
                    • Make-filepath
                    • Filepath->unwrap
                    • Change-filepath
                  • Filepath-set
              • 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

    Filepathp

    Recognizer for filepath structures.

    Signature
    (filepathp x) → *

    Definitions and Theorems

    Function: filepathp

    (defun filepathp (x)
      (declare (xargs :guard t))
      (let ((__function__ 'filepathp))
        (declare (ignorable __function__))
        (and (mbe :logic (and (alistp x)
                              (equal (strip-cars x) '(unwrap)))
                  :exec (fty::alist-with-carsp x '(unwrap)))
             (b* ((unwrap (cdr (std::da-nth 0 x))))
               (acl2::any-p unwrap)))))

    Theorem: consp-when-filepathp

    (defthm consp-when-filepathp
      (implies (filepathp x) (consp x))
      :rule-classes :compound-recognizer)