• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • 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
          • Svstmt-case
          • Svstmt-while
          • Svstmt-p
          • Svstmt-if
          • Svstmt-equiv
          • Svstmt-xcond
          • Svstmt-scope
          • Svstmt-assign
          • Svstmt-compile
          • Svstmt-constraints
          • Svstmt-jump
          • Svstmtlist
          • Svstmt-kind
          • Svstmt.lisp
            • Svstmt-write
            • Svstmt-writelist-vars
            • Svstmt-write-vars
            • Svstmt-writelist
              • Svstmt-writelist-fix
              • Svstmt-writelist-equiv
                • Svstmt-writelist-p
              • Svjump-p
            • Svstmt-fix
            • Svstmt-count
          • Sv-tutorial
          • Expressions
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Svstmt-writelist

    Svstmt-writelist-equiv

    Basic equivalence relation for svstmt-writelist structures.

    Definitions and Theorems

    Function: svstmt-writelist-equiv$inline

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

    Theorem: svstmt-writelist-equiv-is-an-equivalence

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

    Theorem: svstmt-writelist-equiv-implies-equal-svstmt-writelist-fix-1

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

    Theorem: svstmt-writelist-fix-under-svstmt-writelist-equiv

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

    Theorem: equal-of-svstmt-writelist-fix-1-forward-to-svstmt-writelist-equiv

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

    Theorem: equal-of-svstmt-writelist-fix-2-forward-to-svstmt-writelist-equiv

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

    Theorem: svstmt-writelist-equiv-of-svstmt-writelist-fix-1-forward

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

    Theorem: svstmt-writelist-equiv-of-svstmt-writelist-fix-2-forward

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