That’s not equivalent either. “if not b, then not a” works if it’s a sequence but doesn’t work for options in which multiple inputs can lead to the same output. If you get pizza every Tuesday and Friday, then answering “what’s for lunch” with “if Tuesday, then pizza” and “if Friday, then pizza” doesn’t let it work in reverse. “what day is it” can’t be answered with “if pizza lunch, then Tuesday”
Comment on Is "If A then B" equal to "B if and only if A"?
Boinkage@lemmy.world 10 months ago
No. It is equal to “if not B, then not A.” You’re welcome for doing your logic 101 homework for you.
XeroxCool@lemmy.world 10 months ago
Boinkage@lemmy.world 10 months ago
Ya wrong.
If Tuesday, then pizza. And, if Friday, then pizza.
The contrapositive : if not pizza, then not Tuesday and not Friday.
What day is it? We’re not having pizza. So it’s not Tuesday or Friday.
XeroxCool@lemmy.world 10 months ago
That’s a key detail I now see
pruwybn@discuss.tchncs.de 10 months ago
You left out the “not” part - “If not pizza lunch, then not Tuesday” does indeed work.
kogasa@programming.dev 10 months ago
Using standard definitions from propositional logic they are equivalent.
monotremata@kbin.social 10 months ago
Honestly what the homework is probably looking for is that it's equivalent to "B or not A." But yeah.
pineapplelover@lemm.ee 10 months ago
First thing I thought lmao. Somebody is taking logic