• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
        • Transforms
          • Expression-sizing
          • Occform
          • Oprewrite
          • Expand-functions
          • Delayredux
          • Unparameterization
          • Caseelim
          • Split
          • Selresolve
          • Weirdint-elim
          • Vl-delta
          • Replicate-insts
          • Rangeresolve
          • Propagate
          • Clean-selects
          • Clean-params
          • Blankargs
          • Inline-mods
          • Expr-simp
          • Trunc
          • Always-top
          • Gatesplit
          • Gate-elim
          • Expression-optimization
          • Elim-supplies
          • Wildelim
          • Drop-blankports
          • Clean-warnings
          • Addinstnames
          • Custom-transform-hooks
          • Annotate
            • Make-implicit-wires
              • Vl-modulelist-make-implicit-wires
              • Vl-make-implicit-wires-aux
              • Shadowcheck
                • Vl-shadowcheck-reference-name
                • Vl-shadowcheck-aux
                • Vl-shadowcheck-reference-names
                • Vl-shadowcheck-declare-names
                • Vl-shadowcheck-declare-name
                • Vl-shadowcheck-fundecl
                • Vl-shadowcheck-declare-typedefs
                • Vl-shadowcheck-blockitemlist
                • Vl-shadowcheck-taskdecl
                • Vl-shadowcheck-portdecllist
                • Vl-shadowcheck-paramdecls
                • Vl-shadowcheck-taskdecls
                • Vl-shadowcheck-paramdecl
                • Vl-shadowcheck-gateinst
                • Vl-shadowcheck-vardecls
                • Vl-shadowcheck-vardecl
                • Vl-shadowcheck-portdecl
                • Vl-shadowcheck-modinst
                • Vl-shadowcheck-imports
                • Vl-shadowcheck-import
                • Vl-shadowcheck-fundecls
                • Vl-shadowcheck-blockitem
                • Vl-shadowcheck-ports
                • Vl-shadowcheck-port
                • Vl-shadowcheck-initial
                • Vl-shadowcheck-assign
                • Vl-shadowcheck-always
                • Vl-shadowcheck-alias
                • Vl-shadowcheck-state
                • Vl-shadowcheck-module
                • Vl-shadowcheck-modules
                • Vl-shadowcheck-push-scope
                • Vl-lexscopes
                • Vl-shadowcheck-design
                • Vl-shadowcheck-pop-scope
                • Vl-lexscope
                  • Vl-lexscope-p
                  • Vl-lexscope-fix
                  • Vl-lexscope-entry
                    • Vl-lexscope-entry-fix
                    • Vl-lexscope-entry-equiv
                      • Make-vl-lexscope-entry
                      • Vl-lexscope-entry->wildpkgs
                      • Vl-lexscope-entry->direct-pkg
                      • Vl-lexscope-entry->decl
                      • Change-vl-lexscope-entry
                      • Vl-lexscope-entry-p
                    • Vl-lexscope-equiv
                    • Vl-lexscope-find
                    • Vl-empty-lexscope
                • Vl-stmt-check-undeclared
                • Vl-make-implicit-wires-main
                • Vl-fundecl-check-undeclared
                • Vl-warn-about-undeclared-wires
                • Vl-implicitst
                • Vl-blockitem-check-undeclared
                • Vl-taskdecl-check-undeclared
                • Vl-modinst-exprs-for-implicit-wires
                • Vl-blockitemlist-check-undeclared
                • Vl-import-check-undeclared
                • Vl-make-ordinary-implicit-wires
                • Vl-gateinst-exprs-for-implicit-wires
                • Vl-remove-declared-wires
                • Vl-make-port-implicit-wires
                • Vl-module-make-implicit-wires
                • Vl-vardecl-exprs-for-implicit-wires
                • Vl-design-make-implicit-wires
              • Resolve-indexing
              • Origexprs
              • Argresolve
              • Portdecl-sign
              • Designwires
              • Udp-elim
              • Vl-annotate-design
            • Latchcode
            • Elim-unused-vars
            • Problem-modules
          • Lint
          • Mlib
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-lexscope-entry

    Vl-lexscope-entry-equiv

    Basic equivalence relation for vl-lexscope-entry structures.

    Definitions and Theorems

    Function: vl-lexscope-entry-equiv$inline

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

    Theorem: vl-lexscope-entry-equiv-is-an-equivalence

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

    Theorem: vl-lexscope-entry-equiv-implies-equal-vl-lexscope-entry-fix-1

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

    Theorem: vl-lexscope-entry-fix-under-vl-lexscope-entry-equiv

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

    Theorem: equal-of-vl-lexscope-entry-fix-1-forward-to-vl-lexscope-entry-equiv

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

    Theorem: equal-of-vl-lexscope-entry-fix-2-forward-to-vl-lexscope-entry-equiv

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

    Theorem: vl-lexscope-entry-equiv-of-vl-lexscope-entry-fix-1-forward

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

    Theorem: vl-lexscope-entry-equiv-of-vl-lexscope-entry-fix-2-forward

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