Documentation

Init.Data.String.Lemmas.Pattern.Split.Pred

theorem String.Slice.Pattern.Model.split_bool_eq_internal {p : CharBool} {s : Slice} (f curr : s.Pos) (hle : f curr) :
Model.split p f curr hle = if h : curr = s.endPos then [s.subslice f curr hle] else if p (curr.get h) = true then s.subslice f curr hle :: Model.split p (curr.next h) (curr.next h) else Model.split p f (curr.next h)
theorem String.Slice.Pattern.Model.split_eq_split_decide {p : CharProp} [DecidablePred p] {s : Slice} (f curr : s.Pos) (hle : f curr) :
Model.split p f curr hle = Model.split (fun (x : Char) => decide (p x)) f curr hle