Documentation

Init.Data.String.Lemmas.Pattern.Split.Char

theorem String.Slice.Pattern.Model.split_char_eq_split_beq {c : Char} {s : Slice} (f curr : s.Pos) (hle : f curr) :
Model.split c f curr hle = Model.split (fun (x : Char) => x == c) f curr hle
theorem String.toList_split_intercalate {c : Char} {l : List String} (hl : ∀ (s : String), s l¬c s.toList) :
List.map (fun (x : Slice) => x.copy) (((singleton c).intercalate l).split c).toList = if l = [] then [""] else l