• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
          • Preprocessor
          • Vl-loadconfig
          • Lexer
          • Vl-loadstate
            • Vl-loadstate-fix
            • Vl-loadstate-p
            • Make-vl-loadstate
            • Vl-loadstate-equiv
              • Change-vl-loadstate
              • Vl-loadstate->reportcard
              • Vl-loadstate->descalist
              • Vl-loadstate->pstate
              • Vl-loadstate->filemap
              • Vl-loadstate->descs
              • Vl-loadstate->defines
              • Vl-loadstate->config
            • Parser
            • Vl-load-merge-descriptions
            • Scope-of-defines
            • Vl-load-file
            • Vl-flush-out-descriptions
            • Vl-description
            • Vl-loadresult
            • Vl-read-file
            • Vl-find-basename/extension
            • Vl-find-file
            • Vl-read-files
            • Extended-characters
            • Vl-load
            • Vl-load-main
            • Vl-load-description
            • Vl-descriptions-left-to-load
            • Inject-warnings
            • Vl-load-descriptions
            • Vl-load-files
            • Vl-load-summary
            • Vl-collect-modules-from-descriptions
            • Vl-descriptionlist
          • Transforms
          • Lint
          • Mlib
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-loadstate

    Vl-loadstate-equiv

    Basic equivalence relation for vl-loadstate structures.

    Definitions and Theorems

    Function: vl-loadstate-equiv$inline

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

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

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

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

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

    Theorem: vl-loadstate-fix-under-vl-loadstate-equiv

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

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

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

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

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

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

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

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

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