• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
          • Preprocessor
          • Vl-loadconfig
          • Vl-loadstate
          • Lexer
            • Lex-strings
            • Lex-identifiers
            • Vl-typo-uppercase-p
            • Vl-typo-number-p
            • Vl-typo-lowercase-p
            • Lex-numbers
            • Chartypes
            • Vl-lex
            • Defchar
            • Tokens
            • Lex-keywords
              • *vl-2012-keyword-table*
              • *vl-2012-keyword-table-strict*
              • Vl-lex-simple-identifier-or-keyword
              • Vl-keyword-lookup
              • *vl-2005-keyword-table*
              • *vl-2005-keyword-table-strict*
              • Vl-keyword-table-p
                • *vl-2012-keywords*
                • Vl-full-keyword-table
                • Vl-make-keyword-table
                • *vl-extra-keywords*
                • *vl-2005-keywords*
              • Lexstate
              • Make-test-tokens
              • Lexer-utils
              • Lex-comments
              • Vl-typo-uppercase-list-p
              • Vl-typo-lowercase-list-p
              • Vl-typo-number-list-p
            • Parser
            • Vl-load-merge-descriptions
            • Vl-find-basename/extension
            • Vl-load-file
            • Vl-loadresult
            • Scope-of-defines
            • Vl-find-file
            • Vl-flush-out-descriptions
            • Vl-description
            • Vl-read-file
            • Vl-includeskips-report-gather
            • Vl-load-main
            • Extended-characters
            • Vl-load
            • Vl-load-description
            • Vl-descriptions-left-to-load
            • Inject-warnings
            • Vl-preprocess-debug
            • Vl-write-preprocessor-debug-file
            • Vl-read-file-report-gather
            • Vl-load-descriptions
            • Vl-load-files
            • Translate-off
            • Vl-load-read-file-hook
            • Vl-read-file-report
            • Vl-loadstate-pad
            • Vl-load-summary
            • Vl-collect-modules-from-descriptions
            • Vl-loadstate->warnings
            • Vl-iskips-report
            • Vl-descriptionlist
          • Warnings
          • Getting-started
          • Utilities
          • Printer
          • Kit
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Lex-keywords

    Vl-keyword-table-p

    Recognize any valid subset of the vl-full-keyword-table.

    Signature
    (vl-keyword-table-p x) → *

    Definitions and Theorems

    Function: vl-keyword-table-p

    (defun vl-keyword-table-p (x)
      (declare (xargs :guard t))
      (let ((__function__ 'vl-keyword-table-p))
        (declare (ignorable __function__))
        (or (atom x)
            (and (consp (car x))
                 (equal (car x)
                        (hons-get (caar x)
                                  (vl-full-keyword-table)))
                 (vl-keyword-table-p (cdr x))))))

    Theorem: vl-keyword-table-p-of-vl-full-keyword-table

    (defthm vl-keyword-table-p-of-vl-full-keyword-table
      (vl-keyword-table-p (vl-full-keyword-table)))

    Theorem: symbol-listp-of-alist-vals-when-vl-keyword-table-p

    (defthm symbol-listp-of-alist-vals-when-vl-keyword-table-p
      (implies (vl-keyword-table-p x)
               (symbol-listp (alist-vals x))))

    Theorem: symbolp-of-lookup-when-vl-keyword-table-p

    (defthm symbolp-of-lookup-when-vl-keyword-table-p
      (implies (vl-keyword-table-p table)
               (symbolp (cdr (hons-assoc-equal key table)))))