• 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
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
        • C
          • Syntax-for-tools
          • Atc
            • Atc-implementation
              • Atc-abstract-syntax
              • Atc-pretty-printer
              • Atc-event-and-code-generation
              • Fty-pseudo-term-utilities
              • Atc-term-recognizers
              • Atc-input-processing
              • Atc-shallow-embedding
              • Atc-process-inputs-and-gen-everything
              • Atc-table
              • Atc-fn
                • Atc-pretty-printing-options
                • Atc-types
                • Atc-macro-definition
              • Atc-tutorial
            • Language
            • Representation
            • Transformation-tools
            • Insertion-sort
            • Pack
          • 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
    • Atc-implementation

    Atc-fn

    Event expansion of atc.

    Signature
    (atc-fn args call ctx state) → (mv erp event state)
    Arguments
    args — Guard (true-listp args).
    call — Guard (pseudo-event-formp call).
    ctx — Guard (ctxp ctx).
    Returns
    event — Type (pseudo-event-formp event).

    Definitions and Theorems

    Function: atc-fn

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

    Theorem: pseudo-event-formp-of-atc-fn.event

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