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

    Svex-equiv

    Basic equivalence relation for svex structures.

    Definitions and Theorems

    Function: svex-equiv$inline

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

    Theorem: svex-equiv-is-an-equivalence

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

    Theorem: svex-equiv-implies-equal-svex-fix-1

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

    Theorem: svex-fix-under-svex-equiv

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

    Theorem: equal-of-svex-fix-1-forward-to-svex-equiv

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

    Theorem: equal-of-svex-fix-2-forward-to-svex-equiv

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

    Theorem: svex-equiv-of-svex-fix-1-forward

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

    Theorem: svex-equiv-of-svex-fix-2-forward

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