• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
            • Following-hids
              • Vl-follow-hidexpr
              • Vl-partselect-type-top-dimension-replacement
              • Vl-hidindex-datatype-resolve-dims
              • Vl-follow-hidexpr-error
              • Vl-follow-hidexpr-dimscheck
                • Vl-follow-hidexpr-dimscheck-aux
                • Vl-index-find-type
                • Vl-follow-hidexpr-dimcheck
                • Vl-partselect-expr-type
                • Vl-ss-find-hidexpr-range!!
                • Vl-hidstep
                • Vl-ss-find-hidexpr-range
                • Vl-genarrayblocklist-find-block
                • Vl-flatten-hidindex
                • Vl-hidexpr-resolved-p
                • Vl-flatten-hidexpr
                • Vl-hidindex-resolved-p
                • Vl-hidtrace
              • Vl-hidexpr-traverse-datatype
              • Abstract-hids
              • Vl-hidexpr-find-type
            • 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-follow-hidexpr-dimscheck

    Vl-follow-hidexpr-dimscheck-aux

    Main loop to check each index/dimension pair.

    Signature
    (vl-follow-hidexpr-dimscheck-aux name indices dims &key strictp) 
      → 
    err
    Arguments
    name — Guard (stringp name).
    indices — Guard (vl-exprlist-p indices).
    dims — Guard (vl-packeddimensionlist-p dims).
    strictp — Guard (booleanp strictp).
    Returns
    err — Type (maybe-stringp err).

    Definitions and Theorems

    Function: vl-follow-hidexpr-dimscheck-aux-fn

    (defun vl-follow-hidexpr-dimscheck-aux-fn
           (name indices dims strictp)
      (declare (xargs :guard (and (stringp name)
                                  (vl-exprlist-p indices)
                                  (vl-packeddimensionlist-p dims)
                                  (booleanp strictp))))
      (declare (xargs :guard (same-lengthp indices dims)))
      (let ((__function__ 'vl-follow-hidexpr-dimscheck-aux))
        (declare (ignorable __function__))
        (if (atom indices)
            nil
          (or (vl-follow-hidexpr-dimcheck name (car indices)
                                          (car dims)
                                          :strictp strictp)
              (vl-follow-hidexpr-dimscheck-aux name (cdr indices)
                                               (cdr dims)
                                               :strictp strictp)))))

    Theorem: maybe-stringp-of-vl-follow-hidexpr-dimscheck-aux

    (defthm maybe-stringp-of-vl-follow-hidexpr-dimscheck-aux
     (b*
      ((err
        (vl-follow-hidexpr-dimscheck-aux-fn name indices dims strictp)))
      (maybe-stringp err))
     :rule-classes :type-prescription)

    Theorem: vl-follow-hidexpr-dimscheck-aux-fn-of-str-fix-name

    (defthm vl-follow-hidexpr-dimscheck-aux-fn-of-str-fix-name
     (equal
        (vl-follow-hidexpr-dimscheck-aux-fn (str-fix name)
                                            indices dims strictp)
        (vl-follow-hidexpr-dimscheck-aux-fn name indices dims strictp)))

    Theorem: vl-follow-hidexpr-dimscheck-aux-fn-streqv-congruence-on-name

    (defthm vl-follow-hidexpr-dimscheck-aux-fn-streqv-congruence-on-name
     (implies
      (streqv name name-equiv)
      (equal
          (vl-follow-hidexpr-dimscheck-aux-fn name indices dims strictp)
          (vl-follow-hidexpr-dimscheck-aux-fn
               name-equiv indices dims strictp)))
     :rule-classes :congruence)

    Theorem: vl-follow-hidexpr-dimscheck-aux-fn-of-vl-exprlist-fix-indices

    (defthm
          vl-follow-hidexpr-dimscheck-aux-fn-of-vl-exprlist-fix-indices
     (equal
      (vl-follow-hidexpr-dimscheck-aux-fn name (vl-exprlist-fix indices)
                                          dims strictp)
      (vl-follow-hidexpr-dimscheck-aux-fn name indices dims strictp)))

    Theorem: vl-follow-hidexpr-dimscheck-aux-fn-vl-exprlist-equiv-congruence-on-indices

    (defthm
     vl-follow-hidexpr-dimscheck-aux-fn-vl-exprlist-equiv-congruence-on-indices
     (implies
      (vl-exprlist-equiv indices indices-equiv)
      (equal
          (vl-follow-hidexpr-dimscheck-aux-fn name indices dims strictp)
          (vl-follow-hidexpr-dimscheck-aux-fn
               name indices-equiv dims strictp)))
     :rule-classes :congruence)

    Theorem: vl-follow-hidexpr-dimscheck-aux-fn-of-vl-packeddimensionlist-fix-dims

    (defthm
     vl-follow-hidexpr-dimscheck-aux-fn-of-vl-packeddimensionlist-fix-dims
     (equal
        (vl-follow-hidexpr-dimscheck-aux-fn
             name indices
             (vl-packeddimensionlist-fix dims)
             strictp)
        (vl-follow-hidexpr-dimscheck-aux-fn name indices dims strictp)))

    Theorem: vl-follow-hidexpr-dimscheck-aux-fn-vl-packeddimensionlist-equiv-congruence-on-dims

    (defthm
     vl-follow-hidexpr-dimscheck-aux-fn-vl-packeddimensionlist-equiv-congruence-on-dims
     (implies
      (vl-packeddimensionlist-equiv dims dims-equiv)
      (equal
          (vl-follow-hidexpr-dimscheck-aux-fn name indices dims strictp)
          (vl-follow-hidexpr-dimscheck-aux-fn
               name indices dims-equiv strictp)))
     :rule-classes :congruence)

    Theorem: vl-follow-hidexpr-dimscheck-aux-fn-of-bool-fix-strictp

    (defthm vl-follow-hidexpr-dimscheck-aux-fn-of-bool-fix-strictp
     (equal
        (vl-follow-hidexpr-dimscheck-aux-fn
             name
             indices dims (acl2::bool-fix strictp))
        (vl-follow-hidexpr-dimscheck-aux-fn name indices dims strictp)))

    Theorem: vl-follow-hidexpr-dimscheck-aux-fn-iff-congruence-on-strictp

    (defthm vl-follow-hidexpr-dimscheck-aux-fn-iff-congruence-on-strictp
     (implies
      (iff strictp strictp-equiv)
      (equal
          (vl-follow-hidexpr-dimscheck-aux-fn name indices dims strictp)
          (vl-follow-hidexpr-dimscheck-aux-fn
               name indices dims strictp-equiv)))
     :rule-classes :congruence)