Class: CSE 16 Subject: computer-science discrete-math Date: 2024-10-09 Teacher: Prof. Musacchio
Sets
DeMorgan’s Laws
- ∼ (P ∧ Q) = (∼ P) ∨ (∼ Q)
- ∼ (P ∨ Q) = (∼ P) ∧ (∼ Q
P Q === ~ P Q === ~ P or ( Q) === ( Q) (~ P) === ~ Q (~ P)
1. Contrapositive
- If P is true then Q is true
- If Q is false then P is false
- E.g.
- If x is rational(P) then x is real(Q)
- If x is not real(~Q) then x is not rational(~P)