Documentation

Init.Data.String.Lemmas.Slice

@[simp]
theorem String.Slice.beq_eq_true_iff {s t : Slice} :
(s == t) = true s.copy = t.copy
@[simp]
theorem String.Slice.Pos.get?_eq_dif {s : Slice} {p : s.Pos} :
p.get? = if h : p = s.endPos then none else some (p.get h)
theorem String.Slice.Pos.get?_eq_some_get {s : Slice} {p : s.Pos} (h : p s.endPos) :
p.get? = some (p.get h)
@[simp]
theorem String.Slice.Pos.get?_eq_none {s : Slice} {p : s.Pos} (h : p = s.endPos) :
theorem String.Pos.get?_eq_dif {s : String} {p : s.Pos} :
p.get? = if h : p = s.endPos then none else some (p.get h)
theorem String.Pos.get?_eq_some_get {s : String} {p : s.Pos} (h : p s.endPos) :
p.get? = some (p.get h)
@[simp]
theorem String.Pos.get?_eq_none_iff {s : String} {p : s.Pos} :
theorem String.Pos.get?_eq_none {s : String} {p : s.Pos} (h : p = s.endPos) :