• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • 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
                • File-at-path
                • Filedata
                • Fileset-paths
                • Filepath-filedata-map
                  • Filepath-filedata-map-fix
                  • Filepath-filedata-mapp
                    • Filepath-filedata-map-equiv
                  • Irr-fileset
                • Grammar-character-p
                • Keywords
                • Grammar-character-listp
                • File-paths
              • Ascii-identifiers
              • Unambiguity
              • 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-filedata-map

    Filepath-filedata-mapp

    Recognizer for filepath-filedata-map.

    Signature
    (filepath-filedata-mapp x) → *

    Definitions and Theorems

    Function: filepath-filedata-mapp

    (defun filepath-filedata-mapp (x)
      (declare (xargs :guard t))
      (if (atom x)
          (null x)
        (and (consp (car x))
             (filepathp (caar x))
             (filedatap (cdar x))
             (or (null (cdr x))
                 (and (consp (cdr x))
                      (consp (cadr x))
                      (acl2::fast-<< (caar x) (caadr x))
                      (filepath-filedata-mapp (cdr x)))))))

    Theorem: booleanp-of-filepath-filedata-mapp

    (defthm booleanp-of-filepath-filedata-mapp
      (booleanp (filepath-filedata-mapp x)))

    Theorem: mapp-when-filepath-filedata-mapp

    (defthm mapp-when-filepath-filedata-mapp
      (implies (filepath-filedata-mapp x)
               (omap::mapp x))
      :rule-classes (:rewrite :forward-chaining))

    Theorem: filepath-filedata-mapp-of-tail

    (defthm filepath-filedata-mapp-of-tail
      (implies (filepath-filedata-mapp x)
               (filepath-filedata-mapp (omap::tail x))))

    Theorem: filepathp-of-head-key-when-filepath-filedata-mapp

    (defthm filepathp-of-head-key-when-filepath-filedata-mapp
      (implies (and (filepath-filedata-mapp x)
                    (not (omap::emptyp x)))
               (filepathp (mv-nth 0 (omap::head x)))))

    Theorem: filedatap-of-head-val-when-filepath-filedata-mapp

    (defthm filedatap-of-head-val-when-filepath-filedata-mapp
      (implies (and (filepath-filedata-mapp x)
                    (not (omap::emptyp x)))
               (filedatap (mv-nth 1 (omap::head x)))))

    Theorem: filepath-filedata-mapp-of-update

    (defthm filepath-filedata-mapp-of-update
      (implies (and (filepath-filedata-mapp x)
                    (filepathp k)
                    (filedatap v))
               (filepath-filedata-mapp (omap::update k v x))))

    Theorem: filepath-filedata-mapp-of-update*

    (defthm filepath-filedata-mapp-of-update*
      (implies (and (filepath-filedata-mapp x)
                    (filepath-filedata-mapp y))
               (filepath-filedata-mapp (omap::update* x y))))

    Theorem: filepath-filedata-mapp-of-delete

    (defthm filepath-filedata-mapp-of-delete
      (implies (filepath-filedata-mapp x)
               (filepath-filedata-mapp (omap::delete k x))))

    Theorem: filepath-filedata-mapp-of-delete*

    (defthm filepath-filedata-mapp-of-delete*
      (implies (filepath-filedata-mapp x)
               (filepath-filedata-mapp (omap::delete* k x))))

    Theorem: filepathp-when-assoc-filepath-filedata-mapp-binds-free-x

    (defthm filepathp-when-assoc-filepath-filedata-mapp-binds-free-x
      (implies (and (omap::assoc k x)
                    (filepath-filedata-mapp x))
               (filepathp k)))

    Theorem: filepathp-of-car-of-assoc-filepath-filedata-mapp

    (defthm filepathp-of-car-of-assoc-filepath-filedata-mapp
      (implies (and (filepath-filedata-mapp x)
                    (omap::assoc k x))
               (filepathp (car (omap::assoc k x)))))

    Theorem: filedatap-of-cdr-of-assoc-filepath-filedata-mapp

    (defthm filedatap-of-cdr-of-assoc-filepath-filedata-mapp
      (implies (and (filepath-filedata-mapp x)
                    (omap::assoc k x))
               (filedatap (cdr (omap::assoc k x)))))

    Theorem: filedatap-of-lookup-when-filepath-filedata-mapp

    (defthm filedatap-of-lookup-when-filepath-filedata-mapp
      (implies (and (filepath-filedata-mapp x)
                    (omap::assoc k x))
               (filedatap (omap::lookup k x))))