Skip to content

Conversation

@TwoFX
Copy link
Member

@TwoFX TwoFX commented Oct 1, 2025

This PR defines ByteArray.validateUTF8, uses it to show that ByteArray.IsValidUtf8 is decidable and redefines String.fromUTF8 and friends to use it.

The functions String.validateUTF8 and String.utf8DecodeChar? are deprecated in favor of the identically named functions in the ByteArray namespace.

@TwoFX TwoFX requested a review from kim-em as a code owner October 1, 2025 10:23
@TwoFX TwoFX added the changelog-library Library label Oct 1, 2025
@TwoFX TwoFX enabled auto-merge October 1, 2025 11:28
@TwoFX TwoFX added this pull request to the merge queue Oct 1, 2025
Merged via the queue into leanprover:master with commit 5bfbe2a Oct 1, 2025
13 of 14 checks passed
arthur-adjedj pushed a commit to arthur-adjedj/lean4 that referenced this pull request Oct 6, 2025
…ic (leanprover#10634)

This PR defines `ByteArray.validateUTF8`, uses it to show that
`ByteArray.IsValidUtf8` is decidable and redefines `String.fromUTF8` and
friends to use it.

The functions `String.validateUTF8` and `String.utf8DecodeChar?` are
deprecated in favor of the identically named functions in the
`ByteArray` namespace.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant