Why is predicate "all" as in all(SET) true if the SET is empty?
Can anyone explain why the predicate all
is true for an empty set? If the set is empty, there are no elements in it, so there is not really any elements to apply the predicate on? So it feels to me it should be false rather than true.
It hinges on the Law of the Excluded Middle. The claim itself is either TRUE or FALSE, one way or the other, not both, not neither.
Pretend that I am asserting "For every $x\in S$, property $P(x)$ holds." How could you declare me to be a liar? You would have to produce an element of the set ($S=\varnothing$, in this case) that does not have the property $P(x)$. Only then can you declare my assertion FALSE. Since you cannot do that here, my assertion is TRUE. I essentially spoke the truth by NOT speaking a lie.
"All of my children are rock stars."
"If we go through the list of my children, one at a time, you will never find one that is not a rock star."
Do you want the above two sentences to mean the same thing?
Also, do you want
"Not all of my children are rock stars."
to mean the same as
"At least one of my children is not a rockstar"?
Because in the situation that I have no children, the last statement is false, so we would want "all of my children are rock stars" to be true to preserve dichotomy.
It could be taken the other way, but it's simpler this way.
Say we believe that all rubies are red, and we consider some some collection of rubies, called $R$; say $R$ is all my rubies.
We would like to conclude that all my rubies are red. This seems very reasonable, since all rubies are red. But with your idea, this conclusion might be false! At best we can say that all my rubies are red, if I have any rubies.
This qualification doesn't add anything to the analysis. It doesn't illuminate any subtle point. It just complicates the discussion with an uninteresting special case.
Since the purpose of formal logic is to model plausible reasoning as closely and as simply as possible, we agree to the convention that "all my rubies are red" is deemed to be true even when I have no rubies, so that we don't have to qualify a lot of claims with "… if there are any such rubies".