Group bits into unsigned 11-bit bytes, big-endian.
(bits=>beubyte11s digits) → new-digits
Function:
(defun bits=>beubyte11s (digits) (declare (xargs :guard (bit-listp digits))) (declare (xargs :guard (integerp (/ (len digits) 11)))) (let ((__function__ 'bits=>beubyte11s)) (declare (ignorable __function__)) (group-bendian 2 11 digits)))
Theorem:
(defthm ubyte11-listp-of-bits=>beubyte11s (b* ((new-digits (bits=>beubyte11s digits))) (ubyte11-listp new-digits)) :rule-classes :rewrite)
Theorem:
(defthm bits=>beubyte11s-of-bit-list-fix-digits (equal (bits=>beubyte11s (bit-list-fix digits)) (bits=>beubyte11s digits)))
Theorem:
(defthm bits=>beubyte11s-bit-list-equiv-congruence-on-digits (implies (bit-list-equiv digits digits-equiv) (equal (bits=>beubyte11s digits) (bits=>beubyte11s digits-equiv))) :rule-classes :congruence)