A: | horse is fresh |
B: | knight will win |
A -> B |
A: | horse is fresh |
B: | armor is strong |
C: | knight will win |
C -> (A /\ B) |
A: | horse is fresh |
B: | knight will win |
B -> A |
A: | armor is strong |
B: | knight will win |
A <-> B |
A: | armor is strong |
B: | horse is fresh |
C: | knight will win |
(A \/ B) -> C |
A | B | A -> B | A' \/ B | (A -> B)<-> A' \/ B |
T | T | T | T | T |
T | F | F | F | T |
F | T | T | T | T |
F | F | T | T | T |
if not((Value1 < Value2) or odd(Number)) or (not(Value1 < Value2) and odd(Number)) then statement1 else statement2 end if
A: | Value1 < Value2 |
B: | odd(Number) |
(A \/ B)' \/ (A' /\ B) | = | (A' /\ B') \/ (A' /\ B) | (De Morgan's Laws) |
= | A' /\ (B' \/ B) | (Distributive Property) | |
= | A' /\ 1 | (Complement Property) | |
= | A' | (Identity Property) |
if Value1 >= Value2 then statement1 else statement2 end if
A | B | A' | B' | A \/ B | (A' /\ B')' |
T | T | F | F | T | T |
T | F | F | T | T | T |
F | T | T | F | T | T |
F | F | T | T | F | F |
A | B | B' | A -> B | (A /\ B')' |
T | T | F | T | T |
T | F | T | F | F |
F | T | F | T | T |
F | F | T | T | T |
1. | A'-> B | hyp |
2. | B-> C | hyp |
3. | C -> D | hyp |
4. | A' | hyp |
5. | B | mp, 1,4 |
6. | C | mp, 2,5 |
7. | D | mp, 3,6 |
``If my client is guilty, then the knife was in the drawer. Either the knife was not in the drawer or Jason Pritchard saw the knife. If the knife was not there on October 10, it follows that Jason Pritchard didn't see the knife. Furthermore, if the knife was there on October 10, then the knife was in the drawer and also the hammer was in the barn. But we all know that the hammer was not in the barn. Therefore, ladies and gentlemen of the jury, my client is innocent.''This can be written as:
1. | A -> B | hyp |
2. | B' \/ C | hyp |
3. | D' -> C' | hyp |
4. | D -> (B/\ E) | hyp |
5. | E' | hyp |
6. | C \/ B' | comm, 2 |
7. | C' -> B' | imp, 6 |
9. | B' -> A' | cont, 1 |
10. | (B/\ E)' -> D' | cont, 4 |
11. | (B'\/ E') | add, 5 |
12. | (B/\ E)' | dm, 11 |
13. | D' | mp, 10,12 |
14. | C' | mp, 3,13 |
15. | B' | mp, 7,14 |
16. | A' | mp, 9,15 |