Zulip Chat Archive
Stream: general
Topic: Question about sum_range_succ
Mattia Bottoni (Oct 23 2023 at 09:57):
Hi everybody :)
I wanted to use sum_range_succ in a proof, but I am very confused about this theorem.
I found this in the Lean 4 documentation side. Why do they add f n at the end and not f (n+1). The last "element" of the sum is (n+1) and not n.
What am I missing?
Thanks in advance!
Matt
Eric Wieser (Oct 23 2023 at 09:58):
docs#Finset.range does not include the upper bound
Kevin Buzzard (Oct 23 2023 at 10:13):
It also starts at 0 not 1, so there are numbers in range n
.
Mattia Bottoni (Oct 24 2023 at 10:31):
Ah I see!
Thank you both very much :)
Last updated: Dec 20 2023 at 11:08 UTC