• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
        • Svex-stvs
        • Svex-decomposition-methodology
        • Sv-versus-esim
        • Svex-decomp
        • Svex-compose-dfs
        • Svex-compilation
        • Moddb
        • Svmods
        • Svstmt
        • Sv-tutorial
        • Expressions
          • Rewriting
          • Svex
            • Svar
              • Svar-p
              • Svar-fix
              • Make-svar
              • Svar-equiv
              • Svar->props
              • Svar->delay
              • Svar->bits
              • Change-svar
              • Svarlist
              • Svar->name
              • Svar-map
                • Svar-map-p
                • Svar-map-fix
                • Svar-map-equiv
                • Svar-alist
              • Least-fixpoint
              • Svex-p
              • Svex-select
              • Svex-alist
              • Svex-equiv
              • Svexlist
              • Svex-call
              • Fnsym
              • Svex-quote
              • Svex-var
              • Svcall-rw
              • Svcall
              • Svex-kind
              • Svcall*
              • Svex-fix
              • Svex-count
              • Svex-1z
              • Svex-1x
              • Svex-z
              • Svex-x
            • Bit-blasting
            • Functions
            • 4vmask
            • Why-infinite-width
            • Svex-vars
            • Evaluation
            • Values
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Svar-map

    Svar-map-equiv

    Basic equivalence relation for svar-map structures.

    Definitions and Theorems

    Function: svar-map-equiv$inline

    (defun svar-map-equiv$inline (x y)
      (declare (xargs :guard (and (svar-map-p x) (svar-map-p y))))
      (equal (svar-map-fix x)
             (svar-map-fix y)))

    Theorem: svar-map-equiv-is-an-equivalence

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

    Theorem: svar-map-equiv-implies-equal-svar-map-fix-1

    (defthm svar-map-equiv-implies-equal-svar-map-fix-1
      (implies (svar-map-equiv x x-equiv)
               (equal (svar-map-fix x)
                      (svar-map-fix x-equiv)))
      :rule-classes (:congruence))

    Theorem: svar-map-fix-under-svar-map-equiv

    (defthm svar-map-fix-under-svar-map-equiv
      (svar-map-equiv (svar-map-fix x) x)
      :rule-classes (:rewrite :rewrite-quoted-constant))

    Theorem: equal-of-svar-map-fix-1-forward-to-svar-map-equiv

    (defthm equal-of-svar-map-fix-1-forward-to-svar-map-equiv
      (implies (equal (svar-map-fix x) y)
               (svar-map-equiv x y))
      :rule-classes :forward-chaining)

    Theorem: equal-of-svar-map-fix-2-forward-to-svar-map-equiv

    (defthm equal-of-svar-map-fix-2-forward-to-svar-map-equiv
      (implies (equal x (svar-map-fix y))
               (svar-map-equiv x y))
      :rule-classes :forward-chaining)

    Theorem: svar-map-equiv-of-svar-map-fix-1-forward

    (defthm svar-map-equiv-of-svar-map-fix-1-forward
      (implies (svar-map-equiv (svar-map-fix x) y)
               (svar-map-equiv x y))
      :rule-classes :forward-chaining)

    Theorem: svar-map-equiv-of-svar-map-fix-2-forward

    (defthm svar-map-equiv-of-svar-map-fix-2-forward
      (implies (svar-map-equiv x (svar-map-fix y))
               (svar-map-equiv x y))
      :rule-classes :forward-chaining)