• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
        • Warnings
        • Getting-started
        • Utilities
        • Printer
        • Kit
          • Vl-lint
            • Vl-lintconfig-p
            • Condcheck
            • Lint-warning-suppression
            • Lucid
            • Lvaluecheck
            • Vl-interfacelist-alwaysstyle
            • Truncation-warnings
            • Vl-modulelist-alwaysstyle
            • Skip-detection
            • Vl-lint-report
            • Vl-lintresult
            • Vl::vl-design-sv-use-set
            • Oddexpr-check
            • Leftright-check
            • Duplicate-detect
            • Selfassigns
            • *vl-lint-help*
            • Arith-compare-check
            • Dupeinst-check
            • Qmarksize-check
            • Lint-whole-file-suppression
            • Run-vl-lint-main
            • Logicassign
            • Run-vl-lint
            • Vl-print-certain-warnings
            • Duperhs-check
            • Vl-lint-top
            • Sd-filter-problems
            • Vl-modulelist-add-svbad-warnings
            • Vl-module-add-svbad-warnings
            • Check-case
            • Vl-lint-extra-actions
            • Drop-lint-stubs
            • Vl-lint-print-warnings
            • Drop-user-submodules
            • Check-namespace
              • Vl-modulelist-check-namespace
                • Vl-check-portdecl-and-moduleitem-compatible
                • Vl-check-portdecl-overlap-compatible
                • Vl-module-check-namespace
                • Vl-design-check-namespace
              • Vl-lintconfig-loadconfig
              • Vl-lint-design->svex-modalist-wrapper
              • Vl-delete-sd-problems-for-modnames-aux
              • Vl-collect-new-names-from-orignames
              • Vl-lint-print-all-warnings
              • Vl-design-remove-unnecessary-modules
              • Vl-delete-sd-problems-for-modnames
              • Vl-always-check-style
              • Vl-vardecllist-svbad-warnings
              • Vl-vardecl-svbad-warnings
              • Vl-reportcard-remove-suppressed
              • Vl-reportcard-keep-suppressed
              • Vl-alwayslist-check-style
              • Vl-remove-nameless-descriptions
              • Vl-lint-apply-quiet
              • Vl-warninglist-remove-suppressed
              • Vl-warninglist-keep-suppressed
              • Vl-print-eliminated-descs
              • Vl-module-alwaysstyle
              • Vl-jp-reportcard-aux
              • Vl-interface-alwaysstyle
              • Vl-design-alwaysstyle
              • Vl-jp-description-locations
              • Vl-jp-reportcard
              • Vl-pp-stringlist-lines
              • Vl-jp-design-locations
              • Vl-datatype-svbad-p
              • Unpacked-range-check
              • Sd-problem-major-p
              • Vl-alwaysstyle
            • Vl-server
            • Vl-gather
            • Vl-zip
            • Vl-main
            • Split-plusargs
            • Vl-shell
            • Vl-json
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Check-namespace

    Vl-modulelist-check-namespace

    (vl-modulelist-check-namespace x) maps vl-module-check-namespace across a list.

    Signature
    (vl-modulelist-check-namespace x) → new-x
    Arguments
    x — Guard (vl-modulelist-p x).
    Returns
    new-x — Type (vl-modulelist-p new-x).

    This is an ordinary defprojection.

    Definitions and Theorems

    Function: vl-modulelist-check-namespace-exec

    (defun vl-modulelist-check-namespace-exec (x acc)
      (declare (xargs :guard (vl-modulelist-p x)))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-modulelist-check-namespace-exec))
        (declare (ignorable __function__))
        (if (consp x)
            (vl-modulelist-check-namespace-exec
                 (cdr x)
                 (cons (vl-module-check-namespace (car x))
                       acc))
          acc)))

    Function: vl-modulelist-check-namespace-nrev

    (defun vl-modulelist-check-namespace-nrev (x nrev)
      (declare (xargs :stobjs (nrev)))
      (declare (xargs :guard (vl-modulelist-p x)))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-modulelist-check-namespace-nrev))
        (declare (ignorable __function__))
        (if (atom x)
            (nrev-fix nrev)
          (let ((nrev (nrev-push (vl-module-check-namespace (car x))
                                 nrev)))
            (vl-modulelist-check-namespace-nrev (cdr x)
                                                nrev)))))

    Function: vl-modulelist-check-namespace

    (defun vl-modulelist-check-namespace (x)
      (declare (xargs :guard (vl-modulelist-p x)))
      (declare (xargs :guard t))
      (let ((__function__ 'vl-modulelist-check-namespace))
        (declare (ignorable __function__))
        (mbe :logic
             (if (consp x)
                 (cons (vl-module-check-namespace (car x))
                       (vl-modulelist-check-namespace (cdr x)))
               nil)
             :exec
             (if (atom x)
                 nil
               (with-local-nrev
                    (vl-modulelist-check-namespace-nrev x nrev))))))

    Theorem: vl-modulelist-p-of-vl-modulelist-check-namespace

    (defthm vl-modulelist-p-of-vl-modulelist-check-namespace
      (b* ((new-x (vl-modulelist-check-namespace x)))
        (vl-modulelist-p new-x))
      :rule-classes :rewrite)

    Theorem: vl-modulelist-check-namespace-of-vl-modulelist-fix-x

    (defthm vl-modulelist-check-namespace-of-vl-modulelist-fix-x
      (equal (vl-modulelist-check-namespace (vl-modulelist-fix x))
             (vl-modulelist-check-namespace x)))

    Theorem: vl-modulelist-check-namespace-vl-modulelist-equiv-congruence-on-x

    (defthm
      vl-modulelist-check-namespace-vl-modulelist-equiv-congruence-on-x
      (implies (vl-modulelist-equiv x x-equiv)
               (equal (vl-modulelist-check-namespace x)
                      (vl-modulelist-check-namespace x-equiv)))
      :rule-classes :congruence)

    Theorem: vl-modulelist-check-namespace-of-update-nth

    (defthm vl-modulelist-check-namespace-of-update-nth
      (implies
           (<= (nfix acl2::n) (len acl2::x))
           (equal (vl-modulelist-check-namespace
                       (update-nth acl2::n acl2::v acl2::x))
                  (update-nth acl2::n
                              (vl-module-check-namespace acl2::v)
                              (vl-modulelist-check-namespace acl2::x))))
      :rule-classes ((:rewrite)))

    Theorem: vl-modulelist-check-namespace-of-revappend

    (defthm vl-modulelist-check-namespace-of-revappend
      (equal (vl-modulelist-check-namespace (revappend acl2::x acl2::y))
             (revappend (vl-modulelist-check-namespace acl2::x)
                        (vl-modulelist-check-namespace acl2::y)))
      :rule-classes ((:rewrite)))

    Theorem: nthcdr-of-vl-modulelist-check-namespace

    (defthm nthcdr-of-vl-modulelist-check-namespace
      (equal (nthcdr acl2::n
                     (vl-modulelist-check-namespace acl2::x))
             (vl-modulelist-check-namespace (nthcdr acl2::n acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: nth-of-vl-modulelist-check-namespace

    (defthm nth-of-vl-modulelist-check-namespace
      (equal (nth acl2::n
                  (vl-modulelist-check-namespace acl2::x))
             (and (< (nfix acl2::n) (len acl2::x))
                  (vl-module-check-namespace (nth acl2::n acl2::x))))
      :rule-classes ((:rewrite)))

    Theorem: vl-modulelist-check-namespace-of-take

    (defthm vl-modulelist-check-namespace-of-take
      (implies
           (<= (nfix acl2::n) (len acl2::x))
           (equal (vl-modulelist-check-namespace (take acl2::n acl2::x))
                  (take acl2::n
                        (vl-modulelist-check-namespace acl2::x))))
      :rule-classes ((:rewrite)))

    Theorem: set-equiv-congruence-over-vl-modulelist-check-namespace

    (defthm set-equiv-congruence-over-vl-modulelist-check-namespace
      (implies (set-equiv acl2::x acl2::y)
               (set-equiv (vl-modulelist-check-namespace acl2::x)
                          (vl-modulelist-check-namespace acl2::y)))
      :rule-classes ((:congruence)))

    Theorem: subsetp-of-vl-modulelist-check-namespace-when-subsetp

    (defthm subsetp-of-vl-modulelist-check-namespace-when-subsetp
      (implies (subsetp acl2::x acl2::y)
               (subsetp (vl-modulelist-check-namespace acl2::x)
                        (vl-modulelist-check-namespace acl2::y)))
      :rule-classes ((:rewrite)))

    Theorem: member-of-vl-module-check-namespace-in-vl-modulelist-check-namespace

    (defthm
     member-of-vl-module-check-namespace-in-vl-modulelist-check-namespace
     (implies (member acl2::k acl2::x)
              (member (vl-module-check-namespace acl2::k)
                      (vl-modulelist-check-namespace acl2::x)))
     :rule-classes ((:rewrite)))

    Theorem: vl-modulelist-check-namespace-nrev-removal

    (defthm vl-modulelist-check-namespace-nrev-removal
      (equal (vl-modulelist-check-namespace-nrev acl2::x nrev)
             (append nrev
                     (vl-modulelist-check-namespace acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-modulelist-check-namespace-exec-removal

    (defthm vl-modulelist-check-namespace-exec-removal
      (equal (vl-modulelist-check-namespace-exec acl2::x acl2::acc)
             (revappend (vl-modulelist-check-namespace acl2::x)
                        acl2::acc))
      :rule-classes ((:rewrite)))

    Theorem: vl-modulelist-check-namespace-of-rev

    (defthm vl-modulelist-check-namespace-of-rev
      (equal (vl-modulelist-check-namespace (rev acl2::x))
             (rev (vl-modulelist-check-namespace acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-modulelist-check-namespace-of-list-fix

    (defthm vl-modulelist-check-namespace-of-list-fix
      (equal (vl-modulelist-check-namespace (list-fix acl2::x))
             (vl-modulelist-check-namespace acl2::x))
      :rule-classes ((:rewrite)))

    Theorem: vl-modulelist-check-namespace-of-append

    (defthm vl-modulelist-check-namespace-of-append
      (equal (vl-modulelist-check-namespace (append acl2::a acl2::b))
             (append (vl-modulelist-check-namespace acl2::a)
                     (vl-modulelist-check-namespace acl2::b)))
      :rule-classes ((:rewrite)))

    Theorem: cdr-of-vl-modulelist-check-namespace

    (defthm cdr-of-vl-modulelist-check-namespace
      (equal (cdr (vl-modulelist-check-namespace acl2::x))
             (vl-modulelist-check-namespace (cdr acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: car-of-vl-modulelist-check-namespace

    (defthm car-of-vl-modulelist-check-namespace
      (equal (car (vl-modulelist-check-namespace acl2::x))
             (and (consp acl2::x)
                  (vl-module-check-namespace (car acl2::x))))
      :rule-classes ((:rewrite)))

    Theorem: vl-modulelist-check-namespace-under-iff

    (defthm vl-modulelist-check-namespace-under-iff
      (iff (vl-modulelist-check-namespace acl2::x)
           (consp acl2::x))
      :rule-classes ((:rewrite)))

    Theorem: consp-of-vl-modulelist-check-namespace

    (defthm consp-of-vl-modulelist-check-namespace
      (equal (consp (vl-modulelist-check-namespace acl2::x))
             (consp acl2::x))
      :rule-classes ((:rewrite)))

    Theorem: len-of-vl-modulelist-check-namespace

    (defthm len-of-vl-modulelist-check-namespace
      (equal (len (vl-modulelist-check-namespace acl2::x))
             (len acl2::x))
      :rule-classes ((:rewrite)))

    Theorem: true-listp-of-vl-modulelist-check-namespace

    (defthm true-listp-of-vl-modulelist-check-namespace
      (true-listp (vl-modulelist-check-namespace acl2::x))
      :rule-classes :type-prescription)

    Theorem: vl-modulelist-check-namespace-when-not-consp

    (defthm vl-modulelist-check-namespace-when-not-consp
      (implies (not (consp acl2::x))
               (equal (vl-modulelist-check-namespace acl2::x)
                      nil))
      :rule-classes ((:rewrite)))

    Theorem: vl-modulelist-check-namespace-of-cons

    (defthm vl-modulelist-check-namespace-of-cons
      (equal (vl-modulelist-check-namespace (cons acl2::a acl2::b))
             (cons (vl-module-check-namespace acl2::a)
                   (vl-modulelist-check-namespace acl2::b)))
      :rule-classes ((:rewrite)))