• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
        • C
          • Syntax-for-tools
          • Atc
          • Transformation-tools
            • Simpadd0
            • Proof-generation
            • Split-gso
            • Wrap-fn
            • Constant-propagation
            • Specialize
            • Split-fn
            • Split-fn-when
              • Split-fn-when-implementation
                • Ext-declon-list-try-split-fn-when
                • Transunit-ensemble-split-fn-when
                • Ext-declon-try-split-fn-when
                • Filepath-transunit-map-try-split-fn-when
                • Fundef-try-split-fn-when
                • Transunit-try-split-fn-when
                • Transunit-ensemble-try-split-fn-when
                • Transunit-ensemble-split-fn-when-loop
                • Code-ensemble-split-fn-when
                • Split-fn-when-fn
                  • Block-item-list-try-split-fn-when-loop
                  • Block-item-list-try-split-fn-when
                  • Block-item-triggerp
                  • Split-fn-when-event-generation
                  • Split-fn-when-input-processing
              • Split-all-gso
              • Copy-fn
              • Variables-in-computation-states
              • Rename
              • Utilities
              • Proof-generation-theorems
              • Input-processing
            • Language
            • Representation
            • Insertion-sort
            • Pack
          • Soft
          • Bv
          • Imp-language
          • Ethereum
          • Event-macros
          • Java
          • Riscv
          • Bitcoin
          • Zcash
          • Yul
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Split-fn-when-implementation

    Split-fn-when-fn

    Event expansion of split-fn-when.

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

    Definitions and Theorems

    Function: split-fn-when-fn

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

    Theorem: booleanp-of-split-fn-when-fn.erp

    (defthm booleanp-of-split-fn-when-fn.erp
      (b* (((mv acl2::?erp acl2::?event acl2::?state)
            (split-fn-when-fn const-old
                              const-new triggers ctx state)))
        (booleanp erp))
      :rule-classes :type-prescription)

    Theorem: pseudo-event-formp-of-split-fn-when-fn.event

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