No. It is equal to "if not B, then not A." You're welcome for doing your logic 101 homework for you.
No Stupid Questions
No such thing. Ask away!
!nostupidquestions is a community dedicated to being helpful and answering each others' questions on various topics.
The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:
Rules (interactive)
Rule 1- All posts must be legitimate questions. All post titles must include a question.
All posts must be legitimate questions, and all post titles must include a question. Questions that are joke or trolling questions, memes, song lyrics as title, etc. are not allowed here. See Rule 6 for all exceptions.
Rule 2- Your question subject cannot be illegal or NSFW material.
Your question subject cannot be illegal or NSFW material. You will be warned first, banned second.
Rule 3- Do not seek mental, medical and professional help here.
Do not seek mental, medical and professional help here. Breaking this rule will not get you or your post removed, but it will put you at risk, and possibly in danger.
Rule 4- No self promotion or upvote-farming of any kind.
That's it.
Rule 5- No baiting or sealioning or promoting an agenda.
Questions which, instead of being of an innocuous nature, are specifically intended (based on reports and in the opinion of our crack moderation team) to bait users into ideological wars on charged political topics will be removed and the authors warned - or banned - depending on severity.
Rule 6- Regarding META posts and joke questions.
Provided it is about the community itself, you may post non-question posts using the [META] tag on your post title.
On fridays, you are allowed to post meme and troll questions, on the condition that it's in text format only, and conforms with our other rules. These posts MUST include the [NSQ Friday] tag in their title.
If you post a serious question on friday and are looking only for legitimate answers, then please include the [Serious] tag on your post. Irrelevant replies will then be removed by moderators.
Rule 7- You can't intentionally annoy, mock, or harass other members.
If you intentionally annoy, mock, harass, or discriminate against any individual member, you will be removed.
Likewise, if you are a member, sympathiser or a resemblant of a movement that is known to largely hate, mock, discriminate against, and/or want to take lives of a group of people, and you were provably vocal about your hate, then you will be banned on sight.
Rule 8- All comments should try to stay relevant to their parent content.
Rule 9- Reposts from other platforms are not allowed.
Let everyone have their own content.
Rule 10- Majority of bots aren't allowed to participate here.
Credits
Our breathtaking icon was bestowed upon us by @Cevilia!
The greatest banner of all time: by @TheOneWithTheHair!
An example of why this is incorrrect.
If a card is the ace of spades, it is black.
A card is black if and only if it is the ace of spades.
There are other conditions under which B (a card is black) can happen, so the second statement is not true.
A conclusion that would be correct is "If a card is not black, it is not the ace of spades.". The condition is that if A is true B will also always be true, so if B is false we can be sure that A is false as well - i.e. "If not B, not A".
If Nazi, then fascist = true
Fascist, if and only Nazi = not true
If car, then vehicle = true
Vehicle if and only if car = not true
I used the bananas are fruits analog but your one works well too!
I just figured with Lemmy’s interest in politics it seemed like an obvious example. I threw in the car because I didn’t want to be that guy who makes everything about nazis…
Yeah careful with that, the logic example Nazis will be all over you if you don't mix it up some.
Not everything is about Nazis, Boinkage, geez…
If car, then vehicle = true
Car if and only if vehicle = true.
Is this correct?
Therefore "If A then B" = "A if and only if B" (or "If B then A" = "B if and only if A")?
B can still be true when a is false. iff means that b can only be true when a is true.
Also, the equivalent statement is.
vehicle if and only if car.
not
car only if vehicle
since a truck is a vehicle, the statement is false.
Somewhat wrong above:
A B a iff b
T T T
T F F
F T F
F F T
look online for truth tables.
No.
You've have some examples, but in case they are not clear enough:
If [you have AIDS] then [you are unwell]
[You are unwell] if and only if [you have AIDS]
The first one is not the same as the second. Why? There are plenty of ways to be unwell, without necessary developing AIDS.
The first statement only defines one possible path to B, not all of them.
If A, then B
If Not B, then Not A
If it's raining then the grass is wet, but you can't tell if it's raining if the grass is wet, because of say, a hose or sprinkler.
All that you can tell is that if the grass is dry, then it is not raining, and I that's called a contrapositive.
if youre doing homework, i recommend writing out truth tables for the statements and comparing, gives you a bit more insight into the statement truth conditions
if I brake, my Car will stop.
will my Car only stop if i brake?
Brake*
shhhhhhh. Nobody saw, nobody knows.
Also It's 00:30 over here, cut me some Slack.
“If X is cat, then X is mammal” =?> “X is mammal if and only if X is cat”
Obviously doesn’t hold: What if X doge?
I just saw a video on all the logical fallacies that exist, and this was one of them but my shit-ass memory can't recall what the name of the fallacy was.
I think it's affirming the consequent
A => B is not the same as B <=> A
No.
B iff A is defined as "If B then A and if A then B".
If that doesn't make it clear enough for you, then try writing out the truth table for both statements.
I think I understand now, but what has left me scratching my nose (metaphorically):
Why is it called "B if and only if A", if what it really means is "B only if A and vice versa"? (Am I correct in thinking that's what it means?)
I just don't understand how that translates grammatically. To me, "B if and only if A" sounds the same as "B only if A". I can accept that they mean different things in the context of logic, just like I can assign any meaning to any label, like I could say that "dog" now means "kite" in a certain context. But it seems unintuitive and doesn't really make sense to me. Does that make sense?
"B if and only if A" is a shorthand way to write "B if A and B only if A". It's like how "He is young and thin" means "He is young and he is thin". We could write it the second way without trouble, but the first way is shorter, we agree that they mean the same thing, and we prefer to conserve energy when writing.
The form "if and only if" is merely a convenient shorthand. Shorthand is usually more convenient for the writer than for the reader. 🤷♂️
Imagine these natural language sentences and analyze how they are different:
- I'll go outside if it's not snowing
- I'll go outside only if it's not snowing
Hint: what do you do in each case when it's snowing?
"If A then B" means if A is true, then B is guaranteed to be true. Note that if B is true and A is false, "if A then B" is still true.
"B only if A" means the only way for B to be true is for A to be true. It's weird, but it has the inverse truth table as "(not A) and B".
The first statement only tells you when B is true. It says nothing about when it is false. The second statement both tells you when B is true (if A) and when it is not (only if A). Therefore, the two statements cannot be equal.
NP = P