• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
      • 100-theorems
      • Arithmetic
      • Bit-vectors
        • Sparseint
        • Bitops
        • Bv
        • Ihs
          • Logops-definitions
            • Logops-byte-functions
            • Defword
            • Defbytetype
            • Logext
              • Fast-logext
              • Ihs/logext-lemmas
                • Logext-basics
                • Logext*
              • Logrev
              • Loghead
              • Logops-bit-functions
              • Logtail
              • Logapp
              • Logsat
              • Binary--
              • Logcdr
              • Logcar
              • Logbit
              • Logextu
              • Logcons
              • Lshu
              • Logrpl
              • Ashu
              • Logmaskp
              • Lognotu
              • Logmask
              • Imod
              • Ifloor
              • Bfix
              • Bitmaskp
              • Logite
              • Expt2
              • Zbp
              • *logops-functions*
              • Word/bit-macros
              • Logops-definitions-theory
              • Logops-functions
              • Lbfix
              • Logextu-guard
              • Lshu-guard
              • Logtail-guard
              • Logrpl-guard
              • Logrev-guard
              • Lognotu-guard
              • Logmask-guard
              • Loghead-guard
              • Logext-guard
              • Logbit-guard
              • Logapp-guard
              • Ashu-guard
            • Math-lemmas
            • Ihs-theories
            • Ihs-init
            • Logops
          • Rtl
        • Algebra
      • Testing-utilities
    • Logext
    • Logops-lemmas

    Ihs/logext-lemmas

    Lemmas about logext from the logops-lemmas book.

    Definitions and Theorems

    Theorem: logext-identity

    (defthm logext-identity
      (implies (signed-byte-p size i)
               (equal (logext size i) i)))

    Theorem: logext-+-cancel

    (defthm logext-+-cancel
      (implies (and (integerp size)
                    (> size 0)
                    (integerp i)
                    (integerp j)
                    (integerp k))
               (equal (equal (logext size (+ i j))
                             (logext size (+ i k)))
                      (equal (logext size j)
                             (logext size k)))))

    Theorem: logext-+-logext

    (defthm logext-+-logext
      (implies (and (integerp size)
                    (> size 0)
                    (integerp i)
                    (integerp j))
               (equal (logext size (+ i (logext size j)))
                      (logext size (+ i j)))))