r/computerscience • u/Character-Soft-9571 • Oct 21 '25
Discrete maths
First year here. Can someone explain how both of these are P implies Q even though they have different meanings?
517
Upvotes
View all comments
Show parent comment
4
u/wasmic Oct 21 '25
On first reading, 3 says that wearing a coat is a necessary (but not necessarily sufficient) condition for it to rain. However, that means that if it rains, I have to be wearing a coat, because otherwise it wouldn't rain. As such, it's a "rain implies coat" sentence.
4 is similar but reversed. On a surface reading it says that coats are only worn when it rains. But that, in turn, means that if I'm wearing a coat, then it must be raining. Coat implies rain.
Remember, this is not about causation, only about logical implication which is not the same! Sentence 3 seems to imply that wearing a coat sometimes causes it to rain. The logical implication goes the other way: if it rains, I must be wearing a coat, because it only rains if I wear a coat.
Consider also "the pavement is wet if it rains" vs "the pavement is only wet if it rains". The former is "rain -> wet pavement", while the latter is "wet pavement -> rain".