• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
      • Std/lists
      • Std/alists
      • Obags
      • Std/util
      • Std/strings
      • Std/io
      • Std/osets
      • Std/system
        • Fresh-logical-name-with-$s-suffix
        • Irrelevant-formals-info
        • Std/system/function-queries
        • Std/system/term-queries
        • Std/system/term-transformations
        • Std/system/enhanced-utilities
        • Install-not-normalized-event-lst
        • Install-not-normalized-event
        • Std/system/term-function-recognizers
        • Pseudo-tests-and-call-listp
        • Genvar$
        • Std/system/event-name-queries
        • Maybe-pseudo-event-formp
        • Add-suffix-to-fn-or-const
        • Chk-irrelevant-formals-ok
        • Std/system/good-atom-listp
        • Pseudo-tests-and-callp
          • Table-alist+
          • Add-suffix-to-fn-or-const-lst
          • Known-packages+
          • Add-suffix-to-fn-lst
          • Unquote-term
          • Event-landmark-names
          • Add-suffix-lst
          • Std/system/theorem-queries
          • Unquote-term-list
          • Std/system/macro-queries
          • Pseudo-event-landmark-listp
          • Pseudo-command-landmark-listp
          • Install-not-normalized$
          • Rune-disabledp
          • Known-packages
          • Std/system/partition-rest-and-keyword-args
          • Rune-enabledp
          • Included-books
          • Std/system/pseudo-event-formp
          • Std/system/plist-worldp-with-formals
          • Std/system/w
          • Std/system/geprops
          • Std/system/arglistp
          • Std/system-extensions
          • Std/system/constant-queries
        • Std/basic
        • Std/typed-lists
        • Std/bitsets
        • Std/testing
        • Std/typed-alists
        • Std/stobjs
        • Std-extensions
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Testing-utilities
      • Math
    • Std/system

    Pseudo-tests-and-callp

    Recognize well-formed tests-and-call records.

    Signature
    (pseudo-tests-and-callp x) → yes/no
    Returns
    yes/no — Type (booleanp yes/no).

    A tests-and-call record is defined as

    (defrec tests-and-call (tests call) nil)

    (see the ACL2 source code).

    In a well-formed tests-and-call record, tests must be a list of terms and call must be a term.

    This recognizer is analogous to pseudo-tests-and-callsp.

    Definitions and Theorems

    Function: pseudo-tests-and-callp

    (defun pseudo-tests-and-callp (x)
           (declare (xargs :guard t))
           (let ((__function__ 'pseudo-tests-and-callp))
                (declare (ignorable __function__))
                (case-match x
                            (('tests-and-call tests call)
                             (and (pseudo-term-listp tests)
                                  (pseudo-termp call)))
                            (& nil))))

    Theorem: booleanp-of-pseudo-tests-and-callp

    (defthm booleanp-of-pseudo-tests-and-callp
            (b* ((yes/no (pseudo-tests-and-callp x)))
                (booleanp yes/no))
            :rule-classes :rewrite)

    Theorem: weak-tests-and-call-p-when-pseudo-tests-and-callp

    (defthm weak-tests-and-call-p-when-pseudo-tests-and-callp
            (implies (pseudo-tests-and-callp x)
                     (weak-tests-and-call-p x)))