Documentation

Init.Data.String.Lemmas.Intercalate

@[simp]
@[simp]
theorem String.intercalate_cons_cons {s t u : String} {l : List String} :
s.intercalate (t :: u :: l) = t ++ s ++ s.intercalate (u :: l)
@[simp]
theorem String.intercalate_cons_append {s t u : String} {l : List String} :
s.intercalate ((t ++ u) :: l) = t ++ s.intercalate (u :: l)
theorem String.intercalate_append_of_ne_nil {l m : List String} {s : String} (hl : l []) (hm : m []) :
theorem String.join_eq_foldl {l : List String} :
join l = List.foldl (fun (r s : String) => r ++ s) "" l
@[simp]
theorem String.join_nil :
join [] = ""
@[simp]
theorem String.join_cons {s : String} {l : List String} :
join (s :: l) = s ++ join l
@[simp]
theorem String.appendSlice_eq {s : String} {t : Slice} :
s ++ t = s ++ t.copy