• 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
        • 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
        • Taspi
        • Bitcoin
        • Riscv
        • 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
        • 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
    • Atj-test-value

    Atj-test-valuep

    Recognizer for atj-test-value structures.

    Signature
    (atj-test-valuep x) → *

    Definitions and Theorems

    Function: atj-test-valuep

    (defun atj-test-valuep (x)
      (declare (xargs :guard t))
      (let ((__function__ 'atj-test-valuep))
        (declare (ignorable __function__))
        (and (consp x)
             (cond ((or (atom x) (eq (car x) :acl2))
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 1)
                         (b* ((get (std::da-nth 0 (cdr x))))
                           (acl2::any-p get))))
                   ((eq (car x) :jboolean)
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 1)
                         (b* ((get (std::da-nth 0 (cdr x))))
                           (boolean-valuep get))))
                   ((eq (car x) :jchar)
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 1)
                         (b* ((get (std::da-nth 0 (cdr x))))
                           (char-valuep get))))
                   ((eq (car x) :jbyte)
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 1)
                         (b* ((get (std::da-nth 0 (cdr x))))
                           (byte-valuep get))))
                   ((eq (car x) :jshort)
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 1)
                         (b* ((get (std::da-nth 0 (cdr x))))
                           (short-valuep get))))
                   ((eq (car x) :jint)
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 1)
                         (b* ((get (std::da-nth 0 (cdr x))))
                           (int-valuep get))))
                   ((eq (car x) :jlong)
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 1)
                         (b* ((get (std::da-nth 0 (cdr x))))
                           (long-valuep get))))
                   ((eq (car x) :jboolean[])
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 1)
                         (b* ((get (std::da-nth 0 (cdr x))))
                           (boolean-arrayp get))))
                   ((eq (car x) :jchar[])
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 1)
                         (b* ((get (std::da-nth 0 (cdr x))))
                           (char-arrayp get))))
                   ((eq (car x) :jbyte[])
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 1)
                         (b* ((get (std::da-nth 0 (cdr x))))
                           (byte-arrayp get))))
                   ((eq (car x) :jshort[])
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 1)
                         (b* ((get (std::da-nth 0 (cdr x))))
                           (short-arrayp get))))
                   ((eq (car x) :jint[])
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 1)
                         (b* ((get (std::da-nth 0 (cdr x))))
                           (int-arrayp get))))
                   (t (and (eq (car x) :jlong[])
                           (and (true-listp (cdr x))
                                (eql (len (cdr x)) 1))
                           (b* ((get (std::da-nth 0 (cdr x))))
                             (long-arrayp get))))))))

    Theorem: consp-when-atj-test-valuep

    (defthm consp-when-atj-test-valuep
      (implies (atj-test-valuep x) (consp x))
      :rule-classes :compound-recognizer)