Skip to content

Commit

Permalink
Revert "fix: add type annotation to by simpa using ... "
Browse files Browse the repository at this point in the history
This reverts commit 038ff75.
  • Loading branch information
thorimur committed Oct 16, 2023
1 parent 038ff75 commit 414d697
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Std/Data/String/Lemmas.lean
Original file line number Diff line number Diff line change
Expand Up @@ -466,9 +466,7 @@ theorem splitAux_of_valid (p l m r acc) :
splitAux ⟨l ++ m ++ r⟩ p ⟨utf8Len l⟩ ⟨utf8Len l + utf8Len m⟩ acc =
acc.reverse ++ (List.splitOnP.go p r m.reverse).map mk := by
unfold splitAux
simp [show utf8Len l + (utf8Len m + utf8Len r) ≤ utf8Len l + utf8Len m ↔ r = [] from by
simpa using atEnd_of_valid (l ++ m) r]
split
simp [by simpa using atEnd_of_valid (l ++ m) r]; split
· subst r; simpa [List.splitOnP.go] using extract_of_valid l m []
· obtain ⟨c, r, rfl⟩ := r.exists_cons_of_ne_nil ‹_›
simp [by simpa using (⟨get_of_valid (l++m) (c::r), next_of_valid (l++m) c r,
Expand Down

0 comments on commit 414d697

Please sign in to comment.