• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
          • Atj
            • Atj-implementation
              • Atj-types
              • Atj-java-primitive-array-model
              • Atj-java-abstract-syntax
              • Atj-input-processing
              • Atj-java-pretty-printer
              • Atj-code-generation
              • Atj-java-primitives
              • Atj-java-primitive-arrays
              • Atj-type-macros
              • Atj-java-syntax-operations
              • Atj-fn
              • Atj-library-extensions
              • Atj-java-input-types
              • Atj-test-structures
                • Atj-test-value
                  • Atj-test-value-fix
                  • Atj-test-value-case
                  • Atj-test-valuep
                  • Atj-test-value-equiv
                  • Atj-test-value-kind
                    • Atj-test-value-ACL2
                    • Atj-test-value-jshort[]
                    • Atj-test-value-jshort
                    • Atj-test-value-jlong[]
                    • Atj-test-value-jlong
                    • Atj-test-value-jint[]
                    • Atj-test-value-jint
                    • Atj-test-value-jchar[]
                    • Atj-test-value-jchar
                    • Atj-test-value-jbyte[]
                    • Atj-test-value-jbyte
                    • Atj-test-value-jboolean[]
                    • Atj-test-value-jboolean
                  • Atj-test
                  • Atj-test-value-of-type
                  • Atj-test-values-of-types
                  • Atj-test-value-to-type
                  • Atj-test-values-to-types
                  • Atj-test-value-ACL2-list
                  • Atj-test-value-list
                  • Atj-test-list
                • Aij-notions
                • Atj-macro-definition
              • Atj-tutorial
            • Aij
            • Language
          • Riscv
          • Bitcoin
          • Ethereum
          • Yul
          • 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
    • Atj-test-value

    Atj-test-value-kind

    Get the kind (tag) of a atj-test-value structure.

    Signature
    (atj-test-value-kind x) → kind
    Arguments
    x — Guard (atj-test-valuep x).

    Definitions and Theorems

    Function: atj-test-value-kind$inline

    (defun atj-test-value-kind$inline (x)
      (declare (xargs :guard (atj-test-valuep x)))
      (let ((__function__ 'atj-test-value-kind))
        (declare (ignorable __function__))
        (mbe :logic (cond ((or (atom x) (eq (car x) :acl2)) :acl2)
                          ((eq (car x) :jboolean) :jboolean)
                          ((eq (car x) :jchar) :jchar)
                          ((eq (car x) :jbyte) :jbyte)
                          ((eq (car x) :jshort) :jshort)
                          ((eq (car x) :jint) :jint)
                          ((eq (car x) :jlong) :jlong)
                          ((eq (car x) :jboolean[]) :jboolean[])
                          ((eq (car x) :jchar[]) :jchar[])
                          ((eq (car x) :jbyte[]) :jbyte[])
                          ((eq (car x) :jshort[]) :jshort[])
                          ((eq (car x) :jint[]) :jint[])
                          (t :jlong[]))
             :exec (car x))))

    Theorem: atj-test-value-kind-possibilities

    (defthm atj-test-value-kind-possibilities
      (or (equal (atj-test-value-kind x) :acl2)
          (equal (atj-test-value-kind x)
                 :jboolean)
          (equal (atj-test-value-kind x) :jchar)
          (equal (atj-test-value-kind x) :jbyte)
          (equal (atj-test-value-kind x) :jshort)
          (equal (atj-test-value-kind x) :jint)
          (equal (atj-test-value-kind x) :jlong)
          (equal (atj-test-value-kind x)
                 :jboolean[])
          (equal (atj-test-value-kind x) :jchar[])
          (equal (atj-test-value-kind x) :jbyte[])
          (equal (atj-test-value-kind x)
                 :jshort[])
          (equal (atj-test-value-kind x) :jint[])
          (equal (atj-test-value-kind x)
                 :jlong[]))
      :rule-classes
      ((:forward-chaining :trigger-terms ((atj-test-value-kind x)))))