• 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
            • Logrev
            • Loghead
            • Logops-bit-functions
            • Logtail
            • Logapp
            • Logsat
            • Binary--
            • Logcdr
            • Logcar
            • Logbit
            • Logextu
              • Ihs/logextu-lemmas
                • Logextu-basics
              • 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
    • Logextu
    • Logops-lemmas

    Ihs/logextu-lemmas

    Lemmas about logextu from the logops-lemmas book.

    Definitions and Theorems

    Theorem: logextu-0

    (defthm logextu-0
      (implies (logextu-guard 0 ext-size i)
               (equal (logextu 0 ext-size i) 0)))

    Theorem: logextu-as-loghead

    (defthm logextu-as-loghead
      (implies (and (logextu-guard final-size ext-size i)
                    (<= final-size ext-size))
               (equal (loghead final-size (logext ext-size i))
                      (loghead final-size i))))

    Theorem: loghead-logextu

    (defthm loghead-logextu
      (implies (and (<= ext-size final-size)
                    (<= size ext-size)
                    (logextu-guard final-size ext-size i)
                    (force (integerp size))
                    (force (>= size 0)))
               (equal (loghead size (logextu final-size ext-size i))
                      (loghead size i))))