• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
        • Warnings
        • Getting-started
        • Utilities
        • Printer
        • Kit
        • Mlib
        • Transforms
          • Unparameterization
          • Elaborate
            • Elabindex
              • Vl-elabindex-traverse
              • Vl-elabkey
              • Vl-elabscopes-update-subscope
              • Vl-elabscopes-do-instruction/update
              • Vl-elabtraversals-remove-common-prefix
              • Vl-elabscopes-pop/update-one
              • Vl-elabscopes
              • Vl-maybe-elabkey
              • Vl-elabscopes-traverse/update
              • Vl-elabscopes-pop/update
              • Vl-elabscope-update-package-subscope
              • Vl-elabinstruction
                • Vl-elabinstruction-fix
                • Vl-elabinstruction-case
                • Vl-elabinstruction-equiv
                  • Vl-elabinstruction-p
                  • Vl-elabinstruction-push-named
                  • Vl-elabinstruction-push-anon
                  • Vl-elabinstruction-pop
                  • Vl-elabinstruction-kind
                  • Vl-elabinstruction-root
                • Vl-elabscope-update-subscope?
                • Vl-elabscope-update-subscope
                • Vl-elabscope-update-item-subscope
                • Vl-elabscope-update-index-subscope
                • Vl-elabscope-update-def-subscope
                • Vl-elabscope-update-class-subscope
                • Vl-elabscope-update-item-info
                • Vl-elabscope
                • Vl-elabscopes-do-instruction
                • Vl-elabpaths-append
                • Vl-elabscopes-traverse
                • Vl-elabscopes-push-named
                • Vl-elabscopes-item-info
                • Vl-elabscopes-push-scope
                • Vl-elabindex-update-item-info
                • Vl-elabscopes-subscope
                • Vl-elabscopes-push-anon
                • Vl-elabscopes-root/update
                • Vl-elabscopes-pop
                • Vl-elabindex-push
                • Vl-elabscope-package-subscope
                • Vl-elabscope-item-subscope
                • Vl-elabscope-class-subscope
                • Vl-elabindex-traverse-undo-entry
                • Vl-elabscope-subscope
                • Vl-elabscope-item-info
                • Vl-elabscope-def-subscope
                • Vl-scope->elabkey
                • Vl-elabscopes->elabtraversal
                • Vl-elabscopes-root
                • Vl-elabscopes-init-ss
                • Vl-elabscopes->top-scope
                • Vl-elabindex-update-undostack
                • Vl-elabindex-init
                • Vl-elabindex-sync-scopes
                • Vl-elabindex-update-scopes
                • Vl-elabindex-push-undo-entry
                • Vl-elabindex-update-ss
                • Vl-elabindex-undo
                • Vl-elabtraversal-stack
                • Vl-elabscopes-init
                • Vl-elabindex->undostack
                • Vl-elabindex->scopes
                • Vl-elabtraversal
                • Vl-elabindex->ss
              • Vl-override-parameter
              • Vl-genblob-elaborate
              • Vl-modelement-elaborate
              • Vl-design-elaborate-aux
              • Vl-package-elaborate-aux
              • Vl-taskdecl-elaborate
              • Vl-clkdecl-elaborate
              • Vl-defaultdisablelist-elaborate
              • Vl-modport-portlist-elaborate
              • Vl-modinst-elaborate-aux
              • Vl-maybe-parse-temps-elaborate
              • Vl-ansi-portdecllist-elaborate
              • Vl-ansi-portdecl-elaborate
              • Vl-parse-temps-elaborate
              • Vl-dpiimportlist-elaborate
              • Vl-clkassignlist-elaborate
              • Vl-cassertionlist-elaborate
              • Vl-assertionlist-elaborate
              • Vl-taskdecllist-elaborate
              • Vl-sequencelist-elaborate
              • Vl-propportlist-elaborate
              • Vl-propertylist-elaborate
              • Vl-plainarglist-elaborate
              • Vl-namedarglist-elaborate
              • Vl-maybe-clkskew-elaborate
              • Vl-gclkdecllist-elaborate
              • Vl-gateinstlist-elaborate
              • Vl-elabtasklist-elaborate
              • Vl-defaultdisable-elaborate
              • Vl-sequence-elaborate
              • Vl-property-elaborate
              • Vl-modportlist-elaborate
              • Vl-modport-port-elaborate
              • Vl-modinstlist-elaborate
              • Vl-letdecllist-elaborate
              • Vl-interfaceport-elaborate
              • Vl-initiallist-elaborate
              • Vl-gateinst-elaborate
              • Vl-fundecllist-elaborate
              • Vl-clkdecllist-elaborate
              • Vl-assignlist-elaborate
              • Vl-assign-elaborate-aux
              • Vl-arguments-elaborate
              • Vl-alwayslist-elaborate
              • Vl-regularport-elaborate
              • Vl-portlist-elaborate
              • Vl-finallist-elaborate
              • Vl-dpiimport-elaborate
              • Vl-clkassign-elaborate
              • Vl-bindlist-elaborate
              • Vl-aliaslist-elaborate
              • Vl-warn-about-negative-indices
              • Vl-udplist-elaborate
              • Vl-propport-elaborate
              • Vl-modinst-elaborate
              • Vl-udp-elaborate
              • Vl-port-elaborate
              • Vl-plainarg-elaborate
              • Vl-namedarg-elaborate
              • Vl-modport-elaborate
              • Vl-gclkdecl-elaborate
              • Vl-elabtask-elaborate
              • Vl-clkskew-elaborate
              • Vl-assign-elaborate
              • Vl-always-elaborate-aux
              • Vl-always-elaborate
              • Vl-alias-elaborate
              • Vl-initial-elaborate
              • Vl-bind-elaborate
              • Vl-final-elaborate
              • Vl-fundecl-paramdecls-for-const-args
              • Vl-fundecl-body-with-const-args
              • Vl-exprlist-args-to-4vec-consts
              • Sv::svex-constval
            • Addnames
            • Annotate
            • Clean-warnings
            • Eliminitial
            • Custom-transform-hooks
            • Problem-modules
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-elabinstruction

    Vl-elabinstruction-equiv

    Basic equivalence relation for vl-elabinstruction structures.

    Definitions and Theorems

    Function: vl-elabinstruction-equiv$inline

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

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

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

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

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

    Theorem: vl-elabinstruction-fix-under-vl-elabinstruction-equiv

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

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

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

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

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

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

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

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

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