Documentation
Batteries
.
Data
.
Char
.
Basic
Search
return to top
source
Imports
Init
Batteries.Classes.Deprecated
Imported by
Char
.
le_antisymm_iff
Char
.
instLawfulOrd
Char
.
toNat_val
Char
.
toNat_ofNatAux
Char
.
toNat_ofNat
source
theorem
Char
.
le_antisymm_iff
{
x
y
:
Char
}
:
x
=
y
↔
x
≤
y
∧
y
≤
x
source
instance
Char
.
instLawfulOrd
:
Std.LawfulOrd
Char
source
@[simp]
theorem
Char
.
toNat_val
(
c
:
Char
)
:
c
.
val
.
toNat
=
c
.
toNat
source
@[simp]
theorem
Char
.
toNat_ofNatAux
{
n
:
Nat
}
(
h
:
n
.
isValidChar
)
:
(
ofNatAux
n
h
)
.
toNat
=
n
source
theorem
Char
.
toNat_ofNat
(
n
:
Nat
)
:
(
ofNat
n
)
.
toNat
=
if
n
.
isValidChar
then
n
else
0