Академический Документы
Профессиональный Документы
Культура Документы
Dr Amber Habib
Mathematical Sciences Foundation
St. Stephen’s College
Delhi 110007
Statements
Examples.
1
Statements 2
The first sentence is obviously true, the second false. The third
is certainly either true or false, although it is not immediately clear
which!
2
Truth Value
3
Open Statements
It is clear that for any choice of N , the sentence is ‘either true or false,
but not both simultaneously.’ Therefore we accept it as a statement.
Statements of this type, whose truth value is variable, are called open
statements.
4
Open Statements
It is clear that for any choice of N , the sentence is ‘either true or false,
but not both simultaneously.’ Therefore we accept it as a statement.
Statements of this type, whose truth value is variable, are called open
statements.
4-a
Open Statements
It is clear that for any choice of N , the sentence is ‘either true or false,
but not both simultaneously.’ Therefore we accept it as a statement.
Statements of this type, whose truth value is variable, are called open
statements.
4-b
Open Statements
It is clear that for any choice of N , the sentence is ‘either true or false,
but not both simultaneously.’ Therefore we accept it as a statement.
Statements of this type, whose truth value is variable, are called open
statements.
4-c
Compound Statements
5
Compound Statements 2
6
Conjunction
p q p∧q
T T
T F
F F
F T
7
Conjunction
p q p∧q
T T
T F
F F
F T
7-a
Conjunction
p q p∧q
T T
T F
F F
F T
7-b
Conjunction
p q p∧q
T T T
T F
F F
F T
7-c
Conjunction
p q p∧q
T T T
T F F
F F F
F T F
7-d
Disjunction
p q p∨q
T T
T F
F F
F T
8
Disjunction
p q p∨q
T T
T F
F F
F T
8-a
Disjunction
p q p∨q
T T
T F
F F
F T
8-b
Disjunction
p q p∨q
T T T
T F
F F
F T
8-c
Disjunction
p q p∨q
T T T
T F T
F F
F T
8-d
Disjunction
p q p∨q
T T T
T F T
F F F
F T T
8-e
Negation
The statement ∼p has truth value T if and only if p has truth value
F.
p ∼p
T
F
9
Negation
The statement ∼p has truth value T if and only if p has truth value
F.
p ∼p
T F
F T
9-a
Connectives
• p ∧ (q ∧ r) • p ∧ (q ∨ r)
Note the use of brackets to clarify the order in which the connectives
are to be applied.
10
Conditionals
• If p then q .
p→q
The symbol → is called the conditional.
11
Conditionals 2
p q p→q
T T T
T F F
F F T
F T T
12
Bi-conditional
p↔q
The symbol ↔ is called the bi-conditional. The Truth Table of p ↔ q
is
p q p↔q
T T T
T F F
F F T
F T F
13
Statement Forms
15
Statement Forms 3
S(p, q, r) = p ∨ (q ∧ (∼r))
16
Truth Tables
17
Truth Tables 2
∼(p ∨ q)
p q p ∨ q ∼(p ∨ q)
T T
T F
F F
F T
18
Truth Tables 2
∼(p ∨ q)
p q p ∨ q ∼(p ∨ q)
T T T
T F T
F F F
F T T
18-a
Truth Tables 2
∼(p ∨ q)
p q p ∨ q ∼(p ∨ q)
T T T F
T F T F
F F F T
F T T F
18-b
Truth Tables 3
(∼p) ∧ (∼q)
p q ∼p ∼q (∼p) ∧ (∼q)
T T
T F
F F
F T
19
Truth Tables 3
(∼p) ∧ (∼q)
p q ∼p ∼q (∼p) ∧ (∼q)
T T F
T F F
F F T
F T T
19-a
Truth Tables 3
(∼p) ∧ (∼q)
p q ∼p ∼q (∼p) ∧ (∼q)
T T F F
T F F T
F F T T
F T T F
19-b
Truth Tables 3
(∼p) ∧ (∼q)
p q ∼p ∼q (∼p) ∧ (∼q)
T T F F F
T F F T F
F F T T T
F T T F F
19-c
Logical Equivalence
R≡S
20
Logical Equivalence 2
p ∼p ∼(∼p)
T F T
F T F
p ≡ ∼(∼p)
21
Logical Equivalence 3
p ∼p p ∨ ∼p
T F T
F T T
Hence p ∨ ∼p is a tautology.
23
Tautology
p ∼p p ∨ ∼p
T F T
F T T
Hence p ∨ ∼p is a tautology.
23-a
Contradiction
p ∼p p ∧ ∼p
T F F
F T F
Hence p ∧ ∼p is a contradiction.
24
Contradiction
p ∼p p ∧ ∼p
T F F
F T F
Hence p ∧ ∼p is a contradiction.
24-a
Logic and Sets
This has the form: ‘The object X has property A,’ with X being a
member of some set (in our example, the set is that of numbers).
25
Logic and Sets 2
26
Logic and Set Theory
• p = ‘X has property A’
• q = ‘X has property B’
p ∨ q = ‘X has property A or B’
{X ∈ U : X has property A or B}
= {X ∈ U : X has property A} ∪ {X ∈ U : X has property B}
= P ∪Q
Therefore the operation ∨ of Logic corresponds to the operation ∪
of Set Theory.
28
Intersection and Conjunction
This correspondence between Logic and Set Theory shows Logic must
follow the same algebraic rules as Set Theory. Thus we can guess
facts of Logic by starting from facts about Sets. These guesses can
be confirmed by Truth Tables.
29
Important Equivalences
• Idempotent Law: p ∨ p ≡ p ∧ p ≡ p.
• Commutative Law:
p ∨ q ≡ q ∨ p, p ∧ q ≡ q ∧ p.
• Associative Law:
p ∨ (q ∨ r) ≡ (p ∨ q) ∨ r
p ∧ (q ∧ r) ≡ (p ∧ q) ∧ r
30
Important Equivalences 2
• Distributive Law:
p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)
p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r)
• De Morgan’s Laws:
• p ∨ c ≡ p, p ∧ c ≡ c.
• p ∧ t ≡ p, p ∨ t ≡ t.
• p ∨ ∼p ≡ t, p ∧ ∼p ≡ c.
32
Important Equivalences 3
• p ∨ c ≡ p, p ∧ c ≡ c.
• p ∧ t ≡ p, p ∨ t ≡ t.
• p ∨ ∼p ≡ t, p ∧ ∼p ≡ c.
32-a
Important Equivalences 3
• p ∨ c ≡ p, p ∧ c ≡ c.
• p ∧ t ≡ p, p ∨ t ≡ t.
• p ∨ ∼p ≡ t, p ∧ ∼p ≡ c.
32-b
Important Equivalences 3
• p ∨ c ≡ p, p ∧ c ≡ c.
• p ∧ t ≡ p, p ∨ t ≡ t.
• p ∨ ∼p ≡ t, p ∧ ∼p ≡ c.
32-c
An Application
Absorption Law. p ∧ (p ∨ q) ≡ p ∨ (p ∧ q) ≡ p.
p ∧ (p ∨ q) ≡ (p ∧ p) ∨ (p ∧ q) ≡ p ∨ (p ∧ q)
Next:
p ∧ (p ∨ q) ≡ (p ∨ c) ∧ (p ∨ q)
≡ p ∨ (c ∧ q) ≡ p ∨ c ≡ p
33
An Application
Absorption Law. p ∧ (p ∨ q) ≡ p ∨ (p ∧ q) ≡ p.
p ∧ (p ∨ q) ≡ (p ∧ p) ∨ (p ∧ q) ≡ p ∨ (p ∧ q)
Next:
p ∧ (p ∨ q) ≡ (p ∨ c) ∧ (p ∨ q)
≡ p ∨ (c ∧ q) ≡ p ∨ c ≡ p
33-a
An Application
Absorption Law. p ∧ (p ∨ q) ≡ p ∨ (p ∧ q) ≡ p.
p ∧ (p ∨ q) ≡ (p ∧ p) ∨ (p ∧ q) ≡ p ∨ (p ∧ q)
Next:
p ∧ (p ∨ q) ≡ (p ∨ c) ∧ (p ∨ q)
≡ p ∨ (c ∧ q) ≡ p ∨ c ≡ p
33-b
An Application
Absorption Law. p ∧ (p ∨ q) ≡ p ∨ (p ∧ q) ≡ p.
p ∧ (p ∨ q) ≡ (p ∧ p) ∨ (p ∧ q) ≡ p ∨ (p ∧ q)
Next:
p ∧ (p ∨ q) ≡ (p ∨ c) ∧ (p ∨ q)
≡ p ∨ (c ∧ q) ≡ p ∨ c ≡ p
33-c
Notation and Conventions
p∧q∧r or p∨q∨r
34
Notation and Conventions
p∧q∧r or p∨q∨r
p ∧ ∼q ∧ r is read as p ∧ (∼q) ∧ r
34-a
Implication
statement form
R→S
is a tautology.
35
Implication 2
(p ∧ q) → p ≡ ∼(p ∧ q) ∨ p
≡ ∼p ∨ ∼q ∨ p
≡ ∼q ∨ (∼p ∨ p)
≡ ∼q ∨ t
≡ t
36
Argument Forms
S 1 , S 2 . . . , SN ; ∴S
where S1, S2, . . . , SN and S are statement forms.
37
Valid Arguments
(S1 ∧ S2 ∧ · · · ∧ SN ) → S
is a tautology.
38
Valid Arguments
(S1 ∧ S2 ∧ · · · ∧ SN ) → S
is a tautology.
38-a
A Valid Argument
p → (q → r), q ; ∴ p → r.
Solution 1.
[(p → (q → r)) ∧ q] → [p → r]
≡ ∼[(p → (q → r)) ∧ q] ∨ [p → r]
≡ ∼[(∼p ∨ ∼q ∨ r) ∧ q] ∨ [p → r]
39
A Valid Argument
Question. Is the following argument form valid?
p → (q → r), q ; ∴ p → r.
Solution 1. (contd.)
· · · ≡ ∼[(∼p ∨ ∼q ∨ r) ∧ q] ∨ [p → r]
≡ ∼[(∼p ∨ r) ∧ q] ∨ [∼p ∨ r]
≡ (p ∧ ∼r) ∨ ∼q ∨ ∼(p∧ ∼r)
≡ t ∨ ∼q ≡ t, so the argument is valid.
39-a
A Valid Argument 2
p → (q → r), q ; ∴ p → r.
Solution 2. Suppose we have assigned truth values to the statement
variables such that the premises are true. We have to show the
conclusion is also true.
Case II: If p has value T , then q → r has value T . Since q also has
value T , r has value T . Again, the conclusion p → r has value T .
40
A Valid Argument 2
p → (q → r), q ; ∴ p → r.
Solution 2. Suppose we have assigned truth values to the statement
variables such that the premises are true. We have to show the
conclusion is also true.
Case II: If p has value T , then q → r has value T . Since q also has
value T , r has value T . Again, the conclusion p → r has value T .
40-a
A Valid Argument 2
p → (q → r), q ; ∴ p → r.
Solution 2. Suppose we have assigned truth values to the statement
variables such that the premises are true. We have to show the
conclusion is also true.
Case II: If p has value T , then q → r has value T . Since q also has
value T , r has value T . Again, the conclusion p → r has value T .
40-b
An Invalid Argument
p → q, ∼q → r, r ; ∴ p.
Solution 1. We ask if we can assign truth values such that the
premises are true but the conclusion is false.
p → q, ∼q → r, r ; ∴ p.
Solution 1. We ask if we can assign truth values such that the
premises are true but the conclusion is false.
p → q, ∼q → r, r ; ∴ p.
Solution 1. We ask if we can assign truth values such that the
premises are true but the conclusion is false.
p → q, ∼q → r, r ; ∴ p.
Solution 2.
[(p → q) ∧ (∼q → r) ∧ r] → p
≡ ∼[(∼p ∨ q) ∧ (q ∨ r) ∧ r] ∨ p
≡ ∼[(∼p ∨ q) ∧ r] ∨ p ≡ (p∧ ∼q)∨ ∼r ∨ p
≡ p∨ ∼r 6≡ t, so the argument is invalid.
42
An Invalid Argument
p → q, ∼q → r, r ; ∴ p.
Solution 2.
[(p → q) ∧ (∼q → r) ∧ r] → p
≡ ∼[(∼p ∨ q) ∧ (q ∨ r) ∧ r] ∨ p
≡ ∼[(∼p ∨ q) ∧ r] ∨ p ≡ (p∧ ∼q)∨ ∼r ∨ p
≡ p∨ ∼r 6≡ t, so the argument is invalid.
42-a
An Invalid Argument
p → q, ∼q → r, r ; ∴ p.
Solution 2.
[(p → q) ∧ (∼q → r) ∧ r] → p
≡ ∼[(∼p ∨ q) ∧ (q ∨ r) ∧ r] ∨ p
≡ ∼[(∼p ∨ q) ∧ r] ∨ p ≡ (p ∧ ∼q) ∨ ∼r ∨ p
≡ p∨ ∼r 6≡ t, so the argument is invalid.
42-b
An Invalid Argument
p → q, ∼q → r, r ; ∴ p.
Solution 2.
[(p → q) ∧ (∼q → r) ∧ r] → p
≡ ∼[(∼p ∨ q) ∧ (q ∨ r) ∧ r] ∨ p
≡ ∼[(∼p ∨ q) ∧ r] ∨ p ≡ (p ∧ ∼q) ∨ ∼r ∨ p
≡ p ∨ ∼r 6≡ t, so the argument is invalid.
42-c
An Invalid Argument
p → q, ∼q → r, r ; ∴ p.
Solution 2.
[(p → q) ∧ (∼q → r) ∧ r] → p
≡ ∼[(∼p ∨ q) ∧ (q ∨ r) ∧ r] ∨ p
≡ ∼[(∼p ∨ q) ∧ r] ∨ p ≡ (p ∧ ∼q) ∨ ∼r ∨ p
≡ p ∨ ∼r 6≡ t, so the argument is invalid.
42-d