Hi, there were no logic forums or something that looked like it, so I didn't know where to put this.
Anyway, I got the problem that I need to prove an example of the logic that: If p => q or s, then -q and -s => -p Where the - stands for "not".
So here is the example:
If x+y is not even, then x is even or y is not even. I found no problem here, because if x is even and y is not even, then x+y is not even.
Because if x = 2q (even number) and y = 2k + 1 (not even number),
then x + y = 2q + 2k + 1
which is equal to x + y = 2(q + k) + 1. Which is not an even number. And I belive that in logic, the or goes for if either p or q is true or both are true. So statement should be true.
Now I try to reverse with the: If p => q or s, then -q and -s => -p
I believe p is "x+y is not even" and then q is "x is even" and s is "y is not even"
So I think the next sentence must be:
-q (x is not even) and -s (y is even) then -p (x+y is even)
So if x is not even and y is even then x+y is even.
But that doesn't make sense?
x is not even, x = 2k + 1.
y is even, y = 2q
x + y = 2k + 2q + 1
x + y = 2(k + q) + 1
x + y = not even.
But the first statement was true, then the second should also according to, If p => q or s, then -q and -s => -p
So the first statement is true, and the second is false shouldn't be happening?
What am I doing wrong?
Anyway, I got the problem that I need to prove an example of the logic that: If p => q or s, then -q and -s => -p Where the - stands for "not".
So here is the example:
If x+y is not even, then x is even or y is not even. I found no problem here, because if x is even and y is not even, then x+y is not even.
Because if x = 2q (even number) and y = 2k + 1 (not even number),
then x + y = 2q + 2k + 1
which is equal to x + y = 2(q + k) + 1. Which is not an even number. And I belive that in logic, the or goes for if either p or q is true or both are true. So statement should be true.
Now I try to reverse with the: If p => q or s, then -q and -s => -p
I believe p is "x+y is not even" and then q is "x is even" and s is "y is not even"
So I think the next sentence must be:
-q (x is not even) and -s (y is even) then -p (x+y is even)
So if x is not even and y is even then x+y is even.
But that doesn't make sense?
x is not even, x = 2k + 1.
y is even, y = 2q
x + y = 2k + 2q + 1
x + y = 2(k + q) + 1
x + y = not even.
But the first statement was true, then the second should also according to, If p => q or s, then -q and -s => -p
So the first statement is true, and the second is false shouldn't be happening?
What am I doing wrong?