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

CaseInsensitive – Case-Insensitive Comparison

Lean: Hale.CaseInsensitive | Haskell: case-insensitive

Wrapper type CI α that compares values case-insensitively while preserving the original. Stores both original and pre-computed foldedCase. Equality, ordering, and hashing use only foldedCase.

Key Types

TypeDescription
FoldCase αTypeclass with foldCase : α → α
CI αCase-insensitive wrapper

Files

  • Hale/CaseInsensitive/Data/CaseInsensitive.lean – FoldCase, CI