• 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
      • Riscv
      • Taspi
      • Bitcoin
      • 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
      • Aleo
        • Aleobft
        • Aleovm
        • Leo
          • Grammar
          • Early-version
            • Json2ast
            • Testing
            • Definition
              • Flattening
              • Abstract-syntax
                • Expression
                • Syntax-abstraction
                • Statement
                • Files
                • Input-files
                • Identifiers
                • Types
                • Struct-init
                • Branch
                • Statements
                  • Asgop
                  • Constdecl
                  • Console
                    • Console-case
                    • Console-fix
                    • Consolep
                    • Console-equiv
                    • Console-log
                    • Console-error
                    • Console-assert
                    • Console-kind
                    • Vardecl
                    • Vardecl-result
                    • Statement-result
                    • Statement-list-result
                    • Constdecl-result
                    • Console-result
                    • Branch-result
                    • Branch-list-result
                    • Asgop-result
                    • Asgop-to-binop
                    • Statement-fixtypes
                  • Format-strings
                  • Input-syntax-abstraction
                  • Expressions
                  • Output-files
                  • Addresses
                  • Literals
                  • Characters
                  • Expression-list
                  • Statement-list
                  • Output-syntax-abstraction
                  • Struct-init-list
                  • Branch-list
                  • Annotations
                  • Abstract-syntax-trees
                  • Symbols
                  • Keywords
                  • Programs
                  • Packages
                  • Bit-sizes
                • Dynamic-semantics
                • Compilation
                • Static-semantics
                • Concrete-syntax
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Console

    Console-kind

    Get the kind (tag) of a console structure.

    Signature
    (console-kind x) → kind
    Arguments
    x — Guard (consolep x).

    Definitions and Theorems

    Function: console-kind$inline

    (defun console-kind$inline (x)
      (declare (xargs :guard (consolep x)))
      (let ((__function__ 'console-kind))
        (declare (ignorable __function__))
        (mbe :logic (cond ((or (atom x) (eq (car x) :assert))
                           :assert)
                          ((eq (car x) :error) :error)
                          (t :log))
             :exec (car x))))

    Theorem: console-kind-possibilities

    (defthm console-kind-possibilities
      (or (equal (console-kind x) :assert)
          (equal (console-kind x) :error)
          (equal (console-kind x) :log))
      :rule-classes
      ((:forward-chaining :trigger-terms ((console-kind x)))))