hilbert
6
Search
☰
About
Tutorial
Roadmap
Get involved
Reference manual
Blueprint
API docs
Papers
About
Tutorial
Roadmap
Get involved
Reference manual
Blueprint
API docs
Papers
GitHub
return to top
source
Imports
Init.Omega
Init.Data.BitVec.Lemmas
Init.Data.BitVec.Package
Init.Data.ByteArray.Lex
Init.Data.Char.Basic
Init.Data.Char.Lemmas
Init.Data.Char.Order
Init.Data.List.Basic
Init.Data.List.Lemmas
Init.Data.List.Lex
Init.Data.List.Package
Init.Data.List.Sublist
Init.Data.Ord.Basic
Init.Data.Ord.UInt
Init.Data.Order.Lemmas
Init.Data.Order.LemmasExtra
Init.Data.String.Basic
Init.Data.String.Decode
Init.Data.String.Defs
Init.Data.UInt.Lemmas
Imported by
String
.
utf8EncodeChar_lt_utf8EncodeChar_iff
String
.
compare_utf8EncodeChar_utf8EncodeChar
String
.
utf8EncodeChar_le_utf8EncodeChar_iff
String
.
compare_toList_toList_eq_compare_toByteArray_toByteArray
String
.
toList_lt_toList_iff_toByteArray_lt_toByteArray
String
.
toList_le_toList_iff_toByteArray_le_toByteArray
Init
.
Data
.
String
.
Lemmas
.
Decode
Further results about UTF-8 decoding
#
source
@[simp]
theorem
String
.
utf8EncodeChar_lt_utf8EncodeChar_iff
{
c
d
:
Char
}
:
utf8EncodeChar
c
<
utf8EncodeChar
d
↔
c
<
d
source
@[simp]
theorem
String
.
compare_utf8EncodeChar_utf8EncodeChar
{
c
d
:
Char
}
:
compare
(
utf8EncodeChar
c
)
(
utf8EncodeChar
d
)
=
compare
c
d
source
@[simp]
theorem
String
.
utf8EncodeChar_le_utf8EncodeChar_iff
{
c
d
:
Char
}
:
utf8EncodeChar
c
≤
utf8EncodeChar
d
↔
c
≤
d
source
theorem
String
.
compare_toList_toList_eq_compare_toByteArray_toByteArray
{
s
t
:
String
}
:
compare
s
.
toList
t
.
toList
=
compare
s
.
toByteArray
t
.
toByteArray
source
theorem
String
.
toList_lt_toList_iff_toByteArray_lt_toByteArray
{
s
t
:
String
}
:
s
.
toList
<
t
.
toList
↔
s
.
toByteArray
<
t
.
toByteArray
source
theorem
String
.
toList_le_toList_iff_toByteArray_le_toByteArray
{
s
t
:
String
}
:
s
.
toList
≤
t
.
toList
↔
s
.
toByteArray
≤
t
.
toByteArray