• 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
            • Disambiguator
            • Abstract-syntax
            • Parser
            • Validator
            • Printer
            • Formalized-subset
            • Mapping-to-language-definition
            • Input-files
            • Defpred
              • Defpred-implementation
                • Defpred-event-generation
                • Defpred-process-inputs-and-gen-everything
                • Defpred-fn
                  • Defpred-input-processing
                  • Defpred-macro-definition
              • Output-files
              • Abstract-syntax-operations
              • Validation-information
              • Implementation-environments
              • Concrete-syntax
              • Unambiguity
              • Ascii-identifiers
              • Preprocessing
              • Abstraction-mapping
            • Atc
            • 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
    • Defpred-implementation

    Defpred-fn

    Event expansion of defpred.

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

    Definitions and Theorems

    Function: defpred-fn

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

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

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