• 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
            • Parse-expressions
            • Parse-udps
            • Parse-statements
            • Parse-property
            • Vl-genelements
            • Parse-paramdecls
            • Parse-blockitems
            • Parse-utils
            • Parse-insts
            • Parse-functions
            • Parse-assignments
            • Parse-clocking
            • Parse-strengths
            • Vl-parse-genvar-declaration
            • Vl-parse
            • Parse-netdecls
              • Vl-build-netdecls
              • Vl-parse-net-declaration-finish
              • Vl-parse-net-declaration
              • Vl-build-netdecls-aux
              • Vl-parse-list-of-net-identifiers
              • Vl-parse-netdecltype
              • Vl-netdecls-error
              • Vl-parse-optional-nettype
              • Vl-atomify-assignpairs
              • Vl-rangelist-list
                • Vl-rangelist-list-fix
                • Vl-rangelist-list-equiv
                  • Vl-rangelist-list-p
                • Vl-netdeclassigns-check-array-assigns
                • Vl-netdeclassigns-characterize
              • Parse-asserts
              • Vl-maybe-parse-lifetime
              • Parse-dpi-import-export
              • Parse-ports
              • Parse-timeunits
              • Seq
              • Parse-packages
              • Parse-eventctrl
            • 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-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-rangelist-list

    Vl-rangelist-list-equiv

    Basic equivalence relation for vl-rangelist-list structures.

    Definitions and Theorems

    Function: vl-rangelist-list-equiv$inline

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

    Theorem: vl-rangelist-list-equiv-is-an-equivalence

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

    Theorem: vl-rangelist-list-equiv-implies-equal-vl-rangelist-list-fix-1

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

    Theorem: vl-rangelist-list-fix-under-vl-rangelist-list-equiv

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

    Theorem: equal-of-vl-rangelist-list-fix-1-forward-to-vl-rangelist-list-equiv

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

    Theorem: equal-of-vl-rangelist-list-fix-2-forward-to-vl-rangelist-list-equiv

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

    Theorem: vl-rangelist-list-equiv-of-vl-rangelist-list-fix-1-forward

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

    Theorem: vl-rangelist-list-equiv-of-vl-rangelist-list-fix-2-forward

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