• 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
          • Scopestack
            • Vl-interfaceportlist->ifnames
            • Vl-scope-find-item
            • Vl-blockscope
            • Vl-importlist-find-explicit-item
            • Vl-scopestack-find-item/context
            • Vl-importlist-find-implicit-item
            • Vl-import-stars-find-item
            • Vl-importlist->explicit-item-alist
            • Vl-scopestack-find-definition/ss
            • Vl-scopeitem
              • Vl-scopeitem-p
                • Vl-scopeitem-fix
                • Vl-maybe-scopeitem
                • Vl-scopeitem-equiv
                • Vl-scopeitem-alist-count
                • Vl-scopeitem-alist
                • Vl-scopeitemlist
              • Vl-scopestack-find-package/ss
              • Vl-scopeinfo-find-item
              • Vl-scopestack-find-item/ss
              • Vl-scopestack
              • Vl-scopeinfo
              • Scopestack-constants
              • Vl-scopestack-push
              • Vl-scope->scopeinfo
              • Vl-scope-find-item-fast
              • Vl-module-scope-find-item
              • Vl-importresult
              • Vl-genblob-scope-find-item
              • Vl-design-scope-find-definition
              • Vl-scopestack-find-item
              • Vl-scopestack-find-definition
              • Vl-scope-find-portdecl
              • Vl-scope-find-definition
              • Vl-package-scope-find-item
              • Vl-interface-scope-find-portdecl
              • Vl-interface-scope-find-item
              • Vl-genblob-scope-find-portdecl
              • Vl-design-scope-find-item
              • Vl-blockscope-scope-find-item
              • Vl-scopestack-find-package
              • Vl-scope-find-package
              • Vl-module-scope-find-portdecl
              • Vl-design-scope-find-package
              • Vl-scope-find-portdecl-fast
              • Vl-package-scope-item-alist-top
              • Vl-scopedef
              • Vl-scope-portdecl-alist
              • Vl-scope-package-alist
              • Vl-scope-find-definition-fast
              • Vl-scope-definition-alist
              • Vl-scope-find-package-fast
              • Vl-scopestack->path-aux
              • Vl-scopestack->path
              • Vl-scopestack->design
              • Vl-scopestack-init
              • Vl-scopeitem->name
              • Vl-importlist->star-packages
              • Vl-scopestack-pop
              • Vl-scopestack-nesting-level
              • Vl-scope
              • Vl-design-scope-package-alist-top
              • Vl-scopestack-toplevel-p
              • Vl-scope->name
              • Vl-scopestacks-free
              • Vl-importresult-alist
            • Filtering-by-name
            • Vl-namefactory
            • Substitution
            • Allexprs
            • Hid-tools
            • Vl-consteval
            • Range-tools
            • Lvalexprs
            • Hierarchy
            • Finding-by-name
            • Expr-tools
            • Expr-slicing
            • Stripping-functions
            • Stmt-tools
            • Modnamespace
            • Vl-parse-expr-from-str
            • Welltyped
            • Reordering-by-name
            • Flat-warnings
            • Genblob
            • Expr-building
            • Datatype-tools
            • Syscalls
            • Relocate
            • Expr-cleaning
            • Namemangle
            • Caremask
            • Port-tools
            • Lvalues
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-scopeitem

    Vl-scopeitem-p

    Recognizer for vl-scopeitem.

    Signature
    (vl-scopeitem-p x) → *

    Definitions and Theorems

    Function: vl-scopeitem-p

    (defun vl-scopeitem-p (x)
      (declare (xargs :guard t))
      (let ((__function__ 'vl-scopeitem-p))
        (declare (ignorable __function__))
        (common-lisp::case (tag x)
          ((:vl-modport) (vl-modport-p x))
          ((:vl-modinst) (vl-modinst-p x))
          ((:vl-gateinst) (vl-gateinst-p x))
          ((:vl-genloop :vl-genif
                        :vl-gencase :vl-genblock
                        :vl-genarray :vl-genbase)
           (vl-genelement-p x))
          ((:vl-interfaceport)
           (vl-interfaceport-p x))
          ((:vl-paramdecl) (vl-paramdecl-p x))
          ((:vl-vardecl) (vl-vardecl-p x))
          ((:vl-fundecl) (vl-fundecl-p x))
          ((:vl-taskdecl) (vl-taskdecl-p x))
          (otherwise (vl-typedef-p x)))))

    Theorem: consp-when-vl-scopeitem-p

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

    Theorem: vl-scopeitem-p-when-vl-modport-p

    (defthm vl-scopeitem-p-when-vl-modport-p
      (implies (vl-modport-p x)
               (vl-scopeitem-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-scopeitem-p-when-vl-modinst-p

    (defthm vl-scopeitem-p-when-vl-modinst-p
      (implies (vl-modinst-p x)
               (vl-scopeitem-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-scopeitem-p-when-vl-gateinst-p

    (defthm vl-scopeitem-p-when-vl-gateinst-p
      (implies (vl-gateinst-p x)
               (vl-scopeitem-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-scopeitem-p-when-vl-genelement-p

    (defthm vl-scopeitem-p-when-vl-genelement-p
      (implies (vl-genelement-p x)
               (vl-scopeitem-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-scopeitem-p-when-vl-interfaceport-p

    (defthm vl-scopeitem-p-when-vl-interfaceport-p
      (implies (vl-interfaceport-p x)
               (vl-scopeitem-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-scopeitem-p-when-vl-paramdecl-p

    (defthm vl-scopeitem-p-when-vl-paramdecl-p
      (implies (vl-paramdecl-p x)
               (vl-scopeitem-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-scopeitem-p-when-vl-vardecl-p

    (defthm vl-scopeitem-p-when-vl-vardecl-p
      (implies (vl-vardecl-p x)
               (vl-scopeitem-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-scopeitem-p-when-vl-fundecl-p

    (defthm vl-scopeitem-p-when-vl-fundecl-p
      (implies (vl-fundecl-p x)
               (vl-scopeitem-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-scopeitem-p-when-vl-taskdecl-p

    (defthm vl-scopeitem-p-when-vl-taskdecl-p
      (implies (vl-taskdecl-p x)
               (vl-scopeitem-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-scopeitem-p-when-vl-typedef-p

    (defthm vl-scopeitem-p-when-vl-typedef-p
      (implies (vl-typedef-p x)
               (vl-scopeitem-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-modport-p-by-tag-when-vl-scopeitem-p

    (defthm vl-modport-p-by-tag-when-vl-scopeitem-p
      (implies (and (or (equal (tag x) :vl-modport))
                    (vl-scopeitem-p x))
               (vl-modport-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-modinst-p-by-tag-when-vl-scopeitem-p

    (defthm vl-modinst-p-by-tag-when-vl-scopeitem-p
      (implies (and (or (equal (tag x) :vl-modinst))
                    (vl-scopeitem-p x))
               (vl-modinst-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-gateinst-p-by-tag-when-vl-scopeitem-p

    (defthm vl-gateinst-p-by-tag-when-vl-scopeitem-p
      (implies (and (or (equal (tag x) :vl-gateinst))
                    (vl-scopeitem-p x))
               (vl-gateinst-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-genelement-p-by-tag-when-vl-scopeitem-p

    (defthm vl-genelement-p-by-tag-when-vl-scopeitem-p
      (implies (and (or (equal (tag x) :vl-genloop)
                        (equal (tag x) :vl-genif)
                        (equal (tag x) :vl-gencase)
                        (equal (tag x) :vl-genblock)
                        (equal (tag x) :vl-genarray)
                        (equal (tag x) :vl-genbase))
                    (vl-scopeitem-p x))
               (vl-genelement-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-interfaceport-p-by-tag-when-vl-scopeitem-p

    (defthm vl-interfaceport-p-by-tag-when-vl-scopeitem-p
      (implies (and (or (equal (tag x) :vl-interfaceport))
                    (vl-scopeitem-p x))
               (vl-interfaceport-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-paramdecl-p-by-tag-when-vl-scopeitem-p

    (defthm vl-paramdecl-p-by-tag-when-vl-scopeitem-p
      (implies (and (or (equal (tag x) :vl-paramdecl))
                    (vl-scopeitem-p x))
               (vl-paramdecl-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-vardecl-p-by-tag-when-vl-scopeitem-p

    (defthm vl-vardecl-p-by-tag-when-vl-scopeitem-p
      (implies (and (or (equal (tag x) :vl-vardecl))
                    (vl-scopeitem-p x))
               (vl-vardecl-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-fundecl-p-by-tag-when-vl-scopeitem-p

    (defthm vl-fundecl-p-by-tag-when-vl-scopeitem-p
      (implies (and (or (equal (tag x) :vl-fundecl))
                    (vl-scopeitem-p x))
               (vl-fundecl-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-taskdecl-p-by-tag-when-vl-scopeitem-p

    (defthm vl-taskdecl-p-by-tag-when-vl-scopeitem-p
      (implies (and (or (equal (tag x) :vl-taskdecl))
                    (vl-scopeitem-p x))
               (vl-taskdecl-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-typedef-p-by-tag-when-vl-scopeitem-p

    (defthm vl-typedef-p-by-tag-when-vl-scopeitem-p
      (implies (and (or (equal (tag x) :vl-typedef))
                    (vl-scopeitem-p x))
               (vl-typedef-p x))
      :rule-classes ((:rewrite :backchain-limit-lst 1)))

    Theorem: vl-scopeitem-p-when-invalid-tag

    (defthm vl-scopeitem-p-when-invalid-tag
      (implies (and (not (equal (tag x) :vl-modport))
                    (not (equal (tag x) :vl-modinst))
                    (not (equal (tag x) :vl-gateinst))
                    (not (equal (tag x) :vl-genloop))
                    (not (equal (tag x) :vl-genif))
                    (not (equal (tag x) :vl-gencase))
                    (not (equal (tag x) :vl-genblock))
                    (not (equal (tag x) :vl-genarray))
                    (not (equal (tag x) :vl-genbase))
                    (not (equal (tag x) :vl-interfaceport))
                    (not (equal (tag x) :vl-paramdecl))
                    (not (equal (tag x) :vl-vardecl))
                    (not (equal (tag x) :vl-fundecl))
                    (not (equal (tag x) :vl-taskdecl))
                    (not (equal (tag x) :vl-typedef)))
               (not (vl-scopeitem-p x)))
      :rule-classes ((:rewrite :backchain-limit-lst 0)))

    Theorem: tag-when-vl-scopeitem-p-forward

    (defthm tag-when-vl-scopeitem-p-forward
      (implies (vl-scopeitem-p x)
               (or (equal (tag x) :vl-modport)
                   (equal (tag x) :vl-modinst)
                   (equal (tag x) :vl-gateinst)
                   (equal (tag x) :vl-genloop)
                   (equal (tag x) :vl-genif)
                   (equal (tag x) :vl-gencase)
                   (equal (tag x) :vl-genblock)
                   (equal (tag x) :vl-genarray)
                   (equal (tag x) :vl-genbase)
                   (equal (tag x) :vl-interfaceport)
                   (equal (tag x) :vl-paramdecl)
                   (equal (tag x) :vl-vardecl)
                   (equal (tag x) :vl-fundecl)
                   (equal (tag x) :vl-taskdecl)
                   (equal (tag x) :vl-typedef)))
      :rule-classes ((:forward-chaining)))