• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
        • Syntax-for-tools
        • Atc
        • Language
        • Representation
        • Transformation-tools
          • Simpadd0
            • Simpadd0-implementation
              • Simpadd0-event-generation
              • Simpadd0-process-inputs-and-gen-everything
              • Simpadd0-fn
                • Simpadd0-input-processing
                • Simpadd0-macro-definition
              • Simpadd0-expr-option
              • Simpadd0-structdeclor-list
              • Simpadd0-structdecl-list
              • Simpadd0-spec/qual-list
              • Simpadd0-param-declon-list
              • Simpadd0-initdeclor-list
              • Simpadd0-dirabsdeclor-option
              • Simpadd0-dirabsdeclor
              • Simpadd0-desiniter-list
              • Simpadd0-absdeclor-option
              • Simpadd0-strunispec
              • Simpadd0-structdeclor
              • Simpadd0-structdecl
              • Simpadd0-statassert
              • Simpadd0-spec/qual
              • Simpadd0-param-declor
              • Simpadd0-param-declon
              • Simpadd0-member-designor
              • Simpadd0-initer-option
              • Simpadd0-initdeclor
              • Simpadd0-genassoc-list
              • Simpadd0-genassoc
              • Simpadd0-expr
              • Simpadd0-enumspec
              • Simpadd0-enumer-list
              • Simpadd0-dirdeclor
              • Simpadd0-desiniter
              • Simpadd0-designor-list
              • Simpadd0-designor
              • Simpadd0-declor-option
              • Simpadd0-decl-spec-list
              • Simpadd0-decl-spec
              • Simpadd0-decl-list
              • Simpadd0-const-expr-option
              • Simpadd0-const-expr
              • Simpadd0-block-item-list
              • Simpadd0-align-spec
              • Simpadd0-absdeclor
              • Simpadd0-type-spec
              • Simpadd0-tyname
              • Simpadd0-stmt
              • Simpadd0-label
              • Simpadd0-initer
              • Simpadd0-expr-list
              • Simpadd0-enumer
              • Simpadd0-declor
              • Simpadd0-decl
              • Simpadd0-block-item
            • Deftrans
            • Splitgso
            • Constant-propagation
            • Split-fn
            • Copy-fn
            • Specialize
            • Split-all-gso
            • Rename
            • Utilities
          • Insertion-sort
          • Pack
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Bitcoin
        • Riscv
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Simpadd0-implementation

    Simpadd0-fn

    Event expansion of simpadd0.

    Signature
    (simpadd0-fn const-old const-new ctx state) 
      → 
    (mv erp event state)
    Arguments
    ctx — Guard (ctxp ctx).
    Returns
    event — Type (pseudo-event-formp event).

    Definitions and Theorems

    Function: simpadd0-fn

    (defun simpadd0-fn (const-old const-new ctx state)
      (declare (xargs :stobjs (state)))
      (declare (xargs :guard (ctxp ctx)))
      (let ((__function__ 'simpadd0-fn))
        (declare (ignorable __function__))
        (b* (((mv erp event)
              (simpadd0-process-inputs-and-gen-everything
                   const-old const-new state))
             ((when erp)
              (er-soft+ ctx t '(_) "~@0" erp)))
          (value event))))

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

    (defthm pseudo-event-formp-of-simpadd0-fn.event
      (b* (((mv acl2::?erp acl2::?event acl2::?state)
            (simpadd0-fn const-old const-new ctx state)))
        (pseudo-event-formp event))
      :rule-classes :rewrite)