• 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
            • Concrete-syntax
            • Static-soundness
            • Static-semantics
              • Static-safety-checking
              • Static-shadowing-checking
              • Mode-set-result
              • Literal-evaluation
              • Static-identifier-checking
              • Static-safety-checking-evm
              • Mode-set
              • Modes
                • Mode
                  • Mode-case
                  • Mode-fix
                  • Mode-equiv
                  • Modep
                  • Mode-kind
                    • Mode-regular
                    • Mode-leave
                    • Mode-continue
                    • Mode-break
              • 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
    • Mode

    Mode-kind

    Get the kind (tag) of a mode structure.

    Signature
    (mode-kind x) → kind
    Arguments
    x — Guard (modep x).

    Definitions and Theorems

    Function: mode-kind$inline

    (defun mode-kind$inline (x)
      (declare (xargs :guard (modep x)))
      (let ((__function__ 'mode-kind))
        (declare (ignorable __function__))
        (mbe :logic (cond ((or (atom x) (eq (car x) :regular))
                           :regular)
                          ((eq (car x) :break) :break)
                          ((eq (car x) :continue) :continue)
                          (t :leave))
             :exec (car x))))

    Theorem: mode-kind-possibilities

    (defthm mode-kind-possibilities
     (or (equal (mode-kind x) :regular)
         (equal (mode-kind x) :break)
         (equal (mode-kind x) :continue)
         (equal (mode-kind x) :leave))
     :rule-classes ((:forward-chaining :trigger-terms ((mode-kind x)))))