• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
      • Std/lists
      • Omaps
      • Std/alists
      • Obags
      • Std/util
      • Std/strings
      • Std/osets
      • Std/io
      • Std/basic
        • Maybe-stringp
        • Maybe-natp
        • Two-nats-measure
        • Impossible
        • Bytep
          • Byte
            • Byte-list
              • Byte-listp
              • Byte-list-fix
              • Byte-list20
              • Byte-list32
              • Byte-list64
              • Byte-list-equiv
            • Byte-fix
            • Bytep-additional-theorems
          • Bytes-as-digits-in-base-256
          • Bytep-additional-theorems
        • Nat-list-measure
        • Maybe-posp
        • Nibblep
        • Organize-symbols-by-pkg
        • Organize-symbols-by-name
        • Lnfix
        • Good-valuep
        • Streqv
        • Chareqv
        • Symbol-package-name-non-cl
        • Arith-equivs
        • Induction-schemes
        • Maybe-integerp
        • Char-fix
        • Pos-fix
        • Symbol-package-name-lst
        • Mbt$
        • Maybe-bitp
        • Good-pseudo-termp
        • Str-fix
        • Maybe-string-fix
        • Nonkeyword-listp
        • Lifix
        • Bfix
        • Std/basic/if*
        • Impliez
        • Tuplep
        • Std/basic/intern-in-package-of-symbol
        • Lbfix
        • Std/basic/symbol-name-lst
        • True
        • Std/basic/rfix
        • Std/basic/realfix
        • Std/basic/member-symbol-name
        • Std/basic/fix
        • False
        • Std/basic/nfix
        • Std/basic/ifix
      • Std/system
      • Std/typed-lists
      • Std/bitsets
      • Std/testing
      • Std/typed-alists
      • Std/stobjs
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
    • Testing-utilities
  • Fty-extensions
  • Specific-types
  • Byte

Byte-list

A fixtype of true lists of (unsigned 8-bit) bytes.

We use fty::defbytelist to generate this fixtype, along with the recognizer, fixer, and equivalence.

Theorem: byte-listp-forward-unsigned-byte-listp

(defthm byte-listp-forward-unsigned-byte-listp
  (implies (byte-listp x)
           (unsigned-byte-listp 8 x))
  :rule-classes :forward-chaining)

Theorem: byte-listp-rewrite-unsigned-byte-listp

(defthm byte-listp-rewrite-unsigned-byte-listp
  (equal (byte-listp x)
         (unsigned-byte-listp 8 x)))

Theorem: unsigned-byte-listp-rewrite-byte-listp

(defthm unsigned-byte-listp-rewrite-byte-listp
  (equal (unsigned-byte-listp 8 x)
         (byte-listp x)))

Theorem: true-listp-when-byte-listp-rewrite

(defthm true-listp-when-byte-listp-rewrite
  (implies (byte-listp x) (true-listp x)))

Theorem: byte-list-fix-of-take

(defthm byte-list-fix-of-take
  (implies (<= (nfix n) (len x))
           (equal (byte-list-fix (take n x))
                  (take n (byte-list-fix x)))))

Theorem: byte-list-fix-of-rcons

(defthm byte-list-fix-of-rcons
  (equal (byte-list-fix (rcons a x))
         (rcons (byte-fix a) (byte-list-fix x))))

Subtopics

Byte-listp
(byte-listp x) recognizes lists where every element satisfies bytep.
Byte-list-fix
(byte-list-fix x) is a usual fty list fixing function.
Byte-list20
A fixtype of true lists of (unsigned 8-bit) bytes of length 20.
Byte-list32
A fixtype of true lists of (unsigned 8-bit) bytes of length 32.
Byte-list64
A fixtype of true lists of (unsigned 8-bit) bytes of length 64.
Byte-list-equiv
Basic equivalence relation for byte-list structures.