• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • 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
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Bitcoin
        • Riscv
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • 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)))))