named Statements are added to context with there specified name

This commit is contained in:
Jon Eugster
2023-04-14 10:48:46 +02:00
parent 0560c0100b
commit b1dc4d71b3
12 changed files with 37 additions and 73 deletions
-13
View File
@@ -1,13 +0,0 @@
import Adam.Options.MathlibPart
open BigOperators
lemma arithmetic_sum (n : ℕ) : 2 * (∑ i : Fin (n + 1), ↑i) = n * (n + 1) := by
induction' n with n hn
simp
rw [Fin.sum_univ_castSucc]
rw [mul_add]
simp
rw [mul_add, hn]
simp_rw [Nat.succ_eq_one_add]
ring