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:
(defthm byte-listp-forward-unsigned-byte-listp (implies (byte-listp x) (unsigned-byte-listp 8 x)) :rule-classes :forward-chaining)
Theorem:
(defthm byte-listp-rewrite-unsigned-byte-listp (equal (byte-listp x) (unsigned-byte-listp 8 x)))
Theorem:
(defthm unsigned-byte-listp-rewrite-byte-listp (equal (unsigned-byte-listp 8 x) (byte-listp x)))
Theorem:
(defthm true-listp-when-byte-listp-rewrite (implies (byte-listp x) (true-listp x)))
Theorem:
(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:
(defthm byte-list-fix-of-rcons (equal (byte-list-fix (rcons a x)) (rcons (byte-fix a) (byte-list-fix x))))