• 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
        • Zcash
        • ACL2-programming-language
          • Primitive-functions
          • Translated-terms
          • Values
          • Evaluation
          • Program-equivalence
          • Functions
          • Packages
          • Programs
          • Interpreter
          • Evaluation-states
            • Eval-state
              • Eval-state-fix
              • Eval-state-case
              • Eval-state-p
              • Eval-state-equiv
              • Eval-state-init
              • Eval-state-trans
              • Eval-state-final
              • Eval-state-kind
                • Eval-state-error
              • Frame
              • Binding
              • Stack
          • 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
    • Eval-state

    Eval-state-kind

    Get the kind (tag) of a eval-state structure.

    Signature
    (eval-state-kind x) → kind
    Arguments
    x — Guard (eval-state-p x).

    Definitions and Theorems

    Function: eval-state-kind$inline

    (defun eval-state-kind$inline (x)
      (declare (xargs :guard (eval-state-p x)))
      (let ((__function__ 'eval-state-kind))
        (declare (ignorable __function__))
        (mbe :logic (cond ((or (atom x) (eq (car x) :init)) :init)
                          ((eq (car x) :trans) :trans)
                          ((eq (car x) :final) :final)
                          (t :error))
             :exec (car x))))

    Theorem: eval-state-kind-possibilities

    (defthm eval-state-kind-possibilities
      (or (equal (eval-state-kind x) :init)
          (equal (eval-state-kind x) :trans)
          (equal (eval-state-kind x) :final)
          (equal (eval-state-kind x) :error))
      :rule-classes
      ((:forward-chaining :trigger-terms ((eval-state-kind x)))))