Notes From CS Undergrad Courses FSU
This project is maintained by awa03
P logically implies Q is written as P ⇒ Q, which means any of the following
p | q | r | ..... | P | Q | P→Q |
---|---|---|---|---|---|---|
T | T | T | F | T | T | |
T | T | F | T | T | T | |
T | F | T | F | F | T | |
T | F | F | F | F | T | |
F | T | T | F | F | T | |
F | T | F | T | T | T | |
F | F | F | T | T | T |
P is logically equivalent to Q written P ≡ Q ∨ P <=⇒ Q means P ⇒ Q ∧ Q ⇒ P
p | q | ¬ p | ¬ q | p ∧ q | ¬(p ∧ q) | (¬ p) ∨ (¬ q) | LHS <→ RHS |
---|---|---|---|---|---|---|---|
T | T | F | F | T | F | F | T |
T | F | F | T | F | T | T | T |
F | T | T | T | F | T | T | T |
F | F | T | T | F | T | T | T |
Columns Are Identical
"Direct Proof of LHS ⇒ RHS"Assume LHS: ¬(p ∨ q) is T then p ∨ q is F, meaning both p is F ∧ so is q. Then both ¬ q is T ∧ ¬ p T. Theref∨e, ¬ p ∧ ¬ q is T. Hence RHS is T.
So, LHS ⇒ RHS
$p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)$ $p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r)$
Algebraically: $a·(b+c) = ab + ac$ $a + (b·c) != (a+b)(a+c)$
Direct Proof: $p ∧ (¬ q ∨ r) ⇒ (p ∧ q) ∨ (p ∧ r)$
So, LHS ⇒ RHS