• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
      • Std/lists
      • Std/alists
      • Obags
      • Std/util
      • Std/strings
      • Std/io
      • Std/osets
      • Std/system
      • Std/basic
      • Std/typed-lists
        • Std/typed-lists/character-listp
        • Std/typed-lists/symbol-listp
        • Std/typed-lists/boolean-listp
        • Std/typed-lists/string-listp
        • Std/typed-lists/eqlable-listp
        • Theorems-about-true-list-lists
        • Std/typed-lists/atom-listp
        • Unsigned-byte-listp
        • Cons-listp
        • Cons-list-listp
        • Signed-byte-listp
          • Signed-byte-list-fix
        • String-or-symbol-listp
      • Std/bitsets
      • Std/testing
      • Std/typed-alists
      • Std/stobjs
      • Std-extensions
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Testing-utilities
    • Math
  • Std/typed-lists
  • Signed-byte-p

Signed-byte-listp

Recognizer for lists of signed-byte-p's.

BOZO consider switching this book to use deflist.

Definitions and Theorems

Function: signed-byte-listp

(defun signed-byte-listp (n x)
       (if (atom x)
           (null x)
           (and (signed-byte-p n (car x))
                (signed-byte-listp n (cdr x)))))

Theorem: signed-byte-listp-when-atom

(defthm signed-byte-listp-when-atom
        (implies (atom x)
                 (equal (signed-byte-listp n x)
                        (not x))))

Theorem: signed-byte-listp-of-cons

(defthm signed-byte-listp-of-cons
        (equal (signed-byte-listp n (cons a x))
               (and (signed-byte-p n a)
                    (signed-byte-listp n x))))

Theorem: true-listp-when-signed-byte-listp

(defthm true-listp-when-signed-byte-listp
        (implies (signed-byte-listp width x)
                 (true-listp x)))

Subtopics

Signed-byte-list-fix
Fixing function for signed-byte-listp.