• 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
          • Semantics
            • Step
            • Write-var
            • Outcome
              • Outcome-case
              • Outcome-fix
              • Outcome-equiv
              • Outcome-terminated
              • Outcomep
              • Outcome-nonterminating
              • Outcome-kind
              • Beval
              • Read-var
              • Config
              • Terminatingp
              • Aeval
              • Step*
              • Stepn
              • Env
            • Abstract-syntax
            • Interpreter
          • 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
    • Outcome

    Outcome-kind

    Get the kind (tag) of a outcome structure.

    Signature
    (outcome-kind x) → kind
    Arguments
    x — Guard (outcomep x).

    Definitions and Theorems

    Function: outcome-kind$inline

    (defun outcome-kind$inline (x)
      (declare (xargs :guard (outcomep x)))
      (let ((__function__ 'outcome-kind))
        (declare (ignorable __function__))
        (mbe :logic (cond ((or (atom x) (eq (car x) :terminated))
                           :terminated)
                          (t :nonterminating))
             :exec (car x))))

    Theorem: outcome-kind-possibilities

    (defthm outcome-kind-possibilities
      (or (equal (outcome-kind x) :terminated)
          (equal (outcome-kind x)
                 :nonterminating))
      :rule-classes
      ((:forward-chaining :trigger-terms ((outcome-kind x)))))