More Char instances #
This file provides a LinearOrder instance on Char. Char is the type of Unicode scalar values.
Provides an additional definition to truncate a Char to UInt8 and a theorem on conversion to
Nat.
Convert a character into a UInt8, by truncating (reducing modulo 256) if necessary.
Equations
- Char.toUInt8 n = UInt32.toUInt8 n.val
Instances For
Provides a LinearOrder instance on Char. Char is the type of Unicode scalar values.
Equations
- One or more equations did not get rendered due to their size.
theorem
Char.ofNat_toNat
{c : Char}
(h : Char.isValidCharNat (Char.toNat c))
:
Char.ofNat (Char.toNat c) = c