• 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
          • Parser
          • Vl-load-merge-descriptions
          • Scope-of-defines
          • Vl-load-file
          • Vl-flush-out-descriptions
          • Vl-description
          • Vl-loadresult
            • Vl-loadresult-fix
            • Vl-loadresult-equiv
              • Make-vl-loadresult
              • Vl-loadresult->filemap
              • Vl-loadresult->design
              • Vl-loadresult->defines
              • Change-vl-loadresult
              • Vl-loadresult-p
            • 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-loadresult

    Vl-loadresult-equiv

    Basic equivalence relation for vl-loadresult structures.

    Definitions and Theorems

    Function: vl-loadresult-equiv$inline

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

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

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

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

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

    Theorem: vl-loadresult-fix-under-vl-loadresult-equiv

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

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

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

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

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

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

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

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

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