Now, I don’t claim to be a Mathematics-overlord (I’m still a freshman ), but I really don’t understand the output Mathematica produces. I really think it is simply false. No I don’t think I found a bug; I’m pretty positive this is a design choice; but I really don’t understand it.
I’m sorry, but while I can understand the output of the Sum function alone, all of this simply turns false if put under the universal quantifier. For some values of q the series is not convergent. It is especially weird for q=1, as we have division by zero then. Hence it is not true that for all real values of q this sum equals -q/(-1+q).
Could somebody be kind enough and explain this to me? Am I failing to understand something, or am I doing something wrong?
It’s slightly subtle. To get a sense of why your In[3] returns True you need to see how the expression is evaluated. The short answer is that the expression inside of it,
Sum[q^k, {k, Infinity}] == -q/(-1 + q)
is evaluated before the other things are evaluated. So it first is turned into
-q/(-1 + q) == -q/(-1 + q)
and then the rest of your quantifiers are subsequently being applied to the simple expression which is just the symbol
True
which of course is always True. To see this unfold make use of TracePrint to see some the evaluations that Mathematica is doing