Fixer for byte-list20.
(byte-list20-fix x) → *
Function:
(defun byte-list20-fix (x) (declare (xargs :guard (byte-list20p x))) (mbe :logic (if (byte-list20p x) x (byte-list-fix (take 20 x))) :exec x))
Theorem:
(defthm byte-list20p-of-byte-list20-fix (byte-list20p (byte-list20-fix x)))
Theorem:
(defthm byte-list20-fix-when-byte-list20p (implies (byte-list20p x) (equal (byte-list20-fix x) x)))