For one of my beginning CS classes, we are going over "truth functional logic."
My question pertains to English translations. Note that ^ is AND; v is (inclusive)OR; ~ is NOT. -> is IF
Well, we had this: "RENT being paid is a necessary condition for staying in BUSINESS"
RENT -> BUSINESS
Whenever we graded everything this was wrong. I asked the teacher why and she said nothing more then that "if there is no then
in the sentence, then the antecedent is always last"
I would like some more explanation as to how this is wrong. And how the sentence is not ambiguous. Something more than "there was no then
so it's always this way."
Also, a side note: Where did the IF
boolean operator come from? I've never heard of such an operator that is basically equivalent in Cish code to a==true?b:true
. I have a very hard time grasping it's usage.
edit: The correct answer was
BUSINESS -> RENT
If you describe a message or comment as unambiguous, you mean that it is clear and cannot be understood wrongly.
expressed in a way that makes it completely clear what is meant: The minister promised a clear and unambiguous statement on the future of the coal industry.
UNAMBIGUOUS (adjective) definition and synonyms | Macmillan Dictionary.
: clearly expressed or understood : not ambiguous.
If you pay rent, you're not necessarily in business. Rent !(->) Business.
However, if you're in business, you must pay rent. Business -> Rent.
I think it should have been written:
BUSINESS -> RENT
"If you're staying in business, then you're paying rent."
P -> Q
can be stated "P implies Q," "If P, then Q," or "Q if P."
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With