I could be wrong but no from what I can tell (x && y) && !(x || y) will always be false. |
That's what material implication is; P => Q means that under no circumstances P && !Q (i.e. !(P && !Q) is a tautology). |
assuming A => B, is it true that ((C => A) => (C => B))? Hint: (x => y) <=> !(x && !y) |
C A B ~C ~A ~B C => A C => B (C => A) => (A => B) ------------------------------------------------------------------ T T T F F F T T T T T F F F T F T F T F T F F T T F F F T T F T T T F F T T T F T F T F T T F F T T T F T T F F F T T T |
O = odd O(A) O(B) O(A) ^ O(B) O(A) v O(B) O(A) ^ O(B) => O(A) v O(B) --------------------------------------------------------------------------- T T T T T T F F T T F T F T T F F F F T |
If it makes you reach the same conclusion, how is it different from propositional logic? |
in propositional logic odd(AB) = odd(A) || odd(B) |
O = odd O(A) O(B) O(A) ^ O(B) O(A) v O(B) ( O(A) ^ O(B) => O(A) v O(B) ) --------------------------------------------------------------------------- T T T T T T F F T F F T F T T F F F F T |
I should have said that odd(AB) =>odd(A) && odd(B) in normal logic and in propositional odd(AB) => odd(A) || odd(B) |
is this truth table right? |
O(A) O(B) O(A) ^ O(B) O(A) v O(B) ( O(A) ^ O(B) => O(A) v O(B) ) --------------------------------------------------------------------------- T T T T T T F F T T // this one F T F T T F F F F T |
O(A) v O(B) => O(A) ^ O(B) |
so since all possible states are true does this mean O(A) ^ O(B) => O(A) v O(B) ? |
BUT also if we add another to the table O(A) v O(B) => O(A) ^ O(B) all four conditions will also give us true |
O(A) O(B) O(A) ^ O(B) O(A) v O(B) O(A) v O(B) => O(A) ^ O(B) T T T T T T F F T F F T F T F F F F F T |
If it helps, try answering this: exactly what conditions should a counterexample number meet? |
GIVEN: “Let a and b be integers” TO PROVE: “If ab is even, then a is even or b is even” (Hypothesis) (Note that it's not an exclusive or) Which is the same as: “ab is even => a is even or b is even” CONSTRUCTION: (there are actually 2 'constructions') 1. The contrapositive of that last statement is: ~(“a is even or b is even”) => ~(“ab is even”) i.e. ~( (“a is even”) or (“b is even”) ) => ~(“ab is even”) 2. Now use DeMorgan's law on that last statement: ~(“a is even”) and ~(“b is even”) => ~(“ab is even”) Which now becomes: “a is odd” and “b is odd” => “ab is odd” So if we can prove that statement we can prove the original (hypothesis) statement. PROOF: Let a,b be odd numbers 2i + 1, 2j + 1 respectively. ab = 4ij +2i + 2j + 1 which is odd. QED |
let me try this again a counterexample would be a number greater than 2 and that is a prime that isn't odd or in otherwords the antecedent is true and the consequent is false so no 9 is not a counter example as 9 is not prime, |
and lastly how is odd(AB) => odd(A) || odd(B) is equivalent to odd(AB) => odd(A)? |
how does one decipher that the author is implying odd(ab) => odd(a) || even(b) instead of just meaning if ab is odd then a is odd or b is even? two are very different statements right? |
the former being correct and the latter being false as both factors of an odd product have to be odd. |
No, they're identical. In a formal context (mathematics, science, engineering, etc.), if ... then is material implication. |
justification: To justify this claim, consider the contrapositive, "if a is even and b is odd, then ab is even". so, suppose a = 2i, for some integer . then ab = (2i)b = 2(ib); hence ab is even |
why does the author choose 2i for a? |