• 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
                • Value-list-result
                • Value
                • Value-result
                  • Value-result-fix
                  • Value-result-equiv
                  • Value-resultp
                  • Value-result-ok
                  • Value-result-err
                  • Value-result-kind
                  • Value-list
                • 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
                • 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
    • Value-result

    Value-result-kind

    Get the kind (tag) of a value-result structure.

    Signature
    (value-result-kind acl2::x) → kind
    Arguments
    acl2::x — Guard (value-resultp acl2::x).

    Definitions and Theorems

    Function: value-result-kind$inline

    (defun value-result-kind$inline (acl2::x)
      (declare (xargs :guard (value-resultp acl2::x)))
      (let ((__function__ 'value-result-kind))
        (declare (ignorable __function__))
        (cond ((valuep acl2::x) :ok) (t :err))))

    Theorem: value-result-kind-possibilities

    (defthm value-result-kind-possibilities
     (or (equal (value-result-kind acl2::x) :ok)
         (equal (value-result-kind acl2::x)
                :err))
     :rule-classes
     ((:forward-chaining :trigger-terms ((value-result-kind acl2::x)))))