• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Error-checking
        • Apt
        • Abnf
        • Fty-extensions
          • Defbyte
          • Defresult
          • Defsubtype
          • Pos-list
          • Defflatsum
          • Deflist-of-len
          • Defbytelist
          • Defset
          • Specific-types
          • Defbyte-standard-instances
          • Deffixtype-alias
          • Defomap
          • Defbytelist-standard-instances
          • Defunit
          • Byte-list
            • Byte-listp
            • Byte-list-fix
            • Byte-list20
            • Byte-list32
            • Byte-list64
            • Byte-list-equiv
          • Byte
          • Nibble
          • Pos-option
          • Nat-option
          • Byte-list20
          • String-option
          • Byte-list32
          • Byte-list64
          • Pseudo-event-form
          • Character-list
          • Natoption/natoptionlist
          • Nati
          • Maybe-string
          • Nat/natlist
          • Nibble-list
          • Natoption/natoptionlist-result
          • Set
          • Nat/natlist-result
          • Nat-option-list-result
          • String-result
          • String-list-result
          • Nat-result
          • Nat-option-result
          • Nat-list-result
          • Maybe-string-result
          • Integer-result
          • Character-result
          • Character-list-result
          • Boolean-result
          • Map
          • Bag
          • Pseudo-event-form-list
          • Nat-option-list
          • Nat-set
          • Bit-list
        • Isar
        • Kestrel-utilities
        • Prime-field-constraint-systems
        • Soft
        • Bv
        • Imp-language
        • Event-macros
        • Bitcoin
        • Ethereum
        • Yul
        • Zcash
        • ACL2-programming-language
        • Prime-fields
        • Java
        • C
        • Syntheto
        • Number-theory
        • Cryptography
        • Lists-light
        • File-io-light
        • Json
        • Built-ins
        • Solidity
        • Axe
        • Std-extensions
        • Htclient
        • Typed-lists-light
        • Arithmetic-light
      • X86isa
      • Execloader
      • Axe
    • Testing-utilities
    • Math
  • 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.