Sign in
◑
Theme
fuchsia
/
third_party
/
github.com
/
leanprover
/
lean4
/
HEAD
/
.
/
tests
/
elab
/
grind_9948.lean
blob: ea700d11a580db701c15ff0745c6e960e92580c9 [
file
]
module
theorem sum_of_n
(
n
:
Nat
)
:
(
List
.
range
(
n
+
1
)).
sum
=
n
*
(
n
+
1
)
/
2
:=
by
induction n
with
|
zero
=>
rfl
|
succ k ih
=>
grind
[
List
.
range_succ
]