Is it possible to give a logical/mathematical definition of what makes a something an opposite of something else?
Hot is considered the opposite of cold, light the opposite of darkness. But is upstairs the opposite of downstairs? Is cool the opposite of warm? And can “oppositeness” be described by a definition in symbolic logic?
Welcome to the forum! I might as well take a stab at answering your question. Someone can just correct me if I’m wrong.
Based on my knowledge of propositional logic (or truth-functional logic), I would say that there is certainly no logical connective that could differentiate between the kind of semantic content in saying someone is upstairs or downstairs, or that a glass of water is warm or cool no matter how you represent your sentences. This is because once you translate some sentence into the object language, the actual meaning of the sentence becomes largely irrelevant to whatever manipulations you might try to carry out; all that matters in determining the truth of a statement are the truth values assigned to its constituent parts—there is no room for something like considerations of oppositeness. Otherwise, we wouldn’t be dealing with truth functions. In other words: creating a symbolic representation of oppositeness would presuppose that the meaning of your sentences in English stay relevant when evaluating expressions in truth-functional logic. That cannot be the case. I don’t think this gets far enough off the ground for a general definition to be at all plausible.
Take this with a grain of salt, however, because there could be logics other than propositional logic that I don’t fully understand that could represent oppositeness somehow. I get the feeling intuitively that it is possible, so maybe it is just vibes. I’m sure Banno or someone would know.
I’m comfortable with the upstairs downstairs case, but I take your point about cool and warm. The difference seems to be that opposite in the sense you want corresponds roughly to antonym? Which seems to imply, or at least emphasise, just two opposed values in a scale of three? The middle ground keeping the other two apart, so that they sit at opposite ends of an ordering.
An appropriate formalism would be such as to fit a Venn diagram with two non-overlapping circles, each occupying all of one end of the rectangle, and disappearing off that end. (Clear as mud? I’ll draw it later.)
And the ‘algebra’ of such a formalism might employ a so-called modal operator for “definitely”. So that e.g. hot (the circle falling off one end) means definitely not cold, and cold (at the other end) means definitely not hot. And the region in between isn’t definitely removed from either.
Trouble is, “opposite” is a group of related notions, not one simple notion. Hot and cold, light and dark admit of degrees, and so lend themselves to introducing a scale, while upstairs/downstairs is binary.
Hot and cold are contraries rather than contradictories, since there are things that are neither hot nor cold. Upstairs and downstairs, left and right, positive and negative, all rely on context, and so parsing them might benefit from using indexicals.
We can certainly take the traditional square of opposition and parse it in first-order language, but it doesn’t capture scalars.
While there may be no general method, in a particular context, given a specific use, it would not be difficult to parse opposites in a first-order language.