• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • 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-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

    Vl-locationlist-equiv

    Basic equivalence relation for vl-locationlist structures.

    Definitions and Theorems

    Function: vl-locationlist-equiv$inline

    (defun vl-locationlist-equiv$inline (acl2::x acl2::y)
      (declare (xargs :guard (and (vl-locationlist-p acl2::x)
                                  (vl-locationlist-p acl2::y))))
      (equal (vl-locationlist-fix acl2::x)
             (vl-locationlist-fix acl2::y)))

    Theorem: vl-locationlist-equiv-is-an-equivalence

    (defthm vl-locationlist-equiv-is-an-equivalence
      (and (booleanp (vl-locationlist-equiv x y))
           (vl-locationlist-equiv x x)
           (implies (vl-locationlist-equiv x y)
                    (vl-locationlist-equiv y x))
           (implies (and (vl-locationlist-equiv x y)
                         (vl-locationlist-equiv y z))
                    (vl-locationlist-equiv x z)))
      :rule-classes (:equivalence))

    Theorem: vl-locationlist-equiv-implies-equal-vl-locationlist-fix-1

    (defthm vl-locationlist-equiv-implies-equal-vl-locationlist-fix-1
      (implies (vl-locationlist-equiv acl2::x x-equiv)
               (equal (vl-locationlist-fix acl2::x)
                      (vl-locationlist-fix x-equiv)))
      :rule-classes (:congruence))

    Theorem: vl-locationlist-fix-under-vl-locationlist-equiv

    (defthm vl-locationlist-fix-under-vl-locationlist-equiv
      (vl-locationlist-equiv (vl-locationlist-fix acl2::x)
                             acl2::x)
      :rule-classes (:rewrite :rewrite-quoted-constant))

    Theorem: equal-of-vl-locationlist-fix-1-forward-to-vl-locationlist-equiv

    (defthm
        equal-of-vl-locationlist-fix-1-forward-to-vl-locationlist-equiv
      (implies (equal (vl-locationlist-fix acl2::x)
                      acl2::y)
               (vl-locationlist-equiv acl2::x acl2::y))
      :rule-classes :forward-chaining)

    Theorem: equal-of-vl-locationlist-fix-2-forward-to-vl-locationlist-equiv

    (defthm
        equal-of-vl-locationlist-fix-2-forward-to-vl-locationlist-equiv
      (implies (equal acl2::x (vl-locationlist-fix acl2::y))
               (vl-locationlist-equiv acl2::x acl2::y))
      :rule-classes :forward-chaining)

    Theorem: vl-locationlist-equiv-of-vl-locationlist-fix-1-forward

    (defthm vl-locationlist-equiv-of-vl-locationlist-fix-1-forward
      (implies (vl-locationlist-equiv (vl-locationlist-fix acl2::x)
                                      acl2::y)
               (vl-locationlist-equiv acl2::x acl2::y))
      :rule-classes :forward-chaining)

    Theorem: vl-locationlist-equiv-of-vl-locationlist-fix-2-forward

    (defthm vl-locationlist-equiv-of-vl-locationlist-fix-2-forward
      (implies
           (vl-locationlist-equiv acl2::x (vl-locationlist-fix acl2::y))
           (vl-locationlist-equiv acl2::x acl2::y))
      :rule-classes :forward-chaining)