• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
        • Svex-stvs
          • Svtv-data
          • Defsvtv$
          • Svtv-run
          • Defsvtv-phasewise
          • Svtv
            • Svtv-chase
            • Svtv-p
            • Svtv-to-fsm
            • Make-svtv
            • Svtv-fix
            • Change-svtv
            • Svtv-equiv
              • Svtv->orig-overrides
              • Svtv->orig-internals
              • Svtv->expanded-overrides
              • Svtv->states
              • Svtv->nextstate
              • Svtv->expanded-ins
              • Svtv->outmasks
              • Svtv->outexprs
              • Svtv->orig-outs
              • Svtv->orig-ins
              • Svtv->inmasks
              • Svtv->nphases
              • Svtv->name
              • Svtv->labels
              • Svtv->inmap
              • Svtv->form
            • Svtv-spec
            • Defsvtv
            • Process.lisp
            • Svtv-doc
            • Svtv-chase$
            • Svtv-versus-stv
            • Svtv-debug-fsm
            • Structure.lisp
            • Svtv-debug
            • Def-pipeline-thm
            • Expand.lisp
            • Def-cycle-thm
            • Svtv-utilities
            • Svtv-debug$
            • Defsvtv$-phasewise
          • Svex-decomposition-methodology
          • Sv-versus-esim
          • Svex-decomp
          • Svex-compose-dfs
          • Svex-compilation
          • Moddb
          • Svmods
          • Svstmt
          • Sv-tutorial
          • Expressions
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Svtv

    Svtv-equiv

    Basic equivalence relation for svtv structures.

    Definitions and Theorems

    Function: svtv-equiv$inline

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

    Theorem: svtv-equiv-is-an-equivalence

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

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

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

    Theorem: svtv-fix-under-svtv-equiv

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

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

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

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

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

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

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

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

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