• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
        • C
          • Syntax-for-tools
            • Formalized-subset
            • Mapping-to-language-definition
            • Input-files
            • Compilation-database
            • Printer
            • Output-files
            • Abstract-syntax-operations
            • Implementation-environments
            • Abstract-syntax
              • Abstract-syntax-trees
                • Expr
                • Type-spec
                • Exprs/decls/stmts
                • Binop
                • Stmt
                • Unop
                • Amb-expr/tyname
                • Dirdeclor
                • Asm-stmt
                • Dec/oct/hex-const
                • Simple-escape
                • Fsuffix
                • Attrib
                • Ident
                • Amb-decl/stmt
                • Dirabsdeclor
                • Type-qual
                • Decl-spec
                • Fundef
                • Struct-declon
                • Asm-name-spec
                • Amb-declor/absdeclor
                • Struni-spec
                • Param-declor
                • Declor
                • Stor-spec
                • Transunit-ensemble
                • Initdeclor
                • Absdeclor
                • Tyname
                • Keyword-uscores
                • Label
                • Align-spec
                • Expr-option
                • Spec/qual
                • Lsuffix
                • Hex-frac-const
                • Desiniter
                • Param-declon
                • Iconst
                • Dirabsdeclor-option
                • Dec-frac-const
                • Dec-core-fconst
                • Comp-stmt
                • Extdecl
                • Const-expr-option
                • Amb?-declor/absdeclor
                • Isuffix
                • Hex-core-fconst
                • Attrib-spec
                • Struct-declor
                • Escape
                • Decl
                • Amb?-expr/tyname
                • Initer
                • Ident-option
                • Bin-expo
                • Absdeclor-option
                • Statassert
                • Member-designor
                • Initer-option
                • Enum-spec
                • Declor-option
                • Const
                • Block-item
                • Hex-quad
                • Eprefix
                • Const-expr
                • Oct-escape
                • Inc/dec-op
                • Fun-spec
                • Dec-expo
                • Cprefix-option
                • Asm-name-spec-option
                • Amb?-decl/stmt
                • S-char
                • Isuffix-option
                • Genassoc
                • Fsuffix-option
                • Fconst
                • Eprefix-option
                • Dec-expo-option
                • Cprefix
                • C-char
                • Type-spec-option
                • Sign-option
                • Sign
                • Q-char
                • Iconst-option
                • H-char
                • Fundef-option
                • Asm-output
                • Asm-input
                • Designor
                • Const-option
                • Usuffix
                • Univ-char-name
                • Hprefix
                • Enumer
                • Attrib-name
                • Transunit
                • Asm-qual
                • Typequal/attribspec
                • Stringlit
                • Dec-expo-prefix
                • Bin-expo-prefix
                • Header-name
                • Cconst
                • Expr/tyname
                • Decl/stmt
                • Declor/absdeclor
                • Asm-clobber
                • Typequal/attribspec-list
                • Decl-spec-list
                • Stringlit-list
                • Spec/qual-list
                • Inc/dec-op-list
                • Desiniter-list
                • Attrib-spec-list
                • S-char-list
                • Q-char-list
                • Param-declon-list
                • H-char-list
                • Decl-list
                • C-char-list
                • Typequal/attribspec-list-list
                • Struct-declor-list
                • Struct-declon-list
                • Initdeclor-list
                • Genassoc-list
                • Extdecl-list
                • Block-item-list
                • Enumer-list
                • Ident-list
                • Filepath-transunit-map
                  • Filepath-transunit-mapp
                    • Filepath-transunit-map-fix
                    • Filepath-transunit-map-equiv
                  • Expr-list
                  • Asm-qual-list
                  • Asm-output-list
                  • Asm-input-list
                  • Asm-clobber-list
                  • Type-spec-list
                  • Stor-spec-list
                  • Ident-set
                  • Ident-option-set
                  • Ident-list-list
                  • Eprefix-option-list
                  • Designor-list
                  • Attrib-list
                • Abstract-syntax-irrelevants
                • Type-specifier-lists
                • Ascii-identifiers
                • Abstraction-mapping
                • Standard
                • Storage-specifier-lists
                • Code-ensembles
                • Purity
                • Make-self-code-ensemble
              • Concrete-syntax
              • Disambiguation
              • Validation
              • Gcc-builtins
              • Preprocessing
              • Parsing
            • Atc
            • Transformation-tools
            • Language
            • Representation
            • Insertion-sort
            • Pack
          • Soft
          • Bv
          • Imp-language
          • Ethereum
          • Event-macros
          • Java
          • Riscv
          • Bitcoin
          • Zcash
          • Yul
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Filepath-transunit-map

    Filepath-transunit-mapp

    Recognizer for filepath-transunit-map.

    Signature
    (filepath-transunit-mapp x) → *

    Definitions and Theorems

    Function: filepath-transunit-mapp

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

    Theorem: booleanp-of-filepath-transunit-mapp

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

    Theorem: mapp-when-filepath-transunit-mapp

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

    Theorem: filepath-transunit-mapp-of-tail

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

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

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

    Theorem: transunitp-of-head-val-when-filepath-transunit-mapp

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

    Theorem: filepath-transunit-mapp-of-update

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

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

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

    Theorem: filepath-transunit-mapp-of-delete

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

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

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

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

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

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

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

    Theorem: transunitp-of-cdr-of-assoc-filepath-transunit-mapp

    (defthm transunitp-of-cdr-of-assoc-filepath-transunit-mapp
      (implies (and (filepath-transunit-mapp x)
                    (omap::assoc k x))
               (transunitp (cdr (omap::assoc k x)))))

    Theorem: transunitp-of-lookup-when-filepath-transunit-mapp

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