As we can see, for any
n
, the actual output will be[n, n]
, not[n, -1]
While I have no problem with hand-waving a bit in a mathematical argument for popular consumption, "as we can see" is really begging the question. If we could simply see this, then we would really not need to proof by contradiction at all. I think this should be spelled out.
For example, the cardinality of
[0, 1, 2, 3, Infinity]
is4
, the same as its length.
Oops. There seems to be a miscount here.