lean4-htt/tests/lean/run/grind_9948.lean
Leonardo de Moura 6683d1eb91
chore: add module keyword to grind tests (#10036)
This PR also fixes missing `@[expose]` in grind support definitions.
2025-08-21 22:02:08 +00:00

7 lines
167 B
Text

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]