• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
      • B*
      • Defunc
      • Fty
      • Apt
      • Std/util
      • Defdata
      • Defrstobj
      • Seq
      • Match-tree
      • Defrstobj
      • With-supporters
      • Def-partial-measure
      • Template-subst
      • Soft
      • Defthm-domain
      • Event-macros
        • Evmac-input-hints-p
        • Evmac-input-print-p
        • Event-macro-input-processing
        • Function-definedness
        • Event-macro-screen-printing
        • Make-event-terse
        • Event-macro-applicability-conditions
        • Event-macro-results
        • Template-generators
        • Event-macro-event-generators
          • Evmac-generate-defun
          • Evmac-generate-soft-defun-sk2
          • Evmac-generate-soft-defun2
          • Evmac-generate-defthm
          • Evmac-generate-soft-defunvar
        • Event-macro-proof-preparation
        • Try-event
        • Restore-output?
        • Restore-output
        • Fail-event
        • Cw-event
        • Event-macro-xdoc-constructors
        • Event-macro-intro-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
      • Miscellaneous
      • Output-controls
      • Bdd
      • Macros
        • Make-event
        • Defmacro
        • Untranslate-patterns
        • Trans*
        • Tc
        • Macro-aliases-table
        • Trans
        • Macro-args
        • Defabbrev
        • User-defined-functions-table
        • Untranslate-for-execution
        • Add-macro-fn
        • Macro-libraries
          • B*
          • Defunc
          • Fty
          • Apt
          • Std/util
          • Defdata
          • Defrstobj
          • Seq
          • Match-tree
          • Defrstobj
          • With-supporters
          • Def-partial-measure
          • Template-subst
          • Soft
          • Defthm-domain
          • Event-macros
            • Evmac-input-hints-p
            • Evmac-input-print-p
            • Event-macro-input-processing
            • Function-definedness
            • Event-macro-screen-printing
            • Make-event-terse
            • Event-macro-applicability-conditions
            • Event-macro-results
            • Template-generators
            • Event-macro-event-generators
              • Evmac-generate-defun
              • Evmac-generate-soft-defun-sk2
              • Evmac-generate-soft-defun2
              • Evmac-generate-defthm
              • Evmac-generate-soft-defunvar
            • Event-macro-proof-preparation
            • Try-event
            • Restore-output?
            • Restore-output
            • Fail-event
            • Cw-event
            • Event-macro-xdoc-constructors
            • Event-macro-intro-macros
          • Def-universal-equiv
          • Def-saved-obligs
          • With-supporters-after
          • Definec
          • Sig
          • Outer-local
          • Data-structures
        • Check-vars-not-free
        • Safe-mode
        • Trans1
        • Defmacro-untouchable
        • Add-macro-alias
        • Set-duplicate-keys-action
        • Magic-macroexpand
        • Defmacroq
        • Trans!
        • Add-binop
        • Remove-macro-fn
        • Remove-macro-alias
        • Untrans-table
        • Trans*-
        • Remove-binop
        • Tcp
        • Tca
      • Installation
      • Mailing-lists
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
    • Testing-utilities
  • Event-macros

Event-macro-event-generators

Utilities to generate events in event macros.

These utilities return two results: a local event form, and a non-local one. The assumption is that the event macro generates an encapsulate inside which the events generated by these utilities: thus, the local event is local to the encapsulate, while the non-local one is exported from the encapsulate. The local event includes proof hints, while the exported one doesn't: this way, the ACL2 history after the encapsulate is ``clean'', without hints that may refer to local theorems, in particular.

A caller of these utilities may use these utilities also to generate a local-only event, simply by ignoring the second result. In cases in which the local and exported events are the same (except for the (local ...) wrapper, a caller of these utilities can ignore the first result.

Subtopics

Evmac-generate-defun
Generate a defun or defund function definition with the specified attributes.
Evmac-generate-soft-defun-sk2
Generate a SOFT defun-sk2 or defund-sk2 function definition with the specified attributes.
Evmac-generate-soft-defun2
Generate a SOFT defun2 or defund2 function definition with the specified attributes.
Evmac-generate-defthm
Generate a defthm or defthmd theorem with the specified attributes.
Evmac-generate-soft-defunvar
Generate a SOFT function variable with specified name and arity.