• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
        • Svex-stvs
        • Svex-decomposition-methodology
        • Sv-versus-esim
        • Svex-decomp
        • Svex-compose-dfs
        • Svex-compilation
        • Moddb
        • Svmods
          • Address
          • Wire
            • Wire-fix
            • Wire-p
            • Make-wire
            • Wire-equiv
            • Change-wire
            • Wire->name
            • Wire->low-idx
            • Wire->delay
            • Wire->width
            • Wire->type
            • Wire->atts
            • Wirelist
              • Wirelist-fix
              • Wirelist->names
              • Wirelist-p
                • Wirelist-p-basics
                • Wirelist-find
                • Wirelist-equiv
              • Wire->revp
              • Wiretype
            • Module
            • Lhs
            • Path
            • Svar-add-namespace
            • Design
            • Modinst
            • Lhs-add-namespace
            • Modalist
            • Path-add-namespace
            • Modname->submodnames
            • Name
            • Constraintlist-addr-p
            • Svex-alist-addr-p
            • Svar-map-addr-p
            • Lhspairs-addr-p
            • Modname
            • Assigns-addr-p
            • Lhs-addr-p
            • Lhatom-addr-p
            • Modhier-list-measure
            • Attributes
            • Modhier-measure
            • Modhier-list-measure-aux
            • Modhier-loopfreelist-p
            • Modhier-loopfree-p
          • Svstmt
          • Sv-tutorial
          • Expressions
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Wirelist-p

    Wirelist-p-basics

    Basic theorems about wirelist-p, generated by std::deflist.

    Definitions and Theorems

    Theorem: wirelist-p-of-cons

    (defthm wirelist-p-of-cons
      (equal (wirelist-p (cons acl2::a x))
             (and (wire-p acl2::a) (wirelist-p x)))
      :rule-classes ((:rewrite)))

    Theorem: wirelist-p-of-cdr-when-wirelist-p

    (defthm wirelist-p-of-cdr-when-wirelist-p
      (implies (wirelist-p (double-rewrite x))
               (wirelist-p (cdr x)))
      :rule-classes ((:rewrite)))

    Theorem: wirelist-p-when-not-consp

    (defthm wirelist-p-when-not-consp
      (implies (not (consp x))
               (equal (wirelist-p x) (not x)))
      :rule-classes ((:rewrite)))

    Theorem: wire-p-of-car-when-wirelist-p

    (defthm wire-p-of-car-when-wirelist-p
      (implies (wirelist-p x)
               (iff (wire-p (car x))
                    (or (consp x) (wire-p nil))))
      :rule-classes ((:rewrite)))

    Theorem: true-listp-when-wirelist-p-compound-recognizer

    (defthm true-listp-when-wirelist-p-compound-recognizer
      (implies (wirelist-p x) (true-listp x))
      :rule-classes :compound-recognizer)

    Theorem: wirelist-p-of-list-fix

    (defthm wirelist-p-of-list-fix
      (implies (wirelist-p x)
               (wirelist-p (list-fix x)))
      :rule-classes ((:rewrite)))

    Theorem: wirelist-p-of-rev

    (defthm wirelist-p-of-rev
      (equal (wirelist-p (rev x))
             (wirelist-p (list-fix x)))
      :rule-classes ((:rewrite)))

    Theorem: wirelist-p-of-repeat

    (defthm wirelist-p-of-repeat
      (iff (wirelist-p (repeat acl2::n x))
           (or (wire-p x) (zp acl2::n)))
      :rule-classes ((:rewrite)))

    Theorem: wirelist-p-of-append

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

    Theorem: wirelist-p-of-take

    (defthm wirelist-p-of-take
      (implies (wirelist-p (double-rewrite x))
               (iff (wirelist-p (take acl2::n x))
                    (or (wire-p nil)
                        (<= (nfix acl2::n) (len x)))))
      :rule-classes ((:rewrite)))

    Theorem: wirelist-p-of-butlast

    (defthm wirelist-p-of-butlast
      (implies (wirelist-p (double-rewrite x))
               (wirelist-p (butlast x acl2::n)))
      :rule-classes ((:rewrite)))