Escolar Documentos
Profissional Documentos
Cultura Documentos
1 / 46
Propositional Logic
Highlights
2 / 46
Propositional Logic
Reading
3 / 46
Propositional Logic
4 / 46
Propositional Logic
Propositional Logic
5 / 46
Propositional Logic
Propositional Logic
1
David Sanson
6 / 46
Propositional Logic
Example
You have 4 cards. Each card has a number on one side and a letter
on the other. If the cards are dealt so that you can see
K 5 2 J
– then which cards would you have to turn over, to test the rule that
if there’s a J on one side then there’s a 5 on the other side? Give
reasons for your answer.
7 / 46
Propositional Logic
Example2
One rabbit saw six elephants while going to the river. Every
elephant saw two monkeys going towards the river. Every monkey
holds one parrot in their hands. How many animals are going
towards the river?
2
Sara L Uckelman,
http://community.dur.ac.uk/s.l.uckelman/slides/teachersconf042017.pdf
8 / 46
Propositional Logic
Propositions
9 / 46
Propositional Logic
Connectives
10 / 46
Propositional Logic
Connectives (cont’d)
11 / 46
Propositional Logic
Connectives (cont’d)
The connectives we will use for propositional logic are:
not ¬
and ∧
or ∨
implies (if–then) →
iff (if and only if) ↔
12 / 46
Propositional Logic
Connectives (cont’d)
P Q P∧Q P Q P∨Q
P ¬P T T T T
T F T F T F
F T F T F T
F F F F
13 / 46
Propositional Logic
Connectives (cont’d)
P Q P∧Q P Q P∨Q
P ¬P T T T T T T
T F T F F T F T
F T F T F F T T
F F F F F F
14 / 46
Propositional Logic
Connectives (cont’d)
P Q P→Q P Q P↔Q
T T T T
T F T F
F T F T
F F F F
15 / 46
Propositional Logic
Connectives (cont’d)
P Q P→Q P Q P↔Q
T T T T T T
T F F T F F
F T T F T F
F F T F F T
16 / 46
Propositional Logic
Implication
17 / 46
Propositional Logic
Implication (cont’d)
But that doesn’t sound quite like what we mean when we say
‘If A, then B’. Why is it this way?
One way to think about implication is to think about how
you’d disprove a statement of the form ‘If A, then B’.
If someone asserted that ‘If you wash your car, it always rains’,
you could disprove this by pointing out a circumstance where
someone washed their car and it didn’t rain –
i.e. the if-part is true, and the then-part is false.
And that corresponds to the one row in the truth table that
comes out false.
If you wash your car and it doesn’t rain, then it’s certainly not
true that ‘If you wash your car, it always rains’.
In every other situation, we can’t disprove that ‘If P, then Q’ –
so we regard it as true.
18 / 46
Propositional Logic
Implication (cont’d)
19 / 46
Propositional Logic
Implication examples
20 / 46
Propositional Logic
Implication examples
21 / 46
Propositional Logic
Formal languages
22 / 46
Propositional Logic
23 / 46
Propositional Logic
24 / 46
Propositional Logic
25 / 46
Propositional Logic
Semantics
26 / 46
Propositional Logic
27 / 46
Propositional Logic
+ P ∨Q
¬∧Q
P ∧ Q ∨ R ¬(S ∧ ¬P)
P ↔ ¬P
→P Q
*→Q
28 / 46
Propositional Logic
Precedence rules
29 / 46
Propositional Logic
Precedence cont’d
¬P ∧ Q → ¬S ∧ ¬T ↔ ¬V ∨ W
30 / 46
Propositional Logic
Truth Tables
Truth Tables
31 / 46
Propositional Logic
Truth Tables
Truth Tables
32 / 46
Propositional Logic
Truth Tables
Equivalence
Two propositions are equivalent if they have the same truth value for all possible
values of their identifiers.
Here are some commonly used propositional equivalences. Each can be derived from a
truth table (exercise).
33 / 46
Propositional Logic
Truth Tables
LHS RHS
P Q P ∨Q ¬(P ∨ Q) ¬P ¬Q ¬P ∧ ¬Q LHS ↔ RHS
T T
T F
F T
F F
34 / 46
Propositional Logic
Truth Tables
LHS RHS
P Q P→Q ¬Q ¬P ¬Q → ¬P LHS ↔ RHS
T T
T F
F T
F F
35 / 46
Propositional Logic
Truth Tables
36 / 46
Propositional Logic
Truth Tables
Types of propositions
37 / 46
Propositional Logic
Truth Tables
Tautologies
38 / 46
Propositional Logic
Truth Tables
Contradictions
39 / 46
Propositional Logic
Truth Tables
Contingency
40 / 46
Propositional Logic
Truth Tables
Logical equivalence
41 / 46
Propositional Logic
Truth Tables
42 / 46
Propositional Logic
Truth Tables
43 / 46
Propositional Logic
Truth Tables
44 / 46
Propositional Logic
Truth Tables
45 / 46
Propositional Logic
Truth Tables
The table of rules on the previous two pages (axioms) can be used
to derive all tautologies.
A more minimal axiomatisation was discovered by Edward Vermilye
Huntington in 1933.
But note that these axioms are not very convenient for writing
proofs. So you are recommended to use a wider range of laws.
46 / 46