• 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
          • 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-find-moduleitem
            • Vl-make-moditem-alist
            • Vl-module->modnamespace
            • Vl-moditem
              • Vl-moditem-p
                • Vl-moditem-fix
                • Vl-moditem-equiv
              • Vl-fast-find-moduleitem
              • Vl-moditem-alist
              • Vl-moditemlist
            • 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-moditem

    Vl-moditem-p

    Recognizer for vl-moditem.

    Signature
    (vl-moditem-p x) → *

    Definitions and Theorems

    Function: vl-moditem-p

    (defun vl-moditem-p (x)
      (declare (xargs :guard t))
      (let ((__function__ 'vl-moditem-p))
        (declare (ignorable __function__))
        (common-lisp::case (tag x)
          ((:vl-vardecl) (vl-vardecl-p x))
          ((:vl-paramdecl) (vl-paramdecl-p x))
          ((:vl-fundecl) (vl-fundecl-p x))
          ((:vl-taskdecl) (vl-taskdecl-p x))
          ((:vl-modinst) (vl-modinst-p x))
          (otherwise (vl-gateinst-p x)))))

    Theorem: consp-when-vl-moditem-p

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

    Theorem: vl-moditem-p-when-vl-vardecl-p

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

    Theorem: vl-moditem-p-when-vl-paramdecl-p

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

    Theorem: vl-moditem-p-when-vl-fundecl-p

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

    Theorem: vl-moditem-p-when-vl-taskdecl-p

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

    Theorem: vl-moditem-p-when-vl-modinst-p

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

    Theorem: vl-moditem-p-when-vl-gateinst-p

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    (defthm vl-moditem-p-when-invalid-tag
      (implies (and (not (equal (tag x) :vl-vardecl))
                    (not (equal (tag x) :vl-paramdecl))
                    (not (equal (tag x) :vl-fundecl))
                    (not (equal (tag x) :vl-taskdecl))
                    (not (equal (tag x) :vl-modinst))
                    (not (equal (tag x) :vl-gateinst)))
               (not (vl-moditem-p x)))
      :rule-classes ((:rewrite :backchain-limit-lst 0)))

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

    (defthm tag-when-vl-moditem-p-forward
      (implies (vl-moditem-p x)
               (or (equal (tag x) :vl-vardecl)
                   (equal (tag x) :vl-paramdecl)
                   (equal (tag x) :vl-fundecl)
                   (equal (tag x) :vl-taskdecl)
                   (equal (tag x) :vl-modinst)
                   (equal (tag x) :vl-gateinst)))
      :rule-classes ((:forward-chaining)))