Skip to content

Commit

Permalink
style: indent subsequent theorem statement (#698)
Browse files Browse the repository at this point in the history
  • Loading branch information
chabulhwi authored Mar 18, 2024
1 parent 5a339f5 commit 4cb204a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Std/Data/List/Lemmas.lean
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ theorem cons_eq_append :
rw [eq_comm, append_eq_cons]

theorem append_eq_append_iff {a b c d : List α} :
a ++ b = c ++ d ↔ (∃ a', c = a ++ a' ∧ b = a' ++ d) ∨ ∃ c', a = c ++ c' ∧ d = c' ++ b := by
a ++ b = c ++ d ↔ (∃ a', c = a ++ a' ∧ b = a' ++ d) ∨ ∃ c', a = c ++ c' ∧ d = c' ++ b := by
induction a generalizing c with
| nil => simp; exact (or_iff_left_of_imp fun ⟨_, ⟨e, rfl⟩, h⟩ => e ▸ h.symm).symm
| cons a as ih => cases c <;> simp [eq_comm, and_assoc, ih, and_or_left]
Expand Down

0 comments on commit 4cb204a

Please sign in to comment.