Is it if/then or and statement?

  • Thread starter pikdar3
  • Start date
In summary: As long as we're moving this to the homework section, let's make it as such.In summary, the statements discussed in the conversation are interpreted differently depending on the use of "if/then" or "and" operators. The first statement, "Nobody in the calculus class is smarter than everybody in the discrete math class," can be interpreted as "for any student in the calculus class, there exists at least one student in the discrete math class who is at least as smart." This can be represented as -∀x∃y(C(x) ⇒ D(y) ∧ S(y,x)). The second statement, "Everyone likes Mary, except Mary herself," can be interpreted as "for all students, if they like Mary, then
  • #1
pikdar3
4
1
Mentor note: moved to homework section

I'm having trouble determining if statements are combined using if/then or and operators. Take the following statements:

1) Nobody in the calculus class is smarter than everybody in the discrete math class.

For 1 I'd think a proper way to term it is "For not any x's and all y's, if x students are taking calculus, and y students are taking discrete then the x students are smarter than the y students."

With notation, it'd be -ExVy( C(x) and D(y) ---> S(x,y) ).

(note that I use E to represent for some and V to represent for all)

This answer agrees with one solutions manual but not with another. The other one says: ¬∃xC(x)∧[∀yD(y)∧S(x,y)] But wouldn't this literally mean that " no one is taking calculus and everyone is taking
discrete and no calculus students are smarter than discrete math students"? That latter bit agrees with the statement, but not former, which I believe says "nobody takes calculus"
2) Everyone likes Mary, except Mary herself.

I thought this looked like a fairly straightforward "and" statement. " For all x's,All people x like Mary AND x is not equal to M"

Symbollically," Vx L(x,m) and m not = to x"

But according to the answers manual, the answer is: Vx ( -(x=m) --> L(x,m)). Wouldn't this mean if Mary is not equal to x, then everyone likes Mary? It's somewhat similar but my answer seems a bit more straightforward. Is it possible that there are just many ways to write one statement?
 
Last edited by a moderator:
Physics news on Phys.org
  • #2
pikdar3 said:
Mentor note: moved to homework section

I'm having trouble determining if statements are combined using if/then or and operators. Take the following statements:

1) Nobody in the calculus class is smarter than everybody in the discrete math class.

For 1 I'd think a proper way to term it is "For not any x's and all y's, if x students are taking calculus, and y students are taking discrete then the x students are smarter than the y students."
You need to define what x and y mean.
pikdar3 said:
With notation, it'd be -ExVy( C(x) and D(y) ---> S(x,y) ).
All of the correct notation is available here. Click the ##\Sigma## symbol at the upper right end of the menu bar to see what is available.
Or - ∨
And - ∧
There exists - ∃
For all - ∃
Element of - ∈
Not an element of -∉
Implies - ⇒

Apparently we don't have a symbol for "Not"
pikdar3 said:
(note that I use E to represent for some and V to represent for all)

This answer agrees with one solutions manual but not with another. The other one says: ¬∃xC(x)∧[∀yD(y)∧S(x,y)] But wouldn't this literally mean that " no one is taking calculus and everyone is taking
discrete and no calculus students are smarter than discrete math students"? That latter bit agrees with the statement, but not former, which I believe says "nobody takes calculus"
Again, you need to define your symbols. What does C(x) mean? I assume it has something to do with calculus students, and D(y) has something to do with discrete math students, but you should make clear what these mean.

What does S(x, y) mean?

For what it's worth, the sentence you're working with is equivalent to, "Everyone in the calculus class is dumber than any student in the discrete math class."
pikdar3 said:
2) Everyone likes Mary, except Mary herself.

I thought this looked like a fairly straightforward "and" statement. " For all x's,All people x like Mary AND x is not equal to M"

Symbollically," Vx L(x,m) and m not = to x"

But according to the answers manual, the answer is: Vx ( -(x=m) --> L(x,m)). Wouldn't this mean if Mary is not equal to x, then everyone likes Mary? It's somewhat similar but my answer seems a bit more straightforward. Is it possible that there are just many ways to write one statement?
 
  • #3
Mark44 said:
You need to define what x and y mean.
All of the correct notation is available here. Click the ##\Sigma## symbol at the upper right end of the menu bar to see what is available.
Or - ∨
And - ∧
There exists - ∃
For all - ∃
Element of - ∈
Not an element of -∉
Implies - ⇒

Apparently we don't have a symbol for "Not"
Again, you need to define your symbols. What does C(x) mean? I assume it has something to do with calculus students, and D(y) has something to do with discrete math students, but you should make clear what these mean.

What does S(x, y) mean?

For what it's worth, the sentence you're working with is equivalent to, "Everyone in the calculus class is dumber than any student in the discrete math class."
Yes, as you said. C(x) are all kids taking calculus and D(y) are all kids taking discrete. S(x,y) refers to calculus kids being smarter than Discrete kids.
 
  • #4
To start with, before worrying about "if then" or "and", you are interpreting the statement incorrectly!

"Nobody in the calculus class is smarter than everybody in the discrete math class." Your "For not any x's and all y's, if x students are taking calculus, and y students are taking discrete then the x students are smarter than the y students" in addition to the awkwardness of "for not any x", you are essentially saying that every student in discrete math is smarter than every student in the Calculus class"- and that is NOT what the original sentence means. It means, rather, that for any student in the Calculus class there is at least one student in the discrete math class that is at least as smart. That is, "for all x in Calculus, there exist at least one y in discrete math such that y is as smart, or smarter, than x." Equivalently, taking [itex]\ge[/itex] to mean "is at least as smart as", "if x is in Calculus then there exist y in discrete math such that ##y\ge x##."

Similarly, "Everyone likes Mary, except Mary herself" is NOT "For all x's,All people x like Mary AND x is not equal to M" because, as long as Mary exists there IS "x" such that is equal to Mary! Instead you want "For all x, either x likes Mary or x= Mary".
 
  • #5
pikdar3 said:
Yes, as you said. C(x) are all kids taking calculus and D(y) are all kids taking discrete. S(x,y) refers to calculus kids being smarter than Discrete kids.
OK, what does "C(x) and D(y)" represent? It would have to have a value of either true or false, wouldn't it?
 
  • #6
HallsofIvy said:
To start with, before worrying about "if then" or "and", you are interpreting the statement incorrectly! Similarly, "Everyone likes Mary, except Mary herself" is NOT "For all x's,All people x like Mary AND x is not equal to M" because, as long as Mary exists there IS "x" such that is equal to Mary! Instead you want "For all x, either x likes Mary or x= Mary".

Thanks, this made perfect sense. Just to make sure, you're saying if I stated "for all x, All x's like Mary",pairing that up with "and Mary is not equal to x" would essentially be a contradiction ?
 
  • #7
Your phrasing is a bit awkward. When you say "for all x", you shouldn't then say "All x's like Mary." The x stands for a single person, so you should say "x likes Mary" instead. "For all x, x likes Mary" would mean everyone likes Mary (including Mary herself).

I think the answer you quoted from the book is wrong. It says that if x isn't Mary, then x likes Mary, but it doesn't say what's true if x is Mary. Mary could like herself or not. Either way, the implication is true. The original wording, however, says Mary doesn't like herself.

What Halls said is different than the book's answer because he used the exclusive OR: either x likes Mary or x is Mary. If x=Mary, that statement is true only if x likes Mary is false, i.e., Mary doesn't like herself.
 

FAQ: Is it if/then or and statement?

1. Is "if/then" or "and" used in conditional statements?

Both "if/then" and "and" can be used in conditional statements, but they serve different purposes. "If/then" is used to express a conditional relationship, while "and" is used to express a logical relationship between two or more conditions.

2. What is the difference between "if/then" and "and" in conditional statements?

The main difference between "if/then" and "and" in conditional statements is that "if/then" is used to specify a single condition and its corresponding consequence, while "and" is used to combine multiple conditions to form a more complex conditional statement.

3. Can "if/then" and "and" be used together in a conditional statement?

Yes, "if/then" and "and" can be used together in a conditional statement to express a combination of a conditional and logical relationship. This can be done by using "if/then" to specify the condition and "and" to add additional conditions that must also be met.

4. Are "if/then" and "and" interchangeable in conditional statements?

No, "if/then" and "and" are not interchangeable in conditional statements. They have different meanings and serve different purposes, so they cannot be used interchangeably. However, they can be used together to create more complex conditional statements.

5. Which is more commonly used in conditional statements, "if/then" or "and"?

The use of "if/then" and "and" in conditional statements depends on the specific context and purpose of the statement. Both are commonly used, but "if/then" is typically used to express a single condition, while "and" is used to combine multiple conditions. It is important to choose the appropriate one based on the specific logic and conditions being expressed.

Similar threads

Replies
2
Views
1K
Replies
8
Views
1K
Replies
5
Views
4K
Replies
5
Views
1K
Replies
4
Views
2K
Replies
3
Views
2K
Back
Top