• 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
                • Fileset
                  • Fileset-fix
                  • Fileset-equiv
                  • Make-fileset
                  • Fileset->unwrap
                  • Change-fileset
                  • Filesetp
                  • File-at-path
                  • Filedata
                  • Fileset-paths
                  • Filepath-filedata-map
                  • Irr-fileset
                • Grammar-character-p
                • Keywords
                • Grammar-character-listp
                • File-paths
              • 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
    • Fileset

    Filesetp

    Recognizer for fileset structures.

    Signature
    (filesetp x) → *

    Definitions and Theorems

    Function: filesetp

    (defun filesetp (x)
      (declare (xargs :guard t))
      (let ((__function__ 'filesetp))
        (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))))
               (filepath-filedata-mapp unwrap)))))

    Theorem: consp-when-filesetp

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