• 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
          • Defbyte
          • Defresult
          • Fold
            • Deffold-reduce
            • Deffold-map
              • Deffold-map-implementation
                • Deffold-map-event-generation
                • Deffold-map-process-inputs-and-gen-everything
                • Deffold-map-fn
                  • Deffold-map-input-processing
                  • Deffold-map-macro-definition
            • Defsubtype
            • Defset
            • Specific-types
            • Defflatsum
            • Deflist-of-len
            • Pos-list
            • Defbytelist
            • Defomap
            • Defbyte-standard-instances
            • Deffixtype-alias
            • Defbytelist-standard-instances
            • Defunit
            • Byte-list
            • Database
            • Byte
            • Pos-option
            • Nibble
            • Nat-option
            • String-option
            • Byte-list20
            • Byte-list32
            • Byte-list64
            • Pseudo-event-form
            • Natoption/natoptionlist
            • Nati
            • Character-list
            • Nat/natlist
            • Maybe-string
            • Nibble-list
            • Natoption/natoptionlist-result
            • Nat/natlist-result
            • Nat-option-list-result
            • Set
            • String-result
            • String-list-result
            • Nat-result
            • Nat-option-result
            • Nat-list-result
            • Maybe-string-result
            • Integer-result
            • Character-result
            • Character-list-result
            • Boolean-result
            • Map
            • Bag
            • Pos-set
            • Hex-digit-char-list
            • Dec-digit-char-list
            • Pseudo-event-form-list
            • Nat-option-list
            • Symbol-set
            • String-set
            • Nat-set
            • Oct-digit-char-list
            • Bin-digit-char-list
            • Bit-list
          • Isar
          • Kestrel-utilities
          • Set
          • Soft
          • C
          • 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
    • Deffold-map-implementation

    Deffold-map-fn

    Event expansion of deffold-map.

    Signature
    (deffold-map-fn args ctx state) → (mv erp event state)
    Arguments
    args — Guard (true-listp args).
    ctx — Guard (ctxp ctx).
    Returns
    event — Type (acl2::pseudo-event-formp event).

    Definitions and Theorems

    Function: deffold-map-fn

    (defun deffold-map-fn (args ctx state)
     (declare (xargs :stobjs (state)))
     (declare (xargs :guard (and (true-listp args) (ctxp ctx))))
     (let ((__function__ 'deffold-map-fn))
      (declare (ignorable __function__))
      (b*
       (((mv erp event)
         (deffold-map-process-inputs-and-gen-everything args (w state)))
        ((when erp)
         (acl2::er-soft+ ctx t '(_) "~@0" erp)))
       (value event))))

    Theorem: pseudo-event-formp-of-deffold-map-fn.event

    (defthm pseudo-event-formp-of-deffold-map-fn.event
      (b* (((mv ?erp acl2::?event acl2::?state)
            (deffold-map-fn args ctx state)))
        (acl2::pseudo-event-formp event))
      :rule-classes :rewrite)