• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
        • Transforms
        • Lint
        • Mlib
        • Server
          • Vls-commands
          • Vl-descriptionlist-summaries
          • Vls-transdb
          • File-layout
            • Vl-tnamelist-xdat-files
            • Vl-tnamelist-as-strings
            • Vl-tnamelist-models
            • Vl-tnamelist-bases
            • Vl-tnamelist-p
            • Vls-filter-datestrs
            • Vl-tname
              • Vl-tname-fix
              • Vl-tname-equiv
              • Make-vl-tname
              • Vl-tname->model
              • Vl-tname->base
              • Vl-tname-p
                • Change-vl-tname
              • Vl-looks-like-legitimate-tname-p
              • Vl-scan-for-tnames-in-base
              • Vl-scan-for-tnames-aux
              • Vl-scan-for-tnames
              • Vl-remove-illegitimate-tnames
              • Vl-find-tname
              • Vl-tnames-for-base
              • Vls-sort-bases
              • Vls-datestr-p
              • Vl-remove-temp-bases
              • Vl-tnames-to-json-aux
              • Vl-tname-xdat-file
              • Vl-tname-as-string
              • Vl-tname-dir
              • Set-vls-root
              • *vls-root*
              • Vl-tnames-to-json
            • Vls-data-p
            • Ts-queue
            • Vls-showloc
            • Vls-get-plainsrc
            • Vl-description->warnings
            • Vl-describe
            • Vls-port-table
            • Vls-describe
            • Vls-data-from-translation
            • Vl-find-description-insensitive
            • Vls-get-warnings
            • Vls-get-summary
            • Vls-get-origsrc
            • Vls-data-origname-reportcard
            • Vls-get-parents
            • Vls-get-children
            • Vls-get-summaries
            • Vl-ppc-description
            • Vls-get-desctypes
            • Vl-description-summary
            • Start
            • Vl-descalist->descriptions/types
            • Stop
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-tname

    Vl-tname-p

    Recognizer for vl-tname structures.

    Signature
    (vl-tname-p x) → *

    Definitions and Theorems

    Function: vl-tname-p

    (defun vl-tname-p (x)
      (declare (xargs :guard t))
      (let ((__function__ 'vl-tname-p))
        (declare (ignorable __function__))
        (and (consp x)
             (eq (car x) :vl-tname)
             (mbe :logic (and (alistp (cdr x))
                              (equal (strip-cars (cdr x))
                                     '(base model)))
                  :exec (fty::alist-with-carsp (cdr x)
                                               '(base model)))
             (b* ((base (cdr (std::da-nth 0 (cdr x))))
                  (model (cdr (std::da-nth 1 (cdr x)))))
               (and (stringp base) (stringp model))))))

    Theorem: consp-when-vl-tname-p

    (defthm consp-when-vl-tname-p
      (implies (vl-tname-p x) (consp x))
      :rule-classes :compound-recognizer)