• 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
        • 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-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

    Vl-lexscope-equiv

    Basic equivalence relation for vl-lexscope structures.

    Definitions and Theorems

    Function: vl-lexscope-equiv$inline

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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