We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ByteArray.IsValidUTF8.intro
1 parent b2b385b commit dada24cCopy full SHA for dada24c
src/Init/Prelude.lean
@@ -3395,7 +3395,10 @@ Note that in order for this definition to be well-behaved it is necessary to kno
3395
is unique. To show this, one defines UTF-8 decoding and shows that encoding and decoding are
3396
mutually inverse. -/
3397
inductive ByteArray.IsValidUTF8 (b : ByteArray) : Prop
3398
- /-- Show that a byte -/
+ /--
3399
+ Show that a byte array is valid UTF-8 by exhibiting it as `List.utf8Encode m` for some list `m`
3400
+ of characters.
3401
+ -/
3402
| intro (m : List Char) (hm : Eq b (List.utf8Encode m))
3403
3404
/--
0 commit comments