• 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
          • Module
          • Lhs
            • Lhs.lisp
              • Lhs-vars-normorderedp
              • Lhs-norm
              • Lhatom-normorderedp
              • Lhs-normp
              • Svex-lhsrewrite-aux
              • Lhs-concat
              • Lhs-check-masks
              • Lhrange-combine
              • Svexarr-vars-aux
              • Assigns-check-masks
              • Svex->lhs-range
              • Svex-lhs-preproc-blkrev
              • Svarlist-boundedp-badguy
              • Driverlist-rest-after-strength
              • Aliases-normorderedp
              • Lhs-rsh
              • Lhs-cons
              • Svarlist-boundedp
                • Svarlist-boundedp-basics
                • Lhs-bitproj
                • Lhs-vars
                • Driver
                • Svex-override
                • Make-simple-lhs
                • Lhssvex-range-p
                • Lhs-override
                • Lhs-first-aux
                • Lhrange-combinable-dec
                • Lhrange-bitproj
                • Lhatom
                • Driverlist-values-of-strength
                • Lhs-rest-aux
                • Lhs-rest
                • Aliases-normorderedp-aux
                • Svexarr-vars
                • Lhsarr-to-svexarr
                • Svexarr-vars-witness-aux
                • Lhbit
                • Svex-lhsrewrite
                • Svar-boundedp
                • Lhs-decomp-aux
                • Svex->lhs-bound
                • Aliases-vars-aux
                • Svexarr
                • Svexarr-vars-witness
                • Svar-set-index
                • Lhsarr
                • Lhs-override-vars
                • Lhatom-eval-zero
                • Lhatom-bitproj
                • Lhrange-nextbit
                • Lhrange-combinable
                • Driverlist->svex
                • Svexlist-resolve
                • Lhs->svex-zero
                • Lhs-overridelist-vars
                • Lhs-overridelist-keys
                • Lhbit-eval
                • Driverlist-vars
                • Assigns-vars
                • Svex-int
                • Lhssvex-bounded-p
                • Lhslist-vars
                • Lhs-decomp
                • Lhatom-vars
                • Svar-map-vars
                • Lhssvex-unbounded-p
                • Lhspairs-vars
                • Lhs-width
                • Aliases-vars
                • Lhs-first
                • Svar-index
                • Assigns
                • Svar-indexedp
                • Lhspairs
                • Svex-overridelist
                • Lhslist
                • Lhs-overridelist
                • Driverlist
                • Svex-lhs-preproc
                • Svexarr-fix
                • Lhsarr-fix
              • Lhs-p
              • Lhs-fix
              • Lhrange
              • Lhs-eval-zx
              • Lhs-equiv
              • Lhs-eval
              • Lhs->svex
            • 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
    • Svarlist-boundedp

    Svarlist-boundedp-basics

    Basic theorems about svarlist-boundedp, generated by std::deflist.

    Definitions and Theorems

    Theorem: svarlist-boundedp-of-cons

    (defthm svarlist-boundedp-of-cons
      (equal (svarlist-boundedp (cons acl2::a x)
                                bound)
             (and (svar-boundedp acl2::a bound)
                  (svarlist-boundedp x bound)))
      :rule-classes ((:rewrite)))

    Theorem: svarlist-boundedp-of-cdr-when-svarlist-boundedp

    (defthm svarlist-boundedp-of-cdr-when-svarlist-boundedp
      (implies (svarlist-boundedp (double-rewrite x)
                                  bound)
               (svarlist-boundedp (cdr x) bound))
      :rule-classes ((:rewrite)))

    Theorem: svarlist-boundedp-when-not-consp

    (defthm svarlist-boundedp-when-not-consp
      (implies (not (consp x))
               (svarlist-boundedp x bound))
      :rule-classes ((:rewrite)))

    Theorem: svar-boundedp-of-car-when-svarlist-boundedp

    (defthm svar-boundedp-of-car-when-svarlist-boundedp
      (implies (svarlist-boundedp x bound)
               (iff (svar-boundedp (car x) bound)
                    (or (consp x)
                        (svar-boundedp nil bound))))
      :rule-classes ((:rewrite)))

    Theorem: svarlist-boundedp-of-append

    (defthm svarlist-boundedp-of-append
      (equal (svarlist-boundedp (append acl2::a acl2::b)
                                bound)
             (and (svarlist-boundedp acl2::a bound)
                  (svarlist-boundedp acl2::b bound)))
      :rule-classes ((:rewrite)))

    Theorem: svarlist-boundedp-of-list-fix

    (defthm svarlist-boundedp-of-list-fix
      (equal (svarlist-boundedp (list-fix x) bound)
             (svarlist-boundedp x bound))
      :rule-classes ((:rewrite)))

    Theorem: svarlist-boundedp-of-rev

    (defthm svarlist-boundedp-of-rev
      (equal (svarlist-boundedp (rev x) bound)
             (svarlist-boundedp (list-fix x) bound))
      :rule-classes ((:rewrite)))

    Theorem: svarlist-boundedp-of-repeat

    (defthm svarlist-boundedp-of-repeat
      (iff (svarlist-boundedp (repeat acl2::n x)
                              bound)
           (or (svar-boundedp x bound)
               (zp acl2::n)))
      :rule-classes ((:rewrite)))

    Theorem: svarlist-boundedp-of-rcons

    (defthm svarlist-boundedp-of-rcons
      (iff (svarlist-boundedp (acl2::rcons acl2::a x)
                              bound)
           (and (svar-boundedp acl2::a bound)
                (svarlist-boundedp (list-fix x) bound)))
      :rule-classes ((:rewrite)))

    Theorem: svar-boundedp-when-member-equal-of-svarlist-boundedp

    (defthm svar-boundedp-when-member-equal-of-svarlist-boundedp
      (and (implies (and (member-equal acl2::a x)
                         (svarlist-boundedp x bound))
                    (svar-boundedp acl2::a bound))
           (implies (and (svarlist-boundedp x bound)
                         (member-equal acl2::a x))
                    (svar-boundedp acl2::a bound)))
      :rule-classes ((:rewrite)))

    Theorem: svarlist-boundedp-when-subsetp-equal

    (defthm svarlist-boundedp-when-subsetp-equal
      (and (implies (and (subsetp-equal x y)
                         (svarlist-boundedp y bound))
                    (svarlist-boundedp x bound))
           (implies (and (svarlist-boundedp y bound)
                         (subsetp-equal x y))
                    (svarlist-boundedp x bound)))
      :rule-classes ((:rewrite)))

    Theorem: svarlist-boundedp-set-equiv-congruence

    (defthm svarlist-boundedp-set-equiv-congruence
      (implies (set-equiv x y)
               (equal (svarlist-boundedp x bound)
                      (svarlist-boundedp y bound)))
      :rule-classes :congruence)

    Theorem: svarlist-boundedp-of-set-difference-equal

    (defthm svarlist-boundedp-of-set-difference-equal
      (implies (svarlist-boundedp x bound)
               (svarlist-boundedp (set-difference-equal x y)
                                  bound))
      :rule-classes ((:rewrite)))

    Theorem: svarlist-boundedp-of-intersection-equal-1

    (defthm svarlist-boundedp-of-intersection-equal-1
      (implies (svarlist-boundedp (double-rewrite x)
                                  bound)
               (svarlist-boundedp (intersection-equal x y)
                                  bound))
      :rule-classes ((:rewrite)))

    Theorem: svarlist-boundedp-of-intersection-equal-2

    (defthm svarlist-boundedp-of-intersection-equal-2
      (implies (svarlist-boundedp (double-rewrite y)
                                  bound)
               (svarlist-boundedp (intersection-equal x y)
                                  bound))
      :rule-classes ((:rewrite)))

    Theorem: svarlist-boundedp-of-union-equal

    (defthm svarlist-boundedp-of-union-equal
      (equal (svarlist-boundedp (union-equal x y)
                                bound)
             (and (svarlist-boundedp (list-fix x) bound)
                  (svarlist-boundedp (double-rewrite y)
                                     bound)))
      :rule-classes ((:rewrite)))

    Theorem: svarlist-boundedp-of-update-nth

    (defthm svarlist-boundedp-of-update-nth
      (implies (svarlist-boundedp (double-rewrite x)
                                  bound)
               (iff (svarlist-boundedp (update-nth acl2::n y x)
                                       bound)
                    (and (svar-boundedp y bound)
                         (or (<= (nfix acl2::n) (len x))
                             (svar-boundedp nil bound)))))
      :rule-classes ((:rewrite)))

    Theorem: svarlist-boundedp-of-butlast

    (defthm svarlist-boundedp-of-butlast
      (implies (svarlist-boundedp (double-rewrite x)
                                  bound)
               (svarlist-boundedp (butlast x acl2::n)
                                  bound))
      :rule-classes ((:rewrite)))