• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
          • Vl-module
          • Vl-vardecl
          • Vl-fundecl
          • Vl-interface
          • Vl-design
          • Vl-assign
          • Vl-modinst
          • Vl-gateinst
          • Vl-taskdecl
          • Vl-portdecl
          • Vl-commentmap
          • Vl-dpiimport
          • Vl-ansi-portdecl
          • Vl-package
          • Vl-paramdecl
          • Vl-dpiexport
          • Vl-class
          • Vl-sort-blockitems-aux
          • Vl-plainarglist->exprs
          • Vl-taskdecllist->names
          • Expressions-and-datatypes
            • Vl-atts
              • Vl-atts-p
                • Vl-atts-equiv
                • Vl-atts-fix
              • Vl-expr
              • Vl-datatype
              • New-expression-representation
              • Vl-paramargs
              • Vl-evatom
              • Vl-maybe-paramargs
              • Vl-evatomlist
              • Vl-call-namedargs
              • Vl-paramvaluelist
              • Vl-namedparamvaluelist
            • Vl-fundecllist->names
            • Vl-udp
            • Vl-port
            • Vl-genelement
            • Vl-clkdecl
            • Vl-parse-temps
            • Vl-bind
            • Vl-namedarg
            • Vl-exprdist
            • Vl-clkassign
            • Vl-range
            • Vl-propport
            • Vl-typedef
            • Vl-gatedelay
            • Vl-dimension
            • Vl-sequence
            • Vl-clkskew
            • Vl-program
            • Vl-gatestrength
            • Vl-property
            • Vl-config
            • Vl-always
            • Vl-import
            • Vl-repeateventcontrol
            • Vl-timeliteral
            • Vl-initial
            • Vl-eventcontrol
            • Vl-final
            • Vl-udpsymbol-p
            • Vl-maybe-clkskew
            • Vl-function-specialization
            • Vl-alias
            • Vl-maybe-nettypename
            • Vl-maybe-gatedelay
            • Vl-letdecl
            • Vl-direction-p
            • Vl-modelement
            • Vl-maybe-timeprecisiondecl
            • Vl-maybe-scopeid
            • Vl-maybe-gatestrength
            • Vl-maybe-direction
            • Vl-maybe-delayoreventcontrol
            • Vl-gclkdecl
            • Vl-fwdtypedef
            • Vl-maybe-udpsymbol-p
            • Vl-maybe-timeunitdecl
            • Vl-maybe-timeliteral
            • Vl-maybe-parse-temps
            • Vl-maybe-cstrength
            • Vl-arguments
            • Vl-maybe-module
            • Vl-maybe-design
            • Vl-covergroup
            • Vl-udpline
            • Vl-timeunitdecl
            • Vl-genvar
            • Vl-defaultdisable
            • Vl-context1
            • Vl-timeprecisiondecl
            • Vl-sort-blockitems
            • Vl-elabtask
            • Vl-udpedge
            • Vl-delaycontrol
            • Vl-context
            • Vl-ctxelement
            • Vl-ctxelement->loc
            • Vl-modelement->loc
            • Statements
            • Vl-blockitem
            • Vl-vardecllist
            • Vl-interface->ifports
            • Vl-syntaxversion
            • Vl-nettypename-p
            • Vl-module->ifports
            • Vl-lifetime-p
            • Vl-paramdecllist
            • Vl-modelementlist->genelements
            • Vl-importlist
            • Vl-typedeflist
            • Vl-gatetype-p
            • Vl-cstrength-p
            • Vl-port->name
            • Vl-genelement->loc
            • Vl-delayoreventcontrol
            • Vl-udpentry-p
            • Vl-portdecllist
            • Vl-elabtask->loc
            • Property-expressions
            • Vl-taskdecllist
            • Vl-port->loc
            • Vl-fundecllist
            • Vl-sequencelist
            • Vl-propertylist
            • Vl-portlist
            • Vl-dpiimportlist
            • Vl-dpiexportlist
            • Vl-classlist
            • Vl-arguments->args
            • Vl-alwaystype-p
            • Vl-modinstlist
            • Vl-importpart-p
            • Vl-importpart-fix
            • Vl-bindlist
            • Vl-initiallist
            • Vl-genvarlist
            • Vl-gclkdecllist
            • Vl-function-specialization-map
            • Vl-finallist
            • Vl-elabtasklist
            • Vl-defaultdisablelist
            • Vl-clkdecllist
            • Vl-cassertionlist
            • Vl-blockstmt-p
            • Vl-assignlist
            • Vl-assertionlist
            • Vl-alwayslist
            • Vl-aliaslist
            • Vl-udptable
            • Vl-udplist
            • Vl-udpentrylist
            • Vl-propportlist
            • Vl-programlist
            • Vl-packagelist
            • Vl-namedarglist
            • Vl-modulelist
            • Vl-modportlist
            • Vl-modport-portlist
            • Vl-letdecllist
            • Vl-interfacelist
            • Vl-gateinstlist
            • Vl-fwdtypedeflist
            • Vl-covergrouplist
            • Vl-configlist
            • Vl-clkassignlist
            • Vl-blockitemlist
            • Vl-ansi-portdecllist
            • Vl-regularportlist
            • Vl-paramdecllist-list
            • Vl-modelementlist
            • Vl-interfaceportlist
            • Vl-casekey-p
            • Sv::maybe-4veclist
          • Loader
          • Warnings
          • Getting-started
          • Utilities
          • Printer
          • Kit
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-atts

    Vl-atts-p

    Recognizer for vl-atts.

    Signature
    (vl-atts-p x) → *

    Definitions and Theorems

    Theorem: vl-atts-p-of-nthcdr

    (defthm vl-atts-p-of-nthcdr
      (implies (vl-atts-p (double-rewrite acl2::x))
               (vl-atts-p (nthcdr acl2::n acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-atts-p-of-repeat

    (defthm vl-atts-p-of-repeat
      (iff (vl-atts-p (repeat acl2::n acl2::x))
           (or (and (consp acl2::x)
                    (stringp (car acl2::x))
                    (vl-maybe-expr-p (cdr acl2::x)))
               (zp acl2::n)))
      :rule-classes ((:rewrite)))

    Theorem: vl-atts-p-of-take

    (defthm vl-atts-p-of-take
      (implies (vl-atts-p (double-rewrite acl2::x))
               (iff (vl-atts-p (take acl2::n acl2::x))
                    (or (and (consp nil)
                             (stringp (car nil))
                             (vl-maybe-expr-p (cdr nil)))
                        (<= (nfix acl2::n) (len acl2::x)))))
      :rule-classes ((:rewrite)))

    Theorem: vl-atts-p-of-append

    (defthm vl-atts-p-of-append
      (equal (vl-atts-p (append acl2::a acl2::b))
             (and (vl-atts-p (list-fix acl2::a))
                  (vl-atts-p acl2::b)))
      :rule-classes ((:rewrite)))

    Theorem: vl-atts-p-of-rev

    (defthm vl-atts-p-of-rev
      (equal (vl-atts-p (rev acl2::x))
             (vl-atts-p (list-fix acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-atts-p-of-list-fix

    (defthm vl-atts-p-of-list-fix
      (implies (vl-atts-p acl2::x)
               (vl-atts-p (list-fix acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: true-listp-when-vl-atts-p-compound-recognizer

    (defthm true-listp-when-vl-atts-p-compound-recognizer
      (implies (vl-atts-p acl2::x)
               (true-listp acl2::x))
      :rule-classes :compound-recognizer)

    Theorem: vl-atts-p-when-not-consp

    (defthm vl-atts-p-when-not-consp
      (implies (not (consp acl2::x))
               (equal (vl-atts-p acl2::x)
                      (not acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-atts-p-of-cdr-when-vl-atts-p

    (defthm vl-atts-p-of-cdr-when-vl-atts-p
      (implies (vl-atts-p (double-rewrite acl2::x))
               (vl-atts-p (cdr acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-atts-p-of-cons

    (defthm vl-atts-p-of-cons
      (equal (vl-atts-p (cons acl2::a acl2::x))
             (and (and (consp acl2::a)
                       (stringp (car acl2::a))
                       (vl-maybe-expr-p (cdr acl2::a)))
                  (vl-atts-p acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-atts-p-of-remove-assoc

    (defthm vl-atts-p-of-remove-assoc
      (implies (vl-atts-p acl2::x)
               (vl-atts-p (remove-assoc-equal acl2::name acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-atts-p-of-put-assoc

    (defthm vl-atts-p-of-put-assoc
     (implies
         (and (vl-atts-p acl2::x))
         (iff (vl-atts-p (put-assoc-equal acl2::name acl2::val acl2::x))
              (and (stringp acl2::name)
                   (vl-maybe-expr-p acl2::val))))
     :rule-classes ((:rewrite)))

    Theorem: vl-atts-p-of-fast-alist-clean

    (defthm vl-atts-p-of-fast-alist-clean
      (implies (vl-atts-p acl2::x)
               (vl-atts-p (fast-alist-clean acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-atts-p-of-hons-shrink-alist

    (defthm vl-atts-p-of-hons-shrink-alist
      (implies (and (vl-atts-p acl2::x)
                    (vl-atts-p acl2::y))
               (vl-atts-p (hons-shrink-alist acl2::x acl2::y)))
      :rule-classes ((:rewrite)))

    Theorem: vl-atts-p-of-hons-acons

    (defthm vl-atts-p-of-hons-acons
      (equal (vl-atts-p (hons-acons acl2::a acl2::n acl2::x))
             (and (stringp acl2::a)
                  (vl-maybe-expr-p acl2::n)
                  (vl-atts-p acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-maybe-expr-p-of-cdr-of-hons-assoc-equal-when-vl-atts-p

    (defthm vl-maybe-expr-p-of-cdr-of-hons-assoc-equal-when-vl-atts-p
     (implies
         (vl-atts-p acl2::x)
         (iff (vl-maybe-expr-p (cdr (hons-assoc-equal acl2::k acl2::x)))
              (or (hons-assoc-equal acl2::k acl2::x)
                  (vl-maybe-expr-p nil))))
     :rule-classes ((:rewrite)))

    Theorem: alistp-when-vl-atts-p-rewrite

    (defthm alistp-when-vl-atts-p-rewrite
      (implies (vl-atts-p acl2::x)
               (alistp acl2::x))
      :rule-classes ((:rewrite)))

    Theorem: alistp-when-vl-atts-p

    (defthm alistp-when-vl-atts-p
      (implies (vl-atts-p acl2::x)
               (alistp acl2::x))
      :rule-classes :tau-system)

    Theorem: vl-maybe-expr-p-of-cdar-when-vl-atts-p

    (defthm vl-maybe-expr-p-of-cdar-when-vl-atts-p
      (implies (vl-atts-p acl2::x)
               (iff (vl-maybe-expr-p (cdar acl2::x))
                    (or (consp acl2::x)
                        (vl-maybe-expr-p nil))))
      :rule-classes ((:rewrite)))

    Theorem: stringp-of-caar-when-vl-atts-p

    (defthm stringp-of-caar-when-vl-atts-p
      (implies (vl-atts-p acl2::x)
               (iff (stringp (caar acl2::x))
                    (or (consp acl2::x) (stringp nil))))
      :rule-classes ((:rewrite)))