• 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
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Bitcoin
      • Riscv
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • 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
            • 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
              • Mode
                • Mode-case
                • Mode-fix
                • Mode-equiv
                • Modep
                • Mode-kind
                  • Mode-regular
                  • Mode-leave
                  • Mode-continue
                  • Mode-break
            • Concrete-syntax
            • Static-soundness
            • Static-semantics
            • Errors
          • Yul-json
        • 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
    • 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)))))