lean4-htt/tests/lean/run/grind_9948.lean
Leonardo de Moura 6b24eb474f
fix: variable reordering in grind cutsat (#9980)
This PR fixes a bug in the dynamic variable reordering function used in
`grind cutsat`.

Closes #9948
2025-08-19 02:19:50 +00:00

6 lines
160 B
Text

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]