Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Word8 – UInt8 Classification

Lean: Hale.Word8 | Haskell: word8

UInt8 classification predicates and byte constants. All predicates are @[inline] for zero overhead. Proofs via exhaustive native_decide over all 256 values.

API

FunctionDescription
isUpperByte in [65, 90]
isLowerByte in [97, 122]
isAlphaASCII letter
isDigitASCII digit
isSpaceWhitespace byte

Files

  • Hale/Word8/Data/Word8.lean – Classification predicates and constants