• 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
          • Preprocessor
          • Vl-loadconfig
          • Vl-loadstate
          • Lexer
          • Parser
          • Vl-load-merge-descriptions
          • Vl-find-basename/extension
          • Vl-load-file
          • Vl-loadresult
          • Scope-of-defines
          • Vl-find-file
          • Vl-flush-out-descriptions
          • Vl-description
          • Vl-read-file
          • Vl-includeskips-report-gather
          • Vl-load-main
          • Extended-characters
            • Vl-location
              • Vl-location-p
              • Vl-string-between-locs
              • Vl-location-between-p
              • Vl-string-findloc
              • Vl-linecol
              • Vl-location-string
              • Vl-location-fix
              • Vl-location->line
              • Vl-location->filename
              • Vl-location->col
              • Vl-locationlist
                • Vl-locationlist-fix
                • Vl-locationlist-equiv
                • Vl-locationlist-p
                  • Vl-locationlist-p-basics
                • *vl-fakeloc*
              • Vl-echar-p
              • Vl-echarlist->chars
              • Vl-echarlist-from-chars
              • Vl-echarlist-from-str
              • Vl-echarlist-unsigned-value
              • Vl-change-echarlist-locations
              • Vl-echar-digit-value
              • Vl-echarlist->string
            • Vl-load
            • Vl-load-description
            • Vl-descriptions-left-to-load
            • Inject-warnings
            • Vl-preprocess-debug
            • Vl-write-preprocessor-debug-file
            • Vl-read-file-report-gather
            • Vl-load-descriptions
            • Vl-load-files
            • Translate-off
            • Vl-load-read-file-hook
            • Vl-read-file-report
            • Vl-loadstate-pad
            • Vl-load-summary
            • Vl-collect-modules-from-descriptions
            • Vl-loadstate->warnings
            • Vl-iskips-report
            • Vl-descriptionlist
          • Warnings
          • Getting-started
          • Utilities
          • Printer
          • Kit
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-locationlist-p

    Vl-locationlist-p-basics

    Basic theorems about vl-locationlist-p, generated by deflist.

    Definitions and Theorems

    Theorem: vl-locationlist-p-of-cons

    (defthm vl-locationlist-p-of-cons
      (equal (vl-locationlist-p (cons acl2::a acl2::x))
             (and (vl-location-p acl2::a)
                  (vl-locationlist-p acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-locationlist-p-of-cdr-when-vl-locationlist-p

    (defthm vl-locationlist-p-of-cdr-when-vl-locationlist-p
      (implies (vl-locationlist-p (double-rewrite acl2::x))
               (vl-locationlist-p (cdr acl2::x)))
      :rule-classes ((:rewrite)))

    Theorem: vl-locationlist-p-when-not-consp

    (defthm vl-locationlist-p-when-not-consp
      (implies (not (consp acl2::x))
               (vl-locationlist-p acl2::x))
      :rule-classes ((:rewrite)))

    Theorem: vl-location-p-of-car-when-vl-locationlist-p

    (defthm vl-location-p-of-car-when-vl-locationlist-p
      (implies (vl-locationlist-p acl2::x)
               (iff (vl-location-p (car acl2::x))
                    (or (consp acl2::x)
                        (vl-location-p nil))))
      :rule-classes ((:rewrite)))

    Theorem: vl-locationlist-p-of-append

    (defthm vl-locationlist-p-of-append
      (equal (vl-locationlist-p (append acl2::a acl2::b))
             (and (vl-locationlist-p acl2::a)
                  (vl-locationlist-p acl2::b)))
      :rule-classes ((:rewrite)))

    Theorem: vl-locationlist-p-of-list-fix

    (defthm vl-locationlist-p-of-list-fix
      (equal (vl-locationlist-p (list-fix acl2::x))
             (vl-locationlist-p acl2::x))
      :rule-classes ((:rewrite)))

    Theorem: vl-locationlist-p-of-rev

    (defthm vl-locationlist-p-of-rev
      (equal (vl-locationlist-p (rev acl2::x))
             (vl-locationlist-p (list-fix acl2::x)))
      :rule-classes ((:rewrite)))