Professional Documents
Culture Documents
LiA chp02 en PDF
LiA chp02 en PDF
LiA chp02 en PDF
http://www.logicinaction.org/
(http://www.logicinaction.org/) 1 / 41
Reasoning in Daily Life
Example (1)
(http://www.logicinaction.org/) 2 / 41
Reasoning in Daily Life
Example (2)
(http://www.logicinaction.org/) 3 / 41
Reasoning in Daily Life
Example (3)
1 · ·
· · 2
· · ·
(http://www.logicinaction.org/) 4 / 41
Reasoning in Daily Life
Example (3)
1 · 3
· · 2
· · ·
(http://www.logicinaction.org/) 4 / 41
Reasoning in Daily Life
Example (3)
1 2 3
· · 2
· · 1
(http://www.logicinaction.org/) 4 / 41
Reasoning in Daily Life
Example (3)
1 2 3
3 · 2
· 3 1
(http://www.logicinaction.org/) 4 / 41
Reasoning in Daily Life
Example (3)
1 2 3
3 1 2
2 3 1
(http://www.logicinaction.org/) 4 / 41
Validity and Inference Patterns
Example (4)
(http://www.logicinaction.org/) 5 / 41
Validity and Inference Patterns
Example (4)
(http://www.logicinaction.org/) 5 / 41
Validity and Inference Patterns
Example (4)
(http://www.logicinaction.org/) 5 / 41
Validity and Inference Patterns
Example (4)
(http://www.logicinaction.org/) 5 / 41
Validity and Inference Patterns
Example (5)
(http://www.logicinaction.org/) 6 / 41
Validity and Inference Patterns
Example (5)
(http://www.logicinaction.org/) 6 / 41
Validity and Inference Patterns
Example (5)
(http://www.logicinaction.org/) 6 / 41
Validity and Inference Patterns
Example (5)
(http://www.logicinaction.org/) 6 / 41
Validity and Inference Patterns
Valid inference
A1 , . . . , An
(http://www.logicinaction.org/) 7 / 41
Validity and Inference Patterns
Valid inference
A1 , . . . , An
An inference is valid if and only if every time all the premises are
true, the conclusion is also true.
(http://www.logicinaction.org/) 7 / 41
Validity and Inference Patterns
A1 , . . . , An
Then
(http://www.logicinaction.org/) 8 / 41
Validity and Inference Patterns
A1 , . . . , An
Then
1 if all the premises A1 , . . . , An are true, so is the conclusion C.
(http://www.logicinaction.org/) 8 / 41
Validity and Inference Patterns
A1 , . . . , An
Then
1 if all the premises A1 , . . . , An are true, so is the conclusion C.
2 if the conclusion C is false, at least one premise Ai is false.
(http://www.logicinaction.org/) 8 / 41
Validity and Inference Patterns
(http://www.logicinaction.org/) 9 / 41
Validity and Inference Patterns
(http://www.logicinaction.org/) 9 / 41
Validity and Inference Patterns
If A, then B.
A.
So, B.
If E, then F .
E.
So, F .
(http://www.logicinaction.org/) 9 / 41
Validity and Inference Patterns
(http://www.logicinaction.org/) 10 / 41
Validity and Inference Patterns
(http://www.logicinaction.org/) 10 / 41
Validity and Inference Patterns
If A, then B.
not B.
So, not A.
(http://www.logicinaction.org/) 10 / 41
Validity and Inference Patterns
So, x + x is even.
(http://www.logicinaction.org/) 11 / 41
Validity and Inference Patterns
So, x + x is even.
(http://www.logicinaction.org/) 11 / 41
Validity and Inference Patterns
An integer x is A1 or A2 .
If x is A1 , then C.
If x is A2 , then C.
So, C.
(http://www.logicinaction.org/) 11 / 41
Validity and Inference Patterns
An integer x is A1 or A2 .
If x is A1 , then C.
If x is A2 , then C.
So, C.
(http://www.logicinaction.org/) 11 / 41
Validity and Inference Patterns
(http://www.logicinaction.org/) 12 / 41
Update and Consequence
Example (6)
(http://www.logicinaction.org/) 13 / 41
Update and Consequence
Example (6)
(http://www.logicinaction.org/) 14 / 41
Update and Consequence
Example (6)
(http://www.logicinaction.org/) 14 / 41
Update and Consequence
Example (6)
(http://www.logicinaction.org/) 14 / 41
Update and Consequence
Example (6)
(http://www.logicinaction.org/) 14 / 41
Update and Consequence
Example (6)
(http://www.logicinaction.org/) 14 / 41
Update and Consequence
Example (6)
(http://www.logicinaction.org/) 14 / 41
Update and Consequence
Example (6)
(http://www.logicinaction.org/) 14 / 41
Update and Consequence
Example (6)
(http://www.logicinaction.org/) 14 / 41
Update and Consequence
Example (6)
(http://www.logicinaction.org/) 14 / 41
Update and Consequence
Example (6)
A1 , A2 , A3 , A4
?
Miss Scarlet is guilty
(http://www.logicinaction.org/) 15 / 41
Update and Consequence
Example (6)
! A1 , A2 , A3 , A4
Miss Scarlet is guilty
(http://www.logicinaction.org/) 15 / 41
Update and Consequence
Example (6)
! A1 , A2 , A3 , A4
Miss Scarlet is guilty
(http://www.logicinaction.org/) 15 / 41
Update and Consequence
Example (6)
! A1 , A2 , A3 , A4
Miss Scarlet is guilty
A1 , A2 , A3 , A4
?
Mrs White is innocent
(http://www.logicinaction.org/) 15 / 41
Update and Consequence
Example (6)
! A1 , A2 , A3 , A4
Miss Scarlet is guilty
! A1 , A2 , A3 , A4
Mrs White is innocent
(http://www.logicinaction.org/) 15 / 41
Update and Consequence
Example (6)
! A1 , A2 , A3 , A4
Miss Scarlet is guilty
! A1 , A2 , A3 , A4
Mrs White is innocent
(http://www.logicinaction.org/) 15 / 41
Update and Consequence
Example (6)
A1 , A2 , A3 , A4
?
Colonel Mustard is guilty
(http://www.logicinaction.org/) 16 / 41
Update and Consequence
Example (6)
% A1 , A2 , A3 , A4
Colonel Mustard is guilty
(http://www.logicinaction.org/) 16 / 41
Update and Consequence
Example (6)
% A1 , A2 , A3 , A4
Colonel Mustard is guilty
(http://www.logicinaction.org/) 16 / 41
Update and Consequence
Example (6)
% A1 , A2 , A3 , A4
Colonel Mustard is guilty
A1 , A2 , A3 , A4
?
Colonel Mustard is innocent
(http://www.logicinaction.org/) 16 / 41
Update and Consequence
Example (6)
% A1 , A2 , A3 , A4
Colonel Mustard is guilty
% A1 , A2 , A3 , A4
Colonel Mustard is innocent
(http://www.logicinaction.org/) 16 / 41
Update and Consequence
Example (6)
% A1 , A2 , A3 , A4
Colonel Mustard is guilty
% A1 , A2 , A3 , A4
Colonel Mustard is innocent
(http://www.logicinaction.org/) 16 / 41
The Language of Propositional Logic
(http://www.logicinaction.org/) 17 / 41
The Language of Propositional Logic
p, q, r, . . .
(http://www.logicinaction.org/) 17 / 41
The Language of Propositional Logic
p, q, r, . . .
(http://www.logicinaction.org/) 17 / 41
The Language of Propositional Logic
(http://www.logicinaction.org/) 18 / 41
The Language of Propositional Logic
p ∈ LP , q ∈ LP , r ∈ LP , ...
(http://www.logicinaction.org/) 18 / 41
The Language of Propositional Logic
p ∈ LP , q ∈ LP , r ∈ LP , ...
2 If ϕ ∈ LP and ψ ∈ LP , then
(http://www.logicinaction.org/) 18 / 41
The Language of Propositional Logic
p ∈ LP , q ∈ LP , r ∈ LP , ...
2 If ϕ ∈ LP and ψ ∈ LP , then
¬ϕ ∈ LP ,
(http://www.logicinaction.org/) 18 / 41
The Language of Propositional Logic
p ∈ LP , q ∈ LP , r ∈ LP , ...
2 If ϕ ∈ LP and ψ ∈ LP , then
¬ϕ ∈ LP , (ϕ ∧ ψ) ∈ LP ,
(http://www.logicinaction.org/) 18 / 41
The Language of Propositional Logic
p ∈ LP , q ∈ LP , r ∈ LP , ...
2 If ϕ ∈ LP and ψ ∈ LP , then
¬ϕ ∈ LP , (ϕ ∧ ψ) ∈ LP ,
(ϕ ∨ ψ) ∈ LP ,
(http://www.logicinaction.org/) 18 / 41
The Language of Propositional Logic
p ∈ LP , q ∈ LP , r ∈ LP , ...
2 If ϕ ∈ LP and ψ ∈ LP , then
¬ϕ ∈ LP , (ϕ ∧ ψ) ∈ LP , (ϕ → ψ) ∈ LP ,
(ϕ ∨ ψ) ∈ LP ,
(http://www.logicinaction.org/) 18 / 41
The Language of Propositional Logic
p ∈ LP , q ∈ LP , r ∈ LP , ...
2 If ϕ ∈ LP and ψ ∈ LP , then
¬ϕ ∈ LP , (ϕ ∧ ψ) ∈ LP , (ϕ → ψ) ∈ LP ,
(ϕ ∨ ψ) ∈ LP , (ϕ ↔ ψ) ∈ LP .
(http://www.logicinaction.org/) 18 / 41
The Language of Propositional Logic
p ∈ LP , q ∈ LP , r ∈ LP , ...
2 If ϕ ∈ LP and ψ ∈ LP , then
¬ϕ ∈ LP , (ϕ ∧ ψ) ∈ LP , (ϕ → ψ) ∈ LP ,
(ϕ ∨ ψ) ∈ LP , (ϕ ↔ ψ) ∈ LP .
3 Nothing else is in LP .
(http://www.logicinaction.org/) 18 / 41
The Language of Propositional Logic
p ∈ LP , q ∈ LP , r ∈ LP , ...
2 If ϕ ∈ LP and ψ ∈ LP , then
¬ϕ ∈ LP , (ϕ ∧ ψ) ∈ LP , (ϕ → ψ) ∈ LP ,
(ϕ ∨ ψ) ∈ LP , (ϕ ↔ ψ) ∈ LP .
3 Nothing else is in LP .
(http://www.logicinaction.org/) 18 / 41
The Language of Propositional Logic
Constructing formulas
(http://www.logicinaction.org/) 19 / 41
The Language of Propositional Logic
Constructing formulas
((¬p ∨ q) → r)
(http://www.logicinaction.org/) 19 / 41
The Language of Propositional Logic
Constructing formulas
((¬p ∨ q) → r)
(http://www.logicinaction.org/) 19 / 41
The Language of Propositional Logic
Constructing formulas
((¬p ∨ q) → r)
(¬p ∨ q) r
(http://www.logicinaction.org/) 19 / 41
The Language of Propositional Logic
Constructing formulas
((¬p ∨ q) → r)
(¬p ∨ q) r
(http://www.logicinaction.org/) 19 / 41
The Language of Propositional Logic
Constructing formulas
((¬p ∨ q) → r)
(¬p ∨ q) r
¬p q
(http://www.logicinaction.org/) 19 / 41
The Language of Propositional Logic
Constructing formulas
((¬p ∨ q) → r)
(¬p ∨ q) r
¬p q
(http://www.logicinaction.org/) 19 / 41
The Language of Propositional Logic
Constructing formulas
((¬p ∨ q) → r)
(¬p ∨ q) r
¬p q
(http://www.logicinaction.org/) 19 / 41
The Language of Propositional Logic
Constructing formulas
((¬p ∨ q) → r) (¬(p ∨ q) → r)
(¬p ∨ q) r
¬p q
(http://www.logicinaction.org/) 19 / 41
The Language of Propositional Logic
Constructing formulas
((¬p ∨ q) → r) (¬(p ∨ q) → r)
→ →
(¬p ∨ q) r
¬p q
(http://www.logicinaction.org/) 19 / 41
The Language of Propositional Logic
Constructing formulas
((¬p ∨ q) → r) (¬(p ∨ q) → r)
→ →
(¬p ∨ q) r ¬(p ∨ q) r
¬p q
(http://www.logicinaction.org/) 19 / 41
The Language of Propositional Logic
Constructing formulas
((¬p ∨ q) → r) (¬(p ∨ q) → r)
→ →
(¬p ∨ q) r ¬(p ∨ q) r
∨ ¬
¬p q
(http://www.logicinaction.org/) 19 / 41
The Language of Propositional Logic
Constructing formulas
((¬p ∨ q) → r) (¬(p ∨ q) → r)
→ →
(¬p ∨ q) r ¬(p ∨ q) r
∨ ¬
¬p q (p ∨ q)
(http://www.logicinaction.org/) 19 / 41
The Language of Propositional Logic
Constructing formulas
((¬p ∨ q) → r) (¬(p ∨ q) → r)
→ →
(¬p ∨ q) r ¬(p ∨ q) r
∨ ¬
¬p q (p ∨ q)
¬ ∨
(http://www.logicinaction.org/) 19 / 41
The Language of Propositional Logic
Constructing formulas
((¬p ∨ q) → r) (¬(p ∨ q) → r)
→ →
(¬p ∨ q) r ¬(p ∨ q) r
∨ ¬
¬p q (p ∨ q)
¬ ∨
p p q
(http://www.logicinaction.org/) 19 / 41
Semantic Situations: Truth Tables
Evaluating formulas
(http://www.logicinaction.org/) 20 / 41
Semantic Situations: Truth Tables
Evaluating formulas
(http://www.logicinaction.org/) 20 / 41
Semantic Situations: Truth Tables
Evaluating formulas
(http://www.logicinaction.org/) 20 / 41
Semantic Situations: Truth Tables
ϕ ¬ϕ
(http://www.logicinaction.org/) 21 / 41
Semantic Situations: Truth Tables
ϕ ¬ϕ
1
0
(http://www.logicinaction.org/) 21 / 41
Semantic Situations: Truth Tables
ϕ ¬ϕ
1 0
0
(http://www.logicinaction.org/) 21 / 41
Semantic Situations: Truth Tables
ϕ ¬ϕ
1 0
0 1
(http://www.logicinaction.org/) 21 / 41
Semantic Situations: Truth Tables
ϕ ¬ϕ
1 0
0 1
¬ ϕ
(http://www.logicinaction.org/) 21 / 41
Semantic Situations: Truth Tables
ϕ ¬ϕ
1 0
0 1
¬ ϕ
1
0
(http://www.logicinaction.org/) 21 / 41
Semantic Situations: Truth Tables
ϕ ¬ϕ
1 0
0 1
¬ ϕ
0 1
0
(http://www.logicinaction.org/) 21 / 41
Semantic Situations: Truth Tables
ϕ ¬ϕ
1 0
0 1
¬ ϕ
0 1
1 0
(http://www.logicinaction.org/) 21 / 41
Semantic Situations: Truth Tables
ϕ ∧ ψ
(http://www.logicinaction.org/) 22 / 41
Semantic Situations: Truth Tables
ϕ ∧ ψ
1 1
1 0
0 1
0 0
(http://www.logicinaction.org/) 22 / 41
Semantic Situations: Truth Tables
ϕ ∧ ψ
1 1 1
1 0
0 1
0 0
(http://www.logicinaction.org/) 22 / 41
Semantic Situations: Truth Tables
ϕ ∧ ψ
1 1 1
1 0 0
0 1
0 0
(http://www.logicinaction.org/) 22 / 41
Semantic Situations: Truth Tables
ϕ ∧ ψ
1 1 1
1 0 0
0 0 1
0 0
(http://www.logicinaction.org/) 22 / 41
Semantic Situations: Truth Tables
ϕ ∧ ψ
1 1 1
1 0 0
0 0 1
0 0 0
(http://www.logicinaction.org/) 22 / 41
Semantic Situations: Truth Tables
ϕ ∧ ψ
1 1 1
1 0 0
0 0 1
0 0 0
For disjunction ∨
ϕ ∨ ψ
(http://www.logicinaction.org/) 22 / 41
Semantic Situations: Truth Tables
ϕ ∧ ψ
1 1 1
1 0 0
0 0 1
0 0 0
For disjunction ∨
ϕ ∨ ψ
1 1
1 0
0 1
0 0
(http://www.logicinaction.org/) 22 / 41
Semantic Situations: Truth Tables
ϕ ∧ ψ
1 1 1
1 0 0
0 0 1
0 0 0
For disjunction ∨
ϕ ∨ ψ
1 1 1
1 0
0 1
0 0
(http://www.logicinaction.org/) 22 / 41
Semantic Situations: Truth Tables
ϕ ∧ ψ
1 1 1
1 0 0
0 0 1
0 0 0
For disjunction ∨
ϕ ∨ ψ
1 1 1
1 1 0
0 1
0 0
(http://www.logicinaction.org/) 22 / 41
Semantic Situations: Truth Tables
ϕ ∧ ψ
1 1 1
1 0 0
0 0 1
0 0 0
For disjunction ∨
ϕ ∨ ψ
1 1 1
1 1 0
0 1 1
0 0
(http://www.logicinaction.org/) 22 / 41
Semantic Situations: Truth Tables
ϕ ∧ ψ
1 1 1
1 0 0
0 0 1
0 0 0
For disjunction ∨
ϕ ∨ ψ
1 1 1
1 1 0
0 1 1
0 0 0
(http://www.logicinaction.org/) 22 / 41
Semantic Situations: Truth Tables
ϕ ↔ ψ
(http://www.logicinaction.org/) 23 / 41
Semantic Situations: Truth Tables
ϕ ↔ ψ
1 1
1 0
0 1
0 0
(http://www.logicinaction.org/) 23 / 41
Semantic Situations: Truth Tables
ϕ ↔ ψ
1 1 1
1 0
0 1
0 0
(http://www.logicinaction.org/) 23 / 41
Semantic Situations: Truth Tables
ϕ ↔ ψ
1 1 1
1 0 0
0 1
0 0
(http://www.logicinaction.org/) 23 / 41
Semantic Situations: Truth Tables
ϕ ↔ ψ
1 1 1
1 0 0
0 0 1
0 0
(http://www.logicinaction.org/) 23 / 41
Semantic Situations: Truth Tables
ϕ ↔ ψ
1 1 1
1 0 0
0 0 1
0 1 0
(http://www.logicinaction.org/) 23 / 41
Semantic Situations: Truth Tables
ϕ ↔ ψ
1 1 1
1 0 0
0 0 1
0 1 0
For implication →
ϕ → ψ
(http://www.logicinaction.org/) 23 / 41
Semantic Situations: Truth Tables
ϕ ↔ ψ
1 1 1
1 0 0
0 0 1
0 1 0
For implication →
ϕ → ψ
1 1
1 0
0 1
0 0
(http://www.logicinaction.org/) 23 / 41
Semantic Situations: Truth Tables
ϕ ↔ ψ
1 1 1
1 0 0
0 0 1
0 1 0
For implication →
ϕ → ψ
1 1 1
1 0
0 1
0 0
(http://www.logicinaction.org/) 23 / 41
Semantic Situations: Truth Tables
ϕ ↔ ψ
1 1 1
1 0 0
0 0 1
0 1 0
For implication →
ϕ → ψ
1 1 1
1 0 0
0 1
0 0
(http://www.logicinaction.org/) 23 / 41
Semantic Situations: Truth Tables
ϕ ↔ ψ
1 1 1
1 0 0
0 0 1
0 1 0
For implication →
ϕ → ψ
1 1 1
1 0 0
0 1 1
0 0
(http://www.logicinaction.org/) 23 / 41
Semantic Situations: Truth Tables
ϕ ↔ ψ
1 1 1
1 0 0
0 0 1
0 1 0
For implication →
ϕ → ψ
1 1 1
1 0 0
0 1 1
0 1 0
(http://www.logicinaction.org/) 23 / 41
Semantic Situations: Truth Tables
Valuations
(http://www.logicinaction.org/) 24 / 41
Semantic Situations: Truth Tables
Valuations
(http://www.logicinaction.org/) 24 / 41
Semantic Situations: Truth Tables
Valuations
(http://www.logicinaction.org/) 24 / 41
Semantic Situations: Truth Tables
Valuations
V1 (p) = 1 V1 (q) = 1
(http://www.logicinaction.org/) 24 / 41
Semantic Situations: Truth Tables
Valuations
V1 (p) = 1 V1 (q) = 1
V2 (p) = 1 V2 (q) = 0
(http://www.logicinaction.org/) 24 / 41
Semantic Situations: Truth Tables
Valuations
V1 (p) = 1 V1 (q) = 1
V2 (p) = 1 V2 (q) = 0
V3 (p) = 0 V3 (q) = 1
(http://www.logicinaction.org/) 24 / 41
Semantic Situations: Truth Tables
Valuations
V1 (p) = 1 V1 (q) = 1
V2 (p) = 1 V2 (q) = 0
V3 (p) = 0 V3 (q) = 1
V4 (p) = 0 V4 (q) = 0
(http://www.logicinaction.org/) 24 / 41
Semantic Situations: Truth Tables
Valuations
V1 (p) = 1 V1 (q) = 1
V2 (p) = 1 V2 (q) = 0
V3 (p) = 0 V3 (q) = 1
V4 (p) = 0 V4 (q) = 0
(http://www.logicinaction.org/) 24 / 41
Semantic Situations: Truth Tables
(¬ p) ∧ q
(http://www.logicinaction.org/) 25 / 41
Semantic Situations: Truth Tables
(¬ p) ∧ q
V: 0 1
(http://www.logicinaction.org/) 25 / 41
Semantic Situations: Truth Tables
(¬ p) ∧ q
V: 1 0 1
(http://www.logicinaction.org/) 25 / 41
Semantic Situations: Truth Tables
(¬ p) ∧ q
V: 1 0 1 1
(http://www.logicinaction.org/) 25 / 41
Semantic Situations: Truth Tables
(¬ p) ∧ q
V |= (¬p) ∧ q
V: 1 0 1 1
(http://www.logicinaction.org/) 25 / 41
Semantic Situations: Truth Tables
(¬ p) ∧ q
V |= (¬p) ∧ q
V: 1 0 1 1
(p ∧ (p → q)) → q
(http://www.logicinaction.org/) 25 / 41
Semantic Situations: Truth Tables
(¬ p) ∧ q
V |= (¬p) ∧ q
V: 1 0 1 1
(p ∧ (p → q)) → q
V: 1 1 0 0
(http://www.logicinaction.org/) 25 / 41
Semantic Situations: Truth Tables
(¬ p) ∧ q
V |= (¬p) ∧ q
V: 1 0 1 1
(p ∧ (p → q)) → q
V: 1 1 0 0 0
(http://www.logicinaction.org/) 25 / 41
Semantic Situations: Truth Tables
(¬ p) ∧ q
V |= (¬p) ∧ q
V: 1 0 1 1
(p ∧ (p → q)) → q
V: 1 0 1 0 0 0
(http://www.logicinaction.org/) 25 / 41
Semantic Situations: Truth Tables
(¬ p) ∧ q
V |= (¬p) ∧ q
V: 1 0 1 1
(p ∧ (p → q)) → q
V: 1 0 1 0 0 1 0
(http://www.logicinaction.org/) 25 / 41
Semantic Situations: Truth Tables
(¬ p) ∧ q
V |= (¬p) ∧ q
V: 1 0 1 1
(p ∧ (p → q)) → q
V |= (p ∧ (p → q)) → q
V: 1 0 1 0 0 1 0
(http://www.logicinaction.org/) 25 / 41
Semantic Situations: Truth Tables
(¬ p) ∧ q
V |= (¬p) ∧ q
V: 1 0 1 1
(p ∧ (p → q)) → q
V |= (p ∧ (p → q)) → q
V: 1 0 1 0 0 1 0
¬ ¬ p
(http://www.logicinaction.org/) 25 / 41
Semantic Situations: Truth Tables
(¬ p) ∧ q
V |= (¬p) ∧ q
V: 1 0 1 1
(p ∧ (p → q)) → q
V |= (p ∧ (p → q)) → q
V: 1 0 1 0 0 1 0
¬ ¬ p
V: 0
(http://www.logicinaction.org/) 25 / 41
Semantic Situations: Truth Tables
(¬ p) ∧ q
V |= (¬p) ∧ q
V: 1 0 1 1
(p ∧ (p → q)) → q
V |= (p ∧ (p → q)) → q
V: 1 0 1 0 0 1 0
¬ ¬ p
V: 1 0
(http://www.logicinaction.org/) 25 / 41
Semantic Situations: Truth Tables
(¬ p) ∧ q
V |= (¬p) ∧ q
V: 1 0 1 1
(p ∧ (p → q)) → q
V |= (p ∧ (p → q)) → q
V: 1 0 1 0 0 1 0
¬ ¬ p
V: 0 1 0
(http://www.logicinaction.org/) 25 / 41
Semantic Situations: Truth Tables
(¬ p) ∧ q
V |= (¬p) ∧ q
V: 1 0 1 1
(p ∧ (p → q)) → q
V |= (p ∧ (p → q)) → q
V: 1 0 1 0 0 1 0
¬ ¬ p
V 6|= ¬¬p
V: 0 1 0
(http://www.logicinaction.org/) 25 / 41
Semantic Situations: Truth Tables
(¬ p) ∧ q
V |= (¬p) ∧ q
V: 1 0 1 1
(p ∧ (p → q)) → q
V |= (p ∧ (p → q)) → q
V: 1 0 1 0 0 1 0
¬ ¬ p
V 6|= ¬¬p
V: 0 1 0
(p → q) ∨ (q → p)
(http://www.logicinaction.org/) 25 / 41
Semantic Situations: Truth Tables
(¬ p) ∧ q
V |= (¬p) ∧ q
V: 1 0 1 1
(p ∧ (p → q)) → q
V |= (p ∧ (p → q)) → q
V: 1 0 1 0 0 1 0
¬ ¬ p
V 6|= ¬¬p
V: 0 1 0
(p → q) ∨ (q → p)
V: 0 1 1 0
(http://www.logicinaction.org/) 25 / 41
Semantic Situations: Truth Tables
(¬ p) ∧ q
V |= (¬p) ∧ q
V: 1 0 1 1
(p ∧ (p → q)) → q
V |= (p ∧ (p → q)) → q
V: 1 0 1 0 0 1 0
¬ ¬ p
V 6|= ¬¬p
V: 0 1 0
(p → q) ∨ (q → p)
V: 0 1 1 1 0
(http://www.logicinaction.org/) 25 / 41
Semantic Situations: Truth Tables
(¬ p) ∧ q
V |= (¬p) ∧ q
V: 1 0 1 1
(p ∧ (p → q)) → q
V |= (p ∧ (p → q)) → q
V: 1 0 1 0 0 1 0
¬ ¬ p
V 6|= ¬¬p
V: 0 1 0
(p → q) ∨ (q → p)
V: 0 1 1 1 0 0
(http://www.logicinaction.org/) 25 / 41
Semantic Situations: Truth Tables
(¬ p) ∧ q
V |= (¬p) ∧ q
V: 1 0 1 1
(p ∧ (p → q)) → q
V |= (p ∧ (p → q)) → q
V: 1 0 1 0 0 1 0
¬ ¬ p
V 6|= ¬¬p
V: 0 1 0
(p → q) ∨ (q → p)
V: 0 1 1 1 1 0 0
(http://www.logicinaction.org/) 25 / 41
Semantic Situations: Truth Tables
(¬ p) ∧ q
V |= (¬p) ∧ q
V: 1 0 1 1
(p ∧ (p → q)) → q
V |= (p ∧ (p → q)) → q
V: 1 0 1 0 0 1 0
¬ ¬ p
V 6|= ¬¬p
V: 0 1 0
(p → q) ∨ (q → p)
V |= (p → q) ∨ (q → p)
V: 0 1 1 1 1 0 0
(http://www.logicinaction.org/) 25 / 41
Semantic Situations: Truth Tables
(p ∧ (p → q)) → q
(http://www.logicinaction.org/) 26 / 41
Semantic Situations: Truth Tables
(p ∧ (p → q)) → q
1 1 1 1
1 1 0 0
0 0 1 1
0 0 0 0
(http://www.logicinaction.org/) 26 / 41
Semantic Situations: Truth Tables
(p ∧ (p → q)) → q
1 1 1 1 1
1 1 0 0 0
0 0 1 1 1
0 0 1 0 0
(http://www.logicinaction.org/) 26 / 41
Semantic Situations: Truth Tables
(p ∧ (p → q)) → q
1 1 1 1 1 1
1 0 1 0 0 0
0 0 0 1 1 1
0 0 0 1 0 0
(http://www.logicinaction.org/) 26 / 41
Semantic Situations: Truth Tables
(p ∧ (p → q)) → q
1 1 1 1 1 1 1
1 0 1 0 0 1 0
0 0 0 1 1 1 1
0 0 0 1 0 1 0
(http://www.logicinaction.org/) 26 / 41
Semantic Situations: Truth Tables
(p ∧ (p → q)) → q
1 1 1 1 1 1 1
1 0 1 0 0 1 0
0 0 0 1 1 1 1
0 0 0 1 0 1 0
¬ ¬ p
(http://www.logicinaction.org/) 26 / 41
Semantic Situations: Truth Tables
(p ∧ (p → q)) → q
1 1 1 1 1 1 1
1 0 1 0 0 1 0
0 0 0 1 1 1 1
0 0 0 1 0 1 0
¬ ¬ p
1
0
(http://www.logicinaction.org/) 26 / 41
Semantic Situations: Truth Tables
(p ∧ (p → q)) → q
1 1 1 1 1 1 1
1 0 1 0 0 1 0
0 0 0 1 1 1 1
0 0 0 1 0 1 0
¬ ¬ p
0 1
1 0
(http://www.logicinaction.org/) 26 / 41
Semantic Situations: Truth Tables
(p ∧ (p → q)) → q
1 1 1 1 1 1 1
1 0 1 0 0 1 0
0 0 0 1 1 1 1
0 0 0 1 0 1 0
¬ ¬ p
1 0 1
0 1 0
(http://www.logicinaction.org/) 26 / 41
Valid Consequence and Consistency
(http://www.logicinaction.org/) 27 / 41
Valid Consequence and Consistency
p ∧ (¬p), . . .
(http://www.logicinaction.org/) 27 / 41
Valid Consequence and Consistency
p ∧ (¬p), . . .
(¬p) ∨ q, . . .
(http://www.logicinaction.org/) 27 / 41
Valid Consequence and Consistency
p ∧ (¬p), . . .
(¬p) ∨ q, . . .
(p ∧ (p → q)) → q, . . .
(http://www.logicinaction.org/) 27 / 41
Valid Consequence and Consistency
Valid inference
ϕ1 , . . . , ϕn
Inference:
ψ
(http://www.logicinaction.org/) 28 / 41
Valid Consequence and Consistency
Valid inference
ϕ1 , . . . , ϕn
Inference:
ψ
(http://www.logicinaction.org/) 28 / 41
Valid Consequence and Consistency
Valid inference
ϕ1 , . . . , ϕn
Inference:
ψ
(http://www.logicinaction.org/) 28 / 41
Valid Consequence and Consistency
Valid inference
ϕ1 , . . . , ϕn
Inference:
ψ
(http://www.logicinaction.org/) 28 / 41
Valid Consequence and Consistency
Examples
p (p → q) q
(http://www.logicinaction.org/) 29 / 41
Valid Consequence and Consistency
Examples
p (p → q) q
1 1 1 1 1
1 1 0 0 0
0 0 1 1 1
0 0 1 0 0
(http://www.logicinaction.org/) 29 / 41
Valid Consequence and Consistency
Examples
p (p → q) q
→ 1 1 1 1 1
1 1 0 0 0
0 0 1 1 1
0 0 1 0 0
(http://www.logicinaction.org/) 29 / 41
Valid Consequence and Consistency
Examples
p (p → q) q
→ 1 1 1 1 1
1 1 0 0 0
0 0 1 1 1
0 0 1 0 0
¬q (p → q) ¬p
(http://www.logicinaction.org/) 29 / 41
Valid Consequence and Consistency
Examples
p (p → q) q
→ 1 1 1 1 1
1 1 0 0 0
0 0 1 1 1
0 0 1 0 0
¬q (p → q) ¬p
0 1 1 1 0
1 1 0 0 0
0 0 1 1 1
1 0 1 0 1
(http://www.logicinaction.org/) 29 / 41
Valid Consequence and Consistency
Examples
p (p → q) q
→ 1 1 1 1 1
1 1 0 0 0
0 0 1 1 1
0 0 1 0 0
¬q (p → q) ¬p
0 1 1 1 0
1 1 0 0 0
0 0 1 1 1
→ 1 0 1 0 1
(http://www.logicinaction.org/) 29 / 41
Valid Consequence and Consistency
Examples
p (p → q) q
→ 1 1 1 1 1
1 1 0 0 0
0 0 1 1 1
0 0 1 0 0
¬q (p → q) ¬p
0 1 1 1 0
1 1 0 0 0
0 0 1 1 1
→ 1 0 1 0 1
Further definitions
(http://www.logicinaction.org/) 30 / 41
Valid Consequence and Consistency
Further definitions
(http://www.logicinaction.org/) 30 / 41
Valid Consequence and Consistency
Further definitions
(http://www.logicinaction.org/) 30 / 41
Proof
Symbolic inference
(http://www.logicinaction.org/) 31 / 41
Proof
Symbolic inference
(http://www.logicinaction.org/) 31 / 41
Proof
Symbolic inference
(http://www.logicinaction.org/) 31 / 41
Proof
Symbolic inference
(http://www.logicinaction.org/) 31 / 41
Proof
Symbolic inference
(http://www.logicinaction.org/) 31 / 41
Proof
Symbolic inference
(http://www.logicinaction.org/) 31 / 41
Proof
Proof system
The following axiom system is sound and complete for propositional logic:
(http://www.logicinaction.org/) 32 / 41
Proof
Proof system
The following axiom system is sound and complete for propositional logic:
1 (ϕ → (ψ → ϕ)).
(http://www.logicinaction.org/) 32 / 41
Proof
Proof system
The following axiom system is sound and complete for propositional logic:
1 (ϕ → (ψ → ϕ)).
2 ((ϕ → (ψ → χ)) → ((ϕ → ψ) → (ϕ → χ))).
(http://www.logicinaction.org/) 32 / 41
Proof
Proof system
The following axiom system is sound and complete for propositional logic:
1 (ϕ → (ψ → ϕ)).
2 ((ϕ → (ψ → χ)) → ((ϕ → ψ) → (ϕ → χ))).
3 ((¬ϕ → ¬ψ) → (ψ → ϕ)).
(http://www.logicinaction.org/) 32 / 41
Proof
Proof system
The following axiom system is sound and complete for propositional logic:
1 (ϕ → (ψ → ϕ)).
2 ((ϕ → (ψ → χ)) → ((ϕ → ψ) → (ϕ → χ))).
3 ((¬ϕ → ¬ψ) → (ψ → ϕ)).
4 Modus ponens (MP): from ϕ and ϕ → ψ, infer ψ.
(http://www.logicinaction.org/) 32 / 41
Proof
Example
(http://www.logicinaction.org/) 33 / 41
Proof
Example
(http://www.logicinaction.org/) 33 / 41
Proof
Example
(http://www.logicinaction.org/) 33 / 41
Proof
Example
(http://www.logicinaction.org/) 33 / 41
Proof
Example
(http://www.logicinaction.org/) 33 / 41
Proof
Example
(http://www.logicinaction.org/) 33 / 41
Proof
Example
Hence, p → p is a theorem.
(http://www.logicinaction.org/) 33 / 41
Information Update
Example
(http://www.logicinaction.org/) 34 / 41
Information Update
Example
(http://www.logicinaction.org/) 34 / 41
Information Update
Example
(http://www.logicinaction.org/) 34 / 41
Information Update
The questions
Define
(http://www.logicinaction.org/) 35 / 41
Information Update
The questions
Define
Φ |= s ?
(http://www.logicinaction.org/) 35 / 41
Information Update
The questions
Define
Φ |= s ?
Φ |= ¬w ?
(http://www.logicinaction.org/) 35 / 41
Information Update
The questions
Define
Φ |= s ?
Φ |= ¬w ?
Φ |= m ?
(http://www.logicinaction.org/) 35 / 41
Information Update
The questions
Define
Φ |= s ?
Φ |= ¬w ?
Φ |= m ?
Φ |= ¬m ?
(http://www.logicinaction.org/) 35 / 41
Information Update
Updates
Which are the possibilities?
(http://www.logicinaction.org/) 36 / 41
Information Update
Updates
Which are the possibilities?
(http://www.logicinaction.org/) 36 / 41
Information Update
Updates
Which are the possibilities?
(http://www.logicinaction.org/) 36 / 41
Information Update
Updates
Which are the possibilities?
(http://www.logicinaction.org/) 36 / 41
Information Update
Updates
Which are the possibilities?
(http://www.logicinaction.org/) 36 / 41
Information Update
Updates
Which are the possibilities?
(http://www.logicinaction.org/) 36 / 41
Information Update
Updates
Which are the possibilities?
(http://www.logicinaction.org/) 36 / 41
Information Update
Updates
Which are the possibilities?
(http://www.logicinaction.org/) 36 / 41
Information Update
Updates
Which are the possibilities?
(http://www.logicinaction.org/) 36 / 41
Information Update
Updates
Which are the possibilities?
(http://www.logicinaction.org/) 36 / 41
Information Update
Updates
(http://www.logicinaction.org/) 37 / 41
Information Update
Updates
Φ |= s ?
(http://www.logicinaction.org/) 37 / 41
Information Update
Updates
Φ |= s ? Yes!
(http://www.logicinaction.org/) 37 / 41
Information Update
Updates
Φ |= s ? Yes!
Φ |= ¬w ?
(http://www.logicinaction.org/) 37 / 41
Information Update
Updates
Φ |= s ? Yes!
Φ |= ¬w ? Yes!
(http://www.logicinaction.org/) 37 / 41
Information Update
Updates
Φ |= s ? Yes!
Φ |= ¬w ? Yes!
Φ |= m ?
(http://www.logicinaction.org/) 37 / 41
Information Update
Updates
Φ |= s ? Yes!
Φ |= ¬w ? Yes!
Φ |= m ? No!
(http://www.logicinaction.org/) 37 / 41
Information Update
Updates
Φ |= s ? Yes!
Φ |= ¬w ? Yes!
Φ |= m ? No!
Φ |= ¬m ?
(http://www.logicinaction.org/) 37 / 41
Information Update
Updates
Φ |= s ? Yes!
Φ |= ¬w ? Yes!
Φ |= m ? No!
Φ |= ¬m ? No!
(http://www.logicinaction.org/) 37 / 41
Expressiveness
(http://www.logicinaction.org/) 38 / 41
Expressiveness
(http://www.logicinaction.org/) 38 / 41
Expressiveness
(http://www.logicinaction.org/) 38 / 41
Expressiveness
(http://www.logicinaction.org/) 38 / 41
Expressiveness
(http://www.logicinaction.org/) 38 / 41
Expressiveness
(http://www.logicinaction.org/) 38 / 41
Expressiveness
(http://www.logicinaction.org/) 39 / 41
Expressiveness
p
1
0
(http://www.logicinaction.org/) 39 / 41
Expressiveness
p ϕ1
1 1
0 1
(http://www.logicinaction.org/) 39 / 41
Expressiveness
p ϕ1 ϕ2
1 1 1
0 1 0
(http://www.logicinaction.org/) 39 / 41
Expressiveness
p ϕ1 ϕ2 ϕ3
1 1 1 0
0 1 0 1
(http://www.logicinaction.org/) 39 / 41
Expressiveness
p ϕ1 ϕ2 ϕ3 ϕ4
1 1 1 0 0
0 1 0 1 0
(http://www.logicinaction.org/) 39 / 41
Expressiveness
p ϕ1 ϕ2 ϕ3 ϕ4
1 1 1 0 0
0 1 0 1 0
(http://www.logicinaction.org/) 39 / 41
Expressiveness
p ϕ1 ϕ2 ϕ3 ϕ4
1 1 1 0 0
0 1 0 1 0
(http://www.logicinaction.org/) 39 / 41
Expressiveness
pq
(http://www.logicinaction.org/) 40 / 41
Expressiveness
pq
1 1
1 0
0 1
0 0
(http://www.logicinaction.org/) 40 / 41
Expressiveness
(http://www.logicinaction.org/) 40 / 41
Expressiveness
(http://www.logicinaction.org/) 40 / 41
Expressiveness
pqr
(http://www.logicinaction.org/) 41 / 41
Expressiveness
pqr
1 1 1
1 1 0
1 0 1
1 0 0
0 1 1
0 1 0
0 0 1
0 0 0
(http://www.logicinaction.org/) 41 / 41
Expressiveness
pqr ···
1 1 1
1 1 0
1 0 1
1
0
0
1
0
1 ···
0 1 0
0 0 1
0 0 0
(http://www.logicinaction.org/) 41 / 41
Expressiveness
pqr ···
1 1 1
1 1 0
1 0 1
1
0
0
1
0
1 ···
0 1 0
0 0 1
0 0 0
(http://www.logicinaction.org/) 41 / 41