• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
        • Symbolic-test-vectors
        • Esim-primitives
        • E-conversion
        • Esim-steps
        • Patterns
        • Mod-internal-paths
        • Defmodules
          • Vl-translation-p
          • Vl-simplify
            • Vl-warn-problem-modulelist
              • Propagating-errors
              • Vl-simpconfig
              • Vl-simplify-main
              • Vl-warn-problem-module
              • Vl-design-problem-mods
            • Defmodules-fn
          • Esim-simplify-update-fns
          • Esim-tutorial
          • Esim-vl
        • Vl2014
        • Sv
        • Vwsim
        • Fgl
        • Vl
        • Svl
        • X86isa
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-simplify

    Vl-warn-problem-modulelist

    Extend vl-warn-problem-modulelist to a list of modules.

    Signature
    (vl-warn-problem-modulelist x problems) → *

    This is an ordinary defprojection.

    Definitions and Theorems

    Function: vl-warn-problem-modulelist-exec

    (defun vl-warn-problem-modulelist-exec (x problems acc)
      (declare (xargs :guard (and (vl-modulelist-p x)
                                  (string-listp problems))))
      (let ((__function__ 'vl-warn-problem-modulelist-exec))
        (declare (ignorable __function__))
        (if (consp x)
            (vl-warn-problem-modulelist-exec
                 (cdr x)
                 problems
                 (cons (vl-warn-problem-module (car x)
                                               problems)
                       acc))
          acc)))

    Function: vl-warn-problem-modulelist-nrev

    (defun vl-warn-problem-modulelist-nrev (x problems nrev)
      (declare (xargs :stobjs (nrev)))
      (declare (xargs :guard (and (vl-modulelist-p x)
                                  (string-listp problems))))
      (let ((__function__ 'vl-warn-problem-modulelist-nrev))
        (declare (ignorable __function__))
        (if (atom x)
            (nrev-fix nrev)
          (let ((nrev (nrev-push (vl-warn-problem-module (car x)
                                                         problems)
                                 nrev)))
            (vl-warn-problem-modulelist-nrev (cdr x)
                                             problems nrev)))))

    Function: vl-warn-problem-modulelist

    (defun vl-warn-problem-modulelist (x problems)
     (declare (xargs :guard (and (vl-modulelist-p x)
                                 (string-listp problems))))
     (let ((__function__ 'vl-warn-problem-modulelist))
      (declare (ignorable __function__))
      (mbe :logic
           (if (consp x)
               (cons (vl-warn-problem-module (car x)
                                             problems)
                     (vl-warn-problem-modulelist (cdr x)
                                                 problems))
             nil)
           :exec
           (if (atom x)
               nil
             (with-local-nrev
                  (vl-warn-problem-modulelist-nrev x problems nrev))))))

    Theorem: vl-warn-problem-modulelist-of-update-nth

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

    Theorem: vl-warn-problem-modulelist-of-revappend

    (defthm vl-warn-problem-modulelist-of-revappend
      (equal (vl-warn-problem-modulelist (revappend acl2::x acl2::y)
                                         problems)
             (revappend (vl-warn-problem-modulelist acl2::x problems)
                        (vl-warn-problem-modulelist acl2::y problems)))
      :rule-classes ((:rewrite)))

    Theorem: nthcdr-of-vl-warn-problem-modulelist

    (defthm nthcdr-of-vl-warn-problem-modulelist
      (equal (nthcdr acl2::n
                     (vl-warn-problem-modulelist acl2::x problems))
             (vl-warn-problem-modulelist (nthcdr acl2::n acl2::x)
                                         problems))
      :rule-classes ((:rewrite)))

    Theorem: nth-of-vl-warn-problem-modulelist

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

    Theorem: vl-warn-problem-modulelist-nrev-removal

    (defthm vl-warn-problem-modulelist-nrev-removal
      (equal (vl-warn-problem-modulelist-nrev acl2::x problems nrev)
             (append nrev
                     (vl-warn-problem-modulelist acl2::x problems)))
      :rule-classes ((:rewrite)))

    Theorem: vl-warn-problem-modulelist-exec-removal

    (defthm vl-warn-problem-modulelist-exec-removal
     (equal (vl-warn-problem-modulelist-exec acl2::x problems acl2::acc)
            (revappend (vl-warn-problem-modulelist acl2::x problems)
                       acl2::acc))
     :rule-classes ((:rewrite)))

    Theorem: vl-warn-problem-modulelist-of-take

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

    Theorem: set-equiv-congruence-over-vl-warn-problem-modulelist

    (defthm set-equiv-congruence-over-vl-warn-problem-modulelist
     (implies (set-equiv acl2::x acl2::y)
              (set-equiv (vl-warn-problem-modulelist acl2::x problems)
                         (vl-warn-problem-modulelist acl2::y problems)))
     :rule-classes ((:congruence)))

    Theorem: subsetp-of-vl-warn-problem-modulelist-when-subsetp

    (defthm subsetp-of-vl-warn-problem-modulelist-when-subsetp
      (implies (subsetp acl2::x acl2::y)
               (subsetp (vl-warn-problem-modulelist acl2::x problems)
                        (vl-warn-problem-modulelist acl2::y problems)))
      :rule-classes ((:rewrite)))

    Theorem: member-of-vl-warn-problem-module-in-vl-warn-problem-modulelist

    (defthm
         member-of-vl-warn-problem-module-in-vl-warn-problem-modulelist
      (implies (member acl2::k acl2::x)
               (member (vl-warn-problem-module acl2::k problems)
                       (vl-warn-problem-modulelist acl2::x problems)))
      :rule-classes ((:rewrite)))

    Theorem: vl-warn-problem-modulelist-of-rev

    (defthm vl-warn-problem-modulelist-of-rev
      (equal (vl-warn-problem-modulelist (rev acl2::x)
                                         problems)
             (rev (vl-warn-problem-modulelist acl2::x problems)))
      :rule-classes ((:rewrite)))

    Theorem: vl-warn-problem-modulelist-of-list-fix

    (defthm vl-warn-problem-modulelist-of-list-fix
      (equal (vl-warn-problem-modulelist (list-fix acl2::x)
                                         problems)
             (vl-warn-problem-modulelist acl2::x problems))
      :rule-classes ((:rewrite)))

    Theorem: vl-warn-problem-modulelist-of-append

    (defthm vl-warn-problem-modulelist-of-append
      (equal (vl-warn-problem-modulelist (append acl2::a acl2::b)
                                         problems)
             (append (vl-warn-problem-modulelist acl2::a problems)
                     (vl-warn-problem-modulelist acl2::b problems)))
      :rule-classes ((:rewrite)))

    Theorem: cdr-of-vl-warn-problem-modulelist

    (defthm cdr-of-vl-warn-problem-modulelist
      (equal (cdr (vl-warn-problem-modulelist acl2::x problems))
             (vl-warn-problem-modulelist (cdr acl2::x)
                                         problems))
      :rule-classes ((:rewrite)))

    Theorem: car-of-vl-warn-problem-modulelist

    (defthm car-of-vl-warn-problem-modulelist
      (equal (car (vl-warn-problem-modulelist acl2::x problems))
             (and (consp acl2::x)
                  (vl-warn-problem-module (car acl2::x)
                                          problems)))
      :rule-classes ((:rewrite)))

    Theorem: vl-warn-problem-modulelist-under-iff

    (defthm vl-warn-problem-modulelist-under-iff
      (iff (vl-warn-problem-modulelist acl2::x problems)
           (consp acl2::x))
      :rule-classes ((:rewrite)))

    Theorem: consp-of-vl-warn-problem-modulelist

    (defthm consp-of-vl-warn-problem-modulelist
      (equal (consp (vl-warn-problem-modulelist acl2::x problems))
             (consp acl2::x))
      :rule-classes ((:rewrite)))

    Theorem: len-of-vl-warn-problem-modulelist

    (defthm len-of-vl-warn-problem-modulelist
      (equal (len (vl-warn-problem-modulelist acl2::x problems))
             (len acl2::x))
      :rule-classes ((:rewrite)))

    Theorem: true-listp-of-vl-warn-problem-modulelist

    (defthm true-listp-of-vl-warn-problem-modulelist
      (true-listp (vl-warn-problem-modulelist acl2::x problems))
      :rule-classes :type-prescription)

    Theorem: vl-warn-problem-modulelist-when-not-consp

    (defthm vl-warn-problem-modulelist-when-not-consp
      (implies (not (consp acl2::x))
               (equal (vl-warn-problem-modulelist acl2::x problems)
                      nil))
      :rule-classes ((:rewrite)))

    Theorem: vl-warn-problem-modulelist-of-cons

    (defthm vl-warn-problem-modulelist-of-cons
      (equal (vl-warn-problem-modulelist (cons acl2::a acl2::b)
                                         problems)
             (cons (vl-warn-problem-module acl2::a problems)
                   (vl-warn-problem-modulelist acl2::b problems)))
      :rule-classes ((:rewrite)))