Logic Notes
Logic Notes
TAKE-AWAYS
Propositional Logic
Logical Operators
Propositions can be combined using logical operators to create more
complex propositions. We will start with the logical operator not.
The negation of a proposition P is written ¬ P and read “not P”. The
meaning of proposition ¬ P depends on whether P is T or F. This is
often best described using a table that is called a truth table. A truth
table has columns corresponding to different propositions/formulas,
and has a row corresponding to each possible assignment to the
propositions that are being combined. Such a table describes how
the truth of ¬ P depends on P. Figure 1 shows that truth table for
¬ P, which shows that ¬ P takes the value T when P is F, and takes
the value F when P is T. The disjunction of propositions P and Q
P ¬P
F T
T F
Figure 1: Truth table for ¬ P
P Q P→Q
F F T
F T T
T F F
T T T
Figure 4: Truth table for P → Q
Logical Equivalence
P Q P→Q ¬P (¬ P) ∨ Q
F F T T T
F T T T T
T F F F F
T T T F T
Figure 6: Truth table for P → Q and (¬ P) ∨ Q
P Q ¬P ¬Q P→Q (¬ Q) → (¬ P)
F F T T T T
F T T F T T
T F F T F F
T T F F T T
Figure 7: Truth table for P → Q and (¬ Q) → (¬ P)
1. Double Negation: ¬¬ P ≡ P
P ∨ (¬ P) ≡ T P ∧ (¬ P) ≡ F
P∨F ≡ P P∧T ≡ P
P ∨ ( Q ∨ R) ≡ ( P ∨ Q) ∨ R P ∧ ( Q ∧ R) ≡ ( P ∧ Q) ∧ R
P ∨ ( Q ∧ R) ≡ ( P ∨ Q) ∧ ( P ∨ R)
P ∧ ( Q ∨ R) ≡ ( P ∧ Q) ∨ ( P ∧ R)
propositional and predicate logic 7
P ∨ Q ≡ ¬((¬ P) ∧ (¬ Q))
P ∧ Q ≡ ¬((¬ P) ∨ (¬ Q))
Predicate Logic
¬(∀ x P( x )) ≡ ∃ x (¬ P( x ))
¬(∃ x P( x )) ≡ ∀ x (¬ P( x ))
∀ x ∈ Z(∃y ∈ Z ( x + y = 0))
∃y ∈ Z(∀ x ∈ Z ( x + y = 0))
not true — there is no number with the property that no matter what
we add to it, we get 0!