• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
      • B*
      • Defunc
      • Fty
        • Deftagsum
        • Defprod
        • Defflexsum
        • Defbitstruct
        • Deflist
        • Defalist
        • Defbyte
        • Deffixequiv
        • Defresult
        • Deffixtype
        • Defoption
        • Fty-discipline
        • 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
          • Fty-extensions
          • Defsubtype
          • Defset
          • Deftypes
          • Specific-types
          • Defflatsum
          • Deflist-of-len
          • Defbytelist
          • Defomap
          • Fty::basetypes
          • Defvisitors
          • Deffixtype-alias
          • Deffixequiv-sk
          • Defunit
          • Multicase
          • Deffixequiv-mutual
          • Fty::baselists
          • Def-enumcase
          • Defmap
        • Apt
        • Std/util
        • Defdata
        • Defrstobj
        • Seq
        • Match-tree
        • Defrstobj
        • With-supporters
        • Def-partial-measure
        • Template-subst
        • Soft
        • Defthm-domain
        • Event-macros
        • Def-universal-equiv
        • Def-saved-obligs
        • With-supporters-after
        • Definec
        • Sig
        • Outer-local
        • Data-structures
      • ACL2
        • Theories
        • Rule-classes
        • Proof-builder
        • Recursion-and-induction
        • Hons-and-memoization
        • Events
        • Parallelism
        • History
        • Programming
        • Operational-semantics
        • Real
        • Start-here
        • Debugging
        • Miscellaneous
        • Output-controls
        • Macros
          • Make-event
          • Defmacro
          • Untranslate-patterns
          • Tc
          • Trans*
          • Macro-aliases-table
          • Macro-args
          • Defabbrev
          • User-defined-functions-table
          • Trans
          • Untranslate-for-execution
          • Add-macro-fn
          • Check-vars-not-free
          • Safe-mode
          • Macro-libraries
            • B*
            • Defunc
            • Fty
              • Deftagsum
              • Defprod
              • Defflexsum
              • Defbitstruct
              • Deflist
              • Defalist
              • Defbyte
              • Deffixequiv
              • Defresult
              • Deffixtype
              • Defoption
              • Fty-discipline
              • 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
                • Fty-extensions
                • Defsubtype
                • Defset
                • Deftypes
                • Specific-types
                • Defflatsum
                • Deflist-of-len
                • Defbytelist
                • Defomap
                • Fty::basetypes
                • Defvisitors
                • Deffixtype-alias
                • Deffixequiv-sk
                • Defunit
                • Multicase
                • Deffixequiv-mutual
                • Fty::baselists
                • Def-enumcase
                • Defmap
              • Apt
              • Std/util
              • Defdata
              • Defrstobj
              • Seq
              • Match-tree
              • Defrstobj
              • With-supporters
              • Def-partial-measure
              • Template-subst
              • Soft
              • Defthm-domain
              • Event-macros
              • Def-universal-equiv
              • Def-saved-obligs
              • With-supporters-after
              • Definec
              • Sig
              • Outer-local
              • Data-structures
            • Trans1
            • Defmacro-untouchable
            • Set-duplicate-keys-action
            • Add-macro-alias
            • Magic-macroexpand
            • Defmacroq
            • Trans!
            • Remove-macro-fn
            • Remove-macro-alias
            • Add-binop
            • Untrans-table
            • Trans*-
            • Remove-binop
            • Tcp
            • Tca
          • Interfacing-tools
        • Interfacing-tools
        • Hardware-verification
        • Software-verification
        • 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)