• 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
                • Atj-test-fix
                • Make-atj-test
                • Atj-test-equiv
                • Change-atj-test
                • Atj-test->outputs
                • Atj-test->inputs
                • Atj-test->function
                • Atj-test->name
                • Atj-testp
                • 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

    Atj-testp

    Recognizer for atj-test structures.

    Signature
    (atj-testp x) → *

    Definitions and Theorems

    Function: atj-testp

    (defun atj-testp (x)
     (declare (xargs :guard t))
     (let ((__function__ 'atj-testp))
      (declare (ignorable __function__))
      (and
       (mbe
        :logic (and (alistp x)
                    (equal (strip-cars x)
                           '(name function inputs outputs)))
        :exec (fty::alist-with-carsp x '(name function inputs outputs)))
       (b* ((name (cdr (std::da-nth 0 x)))
            (function (cdr (std::da-nth 1 x)))
            (inputs (cdr (std::da-nth 2 x)))
            (outputs (cdr (std::da-nth 3 x))))
         (and (stringp name)
              (symbolp function)
              (atj-test-value-listp inputs)
              (atj-test-value-listp outputs))))))

    Theorem: consp-when-atj-testp

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