lean4-htt/src/Init/Data/String
Markus Himmel 8a9cb6def0
feat: Slice.posGE and Slice.posGT (#12301)
This PR introduces the functions `(String|Slice).posGE` and
`(String|Slice).posGT` will full verification and deprecates
`Slice.findNextPos` in favor of `Slice.posGT`.

The KMP implementation is adapted to use these two new functions.

Various useful string and order lemmas are added along the way.

Also add a `simp` attribute to `Std.le_refl` and fix the resulting
fallout (yes, this would have been better as a separate PR).
2026-02-04 09:45:44 +00:00
..
Lemmas feat: Slice.posGE and Slice.posGT (#12301) 2026-02-04 09:45:44 +00:00
Pattern feat: Slice.posGE and Slice.posGT (#12301) 2026-02-04 09:45:44 +00:00
Basic.lean feat: Slice.posGE and Slice.posGT (#12301) 2026-02-04 09:45:44 +00:00
Bootstrap.lean refactor: move String.ofList to the Prelude (#12029) 2026-01-19 08:22:13 +00:00
Decode.lean perf: inline IsUTF8FirstByte (#11872) 2026-01-02 11:21:54 +00:00
Defs.lean refactor: rename String.bytes to String.toByteArray (#11343) 2025-11-24 18:59:49 +00:00
Extra.lean chore: rename String.ValidPos to String.Pos (#11240) 2025-11-24 16:40:21 +00:00
FindPos.lean feat: Slice.posGE and Slice.posGT (#12301) 2026-02-04 09:45:44 +00:00
Iterator.lean chore: rename String.ValidPos to String.Pos (#11240) 2025-11-24 16:40:21 +00:00
Legacy.lean refactor: use String.split instead of String.splitOn or String.splitToList (#11250) 2025-11-19 09:35:19 +00:00
Lemmas.lean feat: Slice.posGE and Slice.posGT (#12301) 2026-02-04 09:45:44 +00:00
Modify.lean refactor: rename String.bytes to String.toByteArray (#11343) 2025-11-24 18:59:49 +00:00
OrderInstances.lean feat: Slice.posGE and Slice.posGT (#12301) 2026-02-04 09:45:44 +00:00
Pattern.lean feat: new String.Slice API (#10514) 2025-09-25 12:18:52 +00:00
PosRaw.lean feat: Slice.posGE and Slice.posGT (#12301) 2026-02-04 09:45:44 +00:00
Search.lean refactor: move Iter and others from Std.Iterators to Std (#11446) 2025-12-15 08:24:12 +00:00
Slice.lean feat: Slice.posGE and Slice.posGT (#12301) 2026-02-04 09:45:44 +00:00
Stream.lean chore: rename Substring to Substring.Raw (#11154) 2025-11-16 09:30:04 +00:00
Substring.lean feat: @[suggest_for] annotations for prompting easy-to-miss names (#11554) 2025-12-10 22:50:45 +00:00
TakeDrop.lean feat: string patterns for decidable predicates on Char (#11285) 2025-11-20 15:30:37 +00:00
Termination.lean chore: minor String API improvements (#11439) 2025-12-01 11:44:14 +00:00
ToSlice.lean refactor: redefine String.replace (#10986) 2025-10-29 07:48:33 +00:00