File: .lake/packages/lean4/src/lean/Init/Data/Char/Basic.lean

full_name: isValidChar
code: /-- Determines if the given integer is a valid [Unicode scalar value](https://www.unicode.org/glossary/#unicode_scalar_value).

Note that values in `[0xd800, 0xdfff]` are reserved for [UTF-16 surrogate pairs](https://en.wikipedia.org/wiki/Universal_Character_Set_characters#Surrogates).
-/
@[inline, reducible] def isValidChar (n : UInt32) : Prop 
goal: Prop

full_name: Char.lt
code: protected def lt (a b : Char) : Prop 
goal: Prop

full_name: Char.le
code: protected def le (a b : Char) : Prop 
goal: Prop

full_name: Char.«instLT_.lake»
code: instance : LT Char 
goal: LT Char

full_name: Char.«instLE_.lake»
code: instance : LE Char 
goal: LE Char

full_name: Char.«instDecidableLt_.lake»
code: instance (a b : Char) :  Decidable (a < b) 
goal: Decidable (a < b)

full_name: Char.«instDecidableLe_.lake»
code: instance (a b : Char) : Decidable (a ≤ b) 
goal: Decidable (a ≤ b)

full_name: Char.isValidCharNat
code: /-- Determines if the given nat is a valid [Unicode scalar value](https://www.unicode.org/glossary/#unicode_scalar_value).-/
abbrev isValidCharNat (n : Nat) : Prop 
goal: Prop

full_name: Char.isValidUInt32
code: theorem isValidUInt32 (n : Nat) (h : isValidCharNat n) : n < UInt32.size 
goal: n < UInt32.size

full_name: Char.isValidChar_of_isValidCharNat
code: theorem isValidChar_of_isValidCharNat (n : Nat) (h : isValidCharNat n) : isValidChar (UInt32.ofNat' n (isValidUInt32 n h)) 
goal: isValidChar (UInt32.ofNat' n ⋯)

full_name: Char.isValidChar_zero
code: theorem isValidChar_zero : isValidChar 0 
goal: isValidChar 0

full_name: Char.toNat
code: /-- Underlying unicode code point as a `Nat`. -/
@[inline] def toNat (c : Char) : Nat 
goal: Nat

full_name: Char.toUInt8
code: /-- Convert a character into a `UInt8`, by truncating (reducing modulo 256) if necessary. -/
@[inline] def toUInt8 (c : Char) : UInt8 
goal: UInt8

full_name: Char.ofUInt8
code: /-- The numbers from 0 to 256 are all valid UTF-8 characters, so we can embed one in the other. -/
def ofUInt8 (n : UInt8) : Char 
goal: Char

full_name: Char.«instInhabited_.lake»
code: instance : Inhabited Char 
goal: Inhabited Char

full_name: Char.isWhitespace
code: /-- Is the character a space (U+0020) a tab (U+0009), a carriage return (U+000D) or a newline (U+000A)? -/
def isWhitespace (c : Char) : Bool 
goal: Bool

full_name: Char.isUpper
code: /-- Is the character in `ABCDEFGHIJKLMNOPQRSTUVWXYZ`? -/
def isUpper (c : Char) : Bool 
goal: Bool

full_name: Char.isLower
code: /-- Is the character in `abcdefghijklmnopqrstuvwxyz`? -/
def isLower (c : Char) : Bool 
goal: Bool

full_name: Char.isAlpha
code: /-- Is the character in `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`? -/
def isAlpha (c : Char) : Bool 
goal: Bool

full_name: Char.isDigit
code: /-- Is the character in `0123456789`? -/
def isDigit (c : Char) : Bool 
goal: Bool

full_name: Char.isAlphanum
code: /-- Is the character in `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`? -/
def isAlphanum (c : Char) : Bool 
goal: Bool

full_name: Char.toLower
code: /-- Convert an upper case character to its lower case character.

Only works on basic latin letters.
-/
def toLower (c : Char) : Char 
goal: Char

full_name: Char.toUpper
code: /-- Convert a lower case character to its upper case character.

Only works on basic latin letters.
-/
def toUpper (c : Char) : Char 
goal: Char