• 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
          • Atc
          • Transformation-tools
            • Simpadd0
            • Proof-generation
            • Split-gso
            • Wrap-fn
            • Constant-propagation
            • Specialize
            • Split-fn
            • Split-fn-when
              • Split-fn-when-implementation
                • Ext-declon-list-try-split-fn-when
                • Transunit-ensemble-split-fn-when
                • Ext-declon-try-split-fn-when
                • Filepath-transunit-map-try-split-fn-when
                  • Fundef-try-split-fn-when
                  • Transunit-try-split-fn-when
                  • Transunit-ensemble-try-split-fn-when
                  • Transunit-ensemble-split-fn-when-loop
                  • Code-ensemble-split-fn-when
                  • Split-fn-when-fn
                  • Block-item-list-try-split-fn-when-loop
                  • Block-item-list-try-split-fn-when
                  • Block-item-triggerp
                  • Split-fn-when-event-generation
                  • Split-fn-when-input-processing
              • Split-all-gso
              • Copy-fn
              • Variables-in-computation-states
              • Rename
              • Utilities
              • Proof-generation-theorems
              • Input-processing
            • 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
    • Split-fn-when-implementation

    Filepath-transunit-map-try-split-fn-when

    Signature
    (filepath-transunit-map-try-split-fn-when map triggers transunits) 
      → 
    (mv er? found map$)
    Arguments
    map — Guard (filepath-transunit-mapp map).
    triggers — Guard (ident-setp triggers).
    transunits — Guard (transunit-ensemblep transunits).
    Returns
    er? — Type (maybe-msgp er?).
    found — Type (booleanp found).
    map$ — Type (filepath-transunit-mapp map$).

    Definitions and Theorems

    Function: filepath-transunit-map-try-split-fn-when

    (defun filepath-transunit-map-try-split-fn-when
           (map triggers transunits)
     (declare (xargs :guard (and (filepath-transunit-mapp map)
                                 (ident-setp triggers)
                                 (transunit-ensemblep transunits))))
     (b*
      (((reterr) nil nil)
       (map (c$::filepath-transunit-map-fix map))
       ((when (omap::emptyp map))
        (retok nil nil))
       ((mv path tunit) (omap::head map))
       ((erp found tunit$)
        (transunit-try-split-fn-when tunit triggers transunits))
       ((when found)
        (retok found
               (omap::update path tunit$ (omap::tail map))))
       ((erp found map$)
        (filepath-transunit-map-try-split-fn-when (omap::tail map)
                                                  triggers transunits)))
      (retok found (omap::update path tunit$ map$))))

    Theorem: maybe-msgp-of-filepath-transunit-map-try-split-fn-when.er?

    (defthm maybe-msgp-of-filepath-transunit-map-try-split-fn-when.er?
      (b* (((mv ?er? ?found ?map$)
            (filepath-transunit-map-try-split-fn-when
                 map triggers transunits)))
        (maybe-msgp er?))
      :rule-classes :rewrite)

    Theorem: booleanp-of-filepath-transunit-map-try-split-fn-when.found

    (defthm booleanp-of-filepath-transunit-map-try-split-fn-when.found
      (b* (((mv ?er? ?found ?map$)
            (filepath-transunit-map-try-split-fn-when
                 map triggers transunits)))
        (booleanp found))
      :rule-classes :type-prescription)

    Theorem: filepath-transunit-mapp-of-filepath-transunit-map-try-split-fn-when.map$

    (defthm
     filepath-transunit-mapp-of-filepath-transunit-map-try-split-fn-when.map$
     (b* (((mv ?er? ?found ?map$)
           (filepath-transunit-map-try-split-fn-when
                map triggers transunits)))
       (filepath-transunit-mapp map$))
     :rule-classes :rewrite)