lean4-htt/src/Init/Data/ByteArray
Markus Himmel 197bc6cb66
feat: redefine String, part one (#10304)
This PR redefines `String` to be the type of byte arrays `b` for which
`b.IsValidUtf8`.

This moves the data model of strings much closer to the actual data
representation at runtime.

In the near future, we will

- provide variants of `String.Pos` and `Substring` that only allow for
valid positions
- redefine all `String` functions to be much closer to their C++
implementations

In the near-to-medium future we will then provide comprehensive
verification of `String` based on these refactors.
2025-09-18 11:36:52 +00:00
..
Basic.lean feat: redefine String, part one (#10304) 2025-09-18 11:36:52 +00:00
Bootstrap.lean feat: redefine String, part one (#10304) 2025-09-18 11:36:52 +00:00
Extra.lean chore: reorganize Init imports around strings (#10289) 2025-09-07 17:09:14 +00:00
Lemmas.lean feat: redefine String, part one (#10304) 2025-09-18 11:36:52 +00:00