• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
      • Std/lists
      • Std/alists
      • Obags
      • Std/util
      • Std/strings
      • Std/io
      • Std/osets
      • Std/system
      • Std/basic
      • Std/typed-lists
        • Std/typed-lists/character-listp
        • Std/typed-lists/symbol-listp
        • Std/typed-lists/boolean-listp
        • Std/typed-lists/string-listp
        • Std/typed-lists/eqlable-listp
        • Theorems-about-true-list-lists
        • Std/typed-lists/atom-listp
        • Unsigned-byte-listp
        • Cons-listp
        • Cons-list-listp
        • Signed-byte-listp
        • String-or-symbol-listp
        • 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/typed-lists

    String-or-symbol-listp

    Recognize true lists of strings and symbols.

    Definitions and Theorems

    Function: string-or-symbol-listp

    (defun string-or-symbol-listp (x)
           (declare (xargs :guard t))
           (if (atom x)
               (null x)
               (and (or (stringp (car x)) (symbolp (car x)))
                    (string-or-symbol-listp (cdr x)))))