• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Testing-utilities
    • Math
      • Arithmetic
      • Bit-vectors
        • Sparseint
        • Bitops
          • Bitops/merge
          • Bitops-compatibility
          • Bitops-books
          • Logbitp-reasoning
          • Bitops/signed-byte-p
          • Fast-part-select
          • Bitops/integer-length
          • Bitops/extra-defs
          • Install-bit
          • Trailing-0-count
          • Bitops/defaults
            • Logxor-defaults
            • Logior-defaults
            • Logbitp-defaults
            • Logand-defaults
              • Ash-defaults
              • Integer-length-default
              • Lognot-default
              • Logcdr-default
              • Logcar-default
            • Logbitp-mismatch
            • Trailing-1-count
            • Bitops/rotate
            • Bitops/equal-by-logbitp
            • Bitops/ash-bounds
            • Bitops/fast-logrev
            • Limited-shifts
            • Bitops/part-select
            • Bitops/parity
            • Bitops/saturate
            • Bitops/part-install
            • Bitops/logbitp-bounds
            • Bitops/ihsext-basics
            • Bitops/fast-rotate
            • Bitops/fast-logext
            • Bitops/ihs-extensions
          • Bv
          • Ihs
          • Rtl
        • Algebra
    • Bitops/defaults
    • Logand

    Logand-defaults

    Behavior of logand on bad inputs.

    Definitions and Theorems

    Theorem: logand-default-1

    (defthm logand-default-1
            (implies (not (integerp x))
                     (equal (logand x y) (logand 0 y)))
            :rule-classes ((:rewrite :backchain-limit-lst 0)))

    Theorem: logand-default-2

    (defthm logand-default-2
            (implies (not (integerp y))
                     (equal (logand x y) (logand x 0)))
            :rule-classes ((:rewrite :backchain-limit-lst 0)))