• 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
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • Bitcoin
        • Ethereum
        • Yul
          • Transformations
          • Language
            • Abstract-syntax
            • Dynamic-semantics
              • Exec
              • Find-fun
              • Init-local
              • Write-vars-values
              • Add-vars-values
              • Add-funs
              • Eoutcome
              • Soutcome
              • Ensure-funscope-disjoint
              • Write-var-value
              • Restrict-vars
              • Add-var-value
              • Funinfo
              • Exec-top-block
              • Values
              • Cstate
              • Funinfo+funenv
              • Read-vars-values
              • Read-var-value
              • Funenv
              • Funscope-for-fundefs
              • Exec-path
              • Path-to-var
              • Funinfo+funenv-result
              • Exec-literal
              • Soutcome-result
              • Mode-set-result
              • Literal-evaluation
              • Funscope-result
              • Funinfo-result
              • Funenv-result
              • Eoutcome-result
                • Eoutcome-result-fix
                • Eoutcome-result-equiv
                • Eoutcome-resultp
                  • Eoutcome-result-ok
                  • Eoutcome-result-err
                  • Eoutcome-result-kind
                • Cstate-result
                • Paths-to-vars
                • Funinfo-for-fundef
                • Lstate
                • Funscope
                • Mode-set
                • Modes
              • Concrete-syntax
              • Static-soundness
              • Static-semantics
              • Errors
            • Yul-json
          • 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
    • Eoutcome-result

    Eoutcome-resultp

    Recognizer for eoutcome-result structures.

    Signature
    (eoutcome-resultp acl2::x) → *

    Definitions and Theorems

    Function: eoutcome-resultp

    (defun eoutcome-resultp (acl2::x)
      (declare (xargs :guard t))
      (let ((__function__ 'eoutcome-resultp))
        (declare (ignorable __function__))
        (cond ((eoutcomep acl2::x)
               (b* ((get acl2::x)) (eoutcomep get)))
              (t (b* ((get acl2::x)) (reserrp get))))))

    Theorem: consp-when-eoutcome-resultp

    (defthm consp-when-eoutcome-resultp
      (implies (eoutcome-resultp acl2::x)
               (consp acl2::x))
      :rule-classes :compound-recognizer)