• 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
          • Address
          • Wire
          • Module
          • Lhs
            • Lhs.lisp
              • Lhs-vars-normorderedp
              • Lhs-norm
              • Lhatom-normorderedp
              • Lhs-normp
              • Svex-lhsrewrite-aux
              • Lhs-concat
              • Lhs-check-masks
              • Lhrange-combine
              • Svexarr-vars-aux
              • Assigns-check-masks
              • Svex->lhs-range
              • Svex-lhs-preproc-blkrev
              • Svarlist-boundedp-badguy
              • Driverlist-rest-after-strength
              • Aliases-normorderedp
              • Lhs-rsh
              • Lhs-cons
              • Svarlist-boundedp
              • Lhs-bitproj
              • Lhs-vars
              • Driver
              • Svex-override
              • Make-simple-lhs
              • Lhssvex-range-p
              • Lhs-override
              • Lhs-first-aux
              • Lhrange-combinable-dec
              • Lhrange-bitproj
              • Lhatom
              • Driverlist-values-of-strength
              • Lhs-rest-aux
              • Lhs-rest
              • Aliases-normorderedp-aux
              • Svexarr-vars
              • Lhsarr-to-svexarr
              • Svexarr-vars-witness-aux
              • Lhbit
                • Lhbit-case
                • Lhbit-fix
                • Lhbit-equiv
                  • Lhbit-var
                  • Lhbit-p
                  • Lhbit-z
                  • Lhbit-kind
                • Svex-lhsrewrite
                • Svar-boundedp
                • Lhs-decomp-aux
                • Svex->lhs-bound
                • Aliases-vars-aux
                • Svexarr
                • Svexarr-vars-witness
                • Svar-set-index
                • Lhsarr
                • Lhs-override-vars
                • Lhatom-eval-zero
                • Lhatom-bitproj
                • Lhrange-nextbit
                • Lhrange-combinable
                • Driverlist->svex
                • Svexlist-resolve
                • Lhs->svex-zero
                • Lhs-overridelist-vars
                • Lhs-overridelist-keys
                • Lhbit-eval
                • Driverlist-vars
                • Assigns-vars
                • Svex-int
                • Lhssvex-bounded-p
                • Lhslist-vars
                • Lhs-decomp
                • Lhatom-vars
                • Svar-map-vars
                • Lhssvex-unbounded-p
                • Lhspairs-vars
                • Lhs-width
                • Aliases-vars
                • Lhs-first
                • Svar-index
                • Assigns
                • Svar-indexedp
                • Lhspairs
                • Svex-overridelist
                • Lhslist
                • Lhs-overridelist
                • Driverlist
                • Svex-lhs-preproc
                • Svexarr-fix
                • Lhsarr-fix
              • Lhs-p
              • Lhs-fix
              • Lhrange
              • Lhs-eval-zx
              • Lhs-equiv
              • Lhs-eval
              • Lhs->svex
            • Path
            • Svar-add-namespace
            • Design
            • Modinst
            • Lhs-add-namespace
            • Modalist
            • Path-add-namespace
            • Modname->submodnames
            • Name
            • Constraintlist-addr-p
            • Svex-alist-addr-p
            • Svar-map-addr-p
            • Lhspairs-addr-p
            • Modname
            • Assigns-addr-p
            • Lhs-addr-p
            • Lhatom-addr-p
            • Modhier-list-measure
            • Attributes
            • Modhier-measure
            • Modhier-list-measure-aux
            • Modhier-loopfreelist-p
            • Modhier-loopfree-p
          • Svstmt
          • Sv-tutorial
          • Expressions
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Lhbit

    Lhbit-equiv

    Basic equivalence relation for lhbit structures.

    Definitions and Theorems

    Function: lhbit-equiv$inline

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

    Theorem: lhbit-equiv-is-an-equivalence

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

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

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

    Theorem: lhbit-fix-under-lhbit-equiv

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

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

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

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

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

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

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

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

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