Basic lemmas about strings #
This file contains lemmas that could be in Init.Data.String.Basic but are not because they are
not needed to define basic string operations.
theorem
String.getUTF8Byte_eq_getUTF8Byte_toSlice
{s : String}
{p : Pos.Raw}
{h : p < s.rawEndPos}
:
theorem
String.Slice.ext
{s t : Slice}
(h : s.str = t.str)
(hsi : s.startInclusive.cast h = t.startInclusive)
(hee : s.endExclusive.cast h = t.endExclusive)
:
@[simp]
@[simp]
theorem
String.Slice.cast_pos
{s t : Slice}
{p : Pos.Raw}
{h : Pos.Raw.IsValidForSlice s p}
{h' : s.copy = t.copy}
{h'' : Pos.Raw.IsValidForSlice t p}
:
@[simp]