Professional Documents
Culture Documents
Dis Lecture 1-2
Dis Lecture 1-2
Lecture 1- Logics
Nurlan Ismailov
nurlan.ismailov@astanait.edu.kz
Astana IT University
Definition
A statement is an ordinary declarative English sentence of fact that can be
assigned a truth value; that is, it can be classified as being either true or false
(but not both).
Definition
A statement is an ordinary declarative English sentence of fact that can be
assigned a truth value; that is, it can be classified as being either true or false
(but not both).
Examples
There are 168 primes less than 1000
Definition
A statement is an ordinary declarative English sentence of fact that can be
assigned a truth value; that is, it can be classified as being either true or false
(but not both).
Examples
There are 168 primes less than 1000 statement
Definition
A statement is an ordinary declarative English sentence of fact that can be
assigned a truth value; that is, it can be classified as being either true or false
(but not both).
Examples
There are 168 primes less than 1000 statement
Seventeen is an even number
Definition
A statement is an ordinary declarative English sentence of fact that can be
assigned a truth value; that is, it can be classified as being either true or false
(but not both).
Examples
There are 168 primes less than 1000 statement
Seventeen is an even number statement
Definition
A statement is an ordinary declarative English sentence of fact that can be
assigned a truth value; that is, it can be classified as being either true or false
(but not both).
Examples
There are 168 primes less than 1000 statement
Seventeen is an even number statement
√ √3
3 is a rational number
Definition
A statement is an ordinary declarative English sentence of fact that can be
assigned a truth value; that is, it can be classified as being either true or false
(but not both).
Examples
There are 168 primes less than 1000 statement
Seventeen is an even number statement
√ √3
3 is a rational number statement
Definition
A statement is an ordinary declarative English sentence of fact that can be
assigned a truth value; that is, it can be classified as being either true or false
(but not both).
Examples
There are 168 primes less than 1000 statement
Seventeen is an even number statement
√ √3
3 is a rational number statement
Zero is not a negative number
Definition
A statement is an ordinary declarative English sentence of fact that can be
assigned a truth value; that is, it can be classified as being either true or false
(but not both).
Examples
There are 168 primes less than 1000 statement
Seventeen is an even number statement
√ √3
3 is a rational number statement
Zero is not a negative number statement
Definition
A statement is an ordinary declarative English sentence of fact that can be
assigned a truth value; that is, it can be classified as being either true or false
(but not both).
Examples
There are 168 primes less than 1000 statement
Seventeen is an even number statement
√ √3
3 is a rational number statement
Zero is not a negative number statement
What are irrational numbers?
Definition
A statement is an ordinary declarative English sentence of fact that can be
assigned a truth value; that is, it can be classified as being either true or false
(but not both).
Examples
There are 168 primes less than 1000 statement
Seventeen is an even number statement
√ √3
3 is a rational number statement
Zero is not a negative number statement
What are irrational numbers? not statement, because it is not declarative
Definition
A statement is an ordinary declarative English sentence of fact that can be
assigned a truth value; that is, it can be classified as being either true or false
(but not both).
Examples
There are 168 primes less than 1000 statement
Seventeen is an even number statement
√ √3
3 is a rational number statement
Zero is not a negative number statement
What are irrational numbers? not statement, because it is not declarative
Suppose every positive integer is the sum of three squares
Definition
A statement is an ordinary declarative English sentence of fact that can be
assigned a truth value; that is, it can be classified as being either true or false
(but not both).
Examples
There are 168 primes less than 1000 statement
Seventeen is an even number statement
√ √3
3 is a rational number statement
Zero is not a negative number statement
What are irrational numbers? not statement, because it is not declarative
Suppose every positive integer is the sum of three squares
not statement, because it has no truth value
Definition
A statement is an ordinary declarative English sentence of fact that can be
assigned a truth value; that is, it can be classified as being either true or false
(but not both).
Examples
There are 168 primes less than 1000 statement
Seventeen is an even number statement
√ √3
3 is a rational number statement
Zero is not a negative number statement
What are irrational numbers? not statement, because it is not declarative
Suppose every positive integer is the sum of three squares
not statement, because it has no truth value
x+1=2
Definition
A statement is an ordinary declarative English sentence of fact that can be
assigned a truth value; that is, it can be classified as being either true or false
(but not both).
Examples
There are 168 primes less than 1000 statement
Seventeen is an even number statement
√ √3
3 is a rational number statement
Zero is not a negative number statement
What are irrational numbers? not statement, because it is not declarative
Suppose every positive integer is the sum of three squares
not statement, because it has no truth value
x + 1 = 2 not statement, because it has no unique truth value
Using the words “and” and “or” one can form new statements from other
statements. These new statements are said to be compound statements.
Using the words “and” and “or” one can form new statements from other
statements. These new statements are said to be compound statements.
Examples
32 = 9 and 3.14 < π
Using the words “and” and “or” one can form new statements from other
statements. These new statements are said to be compound statements.
Examples
32 = 9 and 3.14 < π
−22 = −4 and 5 < 100
Using the words “and” and “or” one can form new statements from other
statements. These new statements are said to be compound statements.
Examples
32 = 9 and 3.14 < π
−22 = −4 and 5 < 100
7 + 5 = 12 or 571 is the 123th prime
Using the words “and” and “or” one can form new statements from other
statements. These new statements are said to be compound statements.
Examples
32 = 9 and 3.14 < π
−22 = −4 and 5 < 100
7 + 5 = 12 or 571 is the 123th prime
25 is less than 25 or equal to 25
Using the words “and” and “or” one can form new statements from other
statements. These new statements are said to be compound statements.
Examples
32 = 9 and 3.14 < π
−22 = −4 and 5 < 100
7 + 5 = 12 or 571 is the 123th prime
25 is less than 25 or equal to 25
√
5 is an even number or 8 > 3
Using the words “and” and “or” one can form new statements from other
statements. These new statements are said to be compound statements.
Examples
32 = 9 and 3.14 < π
−22 = −4 and 5 < 100
7 + 5 = 12 or 571 is the 123th prime
25 is less than 25 or equal to 25
√
5 is an even number or 8 > 3
Question
How does the truth of “and” and “or” compound statements depend on truth
of its parts?
p, q, r, ....
p, q, r, ....
p, q, r, ....
p, q, r, ....
Definition
p ∧ q is true if both p and q are true; it is false if either p is false or q is false.
p, q, r, ....
Definition
p ∧ q is true if both p and q are true; it is false if either p is false or q is false.
p, q, r, ....
Definition
p ∧ q is true if both p and q are true; it is false if either p is false or q is false.
p, q, r, ....
Definition
p ∧ q is true if both p and q are true; it is false if either p is false or q is false.
p, q, r, ....
Definition
p ∧ q is true if both p and q are true; it is false if either p is false or q is false.
p, q, r, ....
Definition
p ∧ q is true if both p and q are true; it is false if either p is false or q is false.
p, q, r, ....
Definition
p ∧ q is true if both p and q are true; it is false if either p is false or q is false.
p, q, r, ....
Definition
p ∧ q is true if both p and q are true; it is false if either p is false or q is false.
p, q, r, ....
Definition
p ∧ q is true if both p and q are true; it is false if either p is false or q is false.
p, q, r, ....
Definition
p ∧ q is true if both p and q are true; it is false if either p is false or q is false.
p, q, r, ....
Definition
p ∧ q is true if both p and q are true; it is false if either p is false or q is false.
p, q, r, ....
Definition
p ∧ q is true if both p and q are true; it is false if either p is false or q is false.
we read it as “p or q”.
we read it as “p or q”.
Definition
p ∨ q is true if p is true or q is true or both p and q are true; it is false only
when both p and q are false.
we read it as “p or q”.
Definition
p ∨ q is true if p is true or q is true or both p and q are true; it is false only
when both p and q are false.
we read it as “p or q”.
Definition
p ∨ q is true if p is true or q is true or both p and q are true; it is false only
when both p and q are false.
we read it as “p or q”.
Definition
p ∨ q is true if p is true or q is true or both p and q are true; it is false only
when both p and q are false.
we read it as “p or q”.
Definition
p ∨ q is true if p is true or q is true or both p and q are true; it is false only
when both p and q are false.
we read it as “p or q”.
Definition
p ∨ q is true if p is true or q is true or both p and q are true; it is false only
when both p and q are false.
we read it as “p or q”.
Definition
p ∨ q is true if p is true or q is true or both p and q are true; it is false only
when both p and q are false.
Examples
32 = 9 and 3.14 < π
Examples
32 = 9 and 3.14 < π True
Examples
32 = 9 and 3.14 < π True
−22 = −4 and 5 < 100
Examples
32 = 9 and 3.14 < π True
−22 = −4 and 5 < 100 True
Examples
32 = 9 and 3.14 < π True
−22 = −4 and 5 < 100 True
7 + 5 = 12 or 571 is the 123th prime
Examples
32 = 9 and 3.14 < π True
−22 = −4 and 5 < 100 True
7 + 5 = 12 or 571 is the 123th prime True
Examples
32 = 9 and 3.14 < π True
−22 = −4 and 5 < 100 True
7 + 5 = 12 or 571 is the 123th prime True
25 is less than 25 or equal to 25
Examples
32 = 9 and 3.14 < π True
−22 = −4 and 5 < 100 True
7 + 5 = 12 or 571 is the 123th prime True
25 is less than 25 or equal to 25 True
Examples
32 = 9 and 3.14 < π True
−22 = −4 and 5 < 100 True
7 + 5 = 12 or 571 is the 123th prime True
25 is less than 25 or equal to 25 True
√
5 is an even number or 8 > 3
Examples
32 = 9 and 3.14 < π True
−22 = −4 and 5 < 100 True
7 + 5 = 12 or 571 is the 123th prime True
25 is less than 25 or equal to 25 True
√
5 is an even number or 8 > 3 False
Examples
2 is an even integer implies 4 is an even integer.
If it is sunny tomorrow, then you may go swimming
Examples
2 is an even integer implies 4 is an even integer.
If it is sunny tomorrow, then you may go swimming
Definition
The implication p → q is false only when the hypothesis p is true and the
conclusion q is false. In all other situations, it is true.
Examples
2 is an even number if and only if 4 is an even number.
2 is an even number if and only if 5 is an even number.
The negation of a statement p is the statement that asserts that p is not true.
We denote the negation of p by p̄ and say “not p”.
The negation of a statement p is the statement that asserts that p is not true.
We denote the negation of p by p̄ and say “not p”.
Example
The negation of “x equals 4” is the statement “x does not equal 4” or x ̸= 4.
The negation of a statement p is the statement that asserts that p is not true.
We denote the negation of p by p̄ and say “not p”.
Example
The negation of “x equals 4” is the statement “x does not equal 4” or x ̸= 4.
The negation of a statement p is the statement that asserts that p is not true.
We denote the negation of p by p̄ and say “not p”.
Example
The negation of “x equals 4” is the statement “x does not equal 4” or x ̸= 4.
The negation of a statement p is the statement that asserts that p is not true.
We denote the negation of p by p̄ and say “not p”.
Example
The negation of “x equals 4” is the statement “x does not equal 4” or x ̸= 4.
Example
Suppose we want the truth table for p → (p ∨ q).
Example
Suppose we want the truth table for p → (p ∨ q).
p q
F F
F T
T F
T T
Example
Suppose we want the truth table for p → (p ∨ q).
p q p∨q
F F
F T
T F
T T
Example
Suppose we want the truth table for p → (p ∨ q).
p q p∨q
F F F
F T
T F
T T
Example
Suppose we want the truth table for p → (p ∨ q).
p q p∨q
F F F
F T T
T F
T T
Example
Suppose we want the truth table for p → (p ∨ q).
p q p∨q
F F F
F T T
T F T
T T
Example
Suppose we want the truth table for p → (p ∨ q).
p q p∨q
F F F
F T T
T F T
T T T
Example
Suppose we want the truth table for p → (p ∨ q).
p q p∨q p∨q
F F F
F T T
T F T
T T T
Example
Suppose we want the truth table for p → (p ∨ q).
p q p∨q p∨q
F F F T
F T T
T F T
T T T
Example
Suppose we want the truth table for p → (p ∨ q).
p q p∨q p∨q
F F F T
F T T F
T F T
T T T
Example
Suppose we want the truth table for p → (p ∨ q).
p q p∨q p∨q
F F F T
F T T F
T F T F
T T T
Example
Suppose we want the truth table for p → (p ∨ q).
p q p∨q p∨q
F F F T
F T T F
T F T F
T T T F
Example
Suppose we want the truth table for p → (p ∨ q).
p q p ∨ q p ∨ q p → (p ∨ q)
F F F T
F T T F
T F T F
T T T F
Example
Suppose we want the truth table for p → (p ∨ q).
p q p ∨ q p ∨ q p → (p ∨ q)
F F F T T
F T T F
T F T F
T T T F
Example
Suppose we want the truth table for p → (p ∨ q).
p q p ∨ q p ∨ q p → (p ∨ q)
F F F T T
F T T F T
T F T F
T T T F
Example
Suppose we want the truth table for p → (p ∨ q).
p q p ∨ q p ∨ q p → (p ∨ q)
F F F T T
F T T F T
T F T F F
T T T F
Example
Suppose we want the truth table for p → (p ∨ q).
p q p ∨ q p ∨ q p → (p ∨ q)
F F F T T
F T T F T
T F T F F
T T T F F
Example
Suppose we want the truth table for p → (p ∨ q).
p q p ∨ q p ∨ q p → (p ∨ q)
F F F T T
F T T F T
T F T F F
T T T F F
When three statements say p, q and r are involved, 8 rows are required in a
truth table since it is necessary to consider the two possible truth values for r
for each of the four possible truth values of p and q.
Definition
Statements p and q are are said to be logically equivalent if they have identical
truth tables.
Definition
Statements p and q are are said to be logically equivalent if they have identical
truth tables.
Example
p → q and q̄ → p̄ are logically equivalent.
Definition
Statements p and q are are said to be logically equivalent if they have identical
truth tables.
Example
p → q and q̄ → p̄ are logically equivalent.
p q p→q p q q̄ p̄ q̄ → p̄
F F T F F T T T
F T T F T F T T
T F F T F T F F
T T T T T F F T
Definition
A compound statement that is always true, regardless of the truth values
assigned to its variables, is a tautology. A compound statement that is always
false is a contradiction.
Definition
A compound statement that is always true, regardless of the truth values
assigned to its variables, is a tautology. A compound statement that is always
false is a contradiction.
Examples
p ∨ p̄ is a tautology.
p ∧ p̄ is a contradiction.
Definition
A compound statement that is always true, regardless of the truth values
assigned to its variables, is a tautology. A compound statement that is always
false is a contradiction.
Examples
p ∨ p̄ is a tautology.
p ∧ p̄ is a contradiction.
p p̄ p ∨ p̄ p p̄ p ∧ p̄
F T T F T F
T F T T F F
Proof:
Proof:
Suppose that (p ∧ q) → (p ∨ q) is not a tautology.
Proof:
Suppose that (p ∧ q) → (p ∨ q) is not a tautology.
Then for some p and q our statement has the false value.
Proof:
Suppose that (p ∧ q) → (p ∨ q) is not a tautology.
Then for some p and q our statement has the false value.
Proof:
Suppose that (p ∧ q) → (p ∨ q) is not a tautology.
Then for some p and q our statement has the false value.
Proof:
Suppose that (p ∧ q) → (p ∨ q) is not a tautology.
Then for some p and q our statement has the false value.
Proof:
Suppose that (p ∧ q) → (p ∨ q) is not a tautology.
Then for some p and q our statement has the false value.
Proof:
Suppose that (p ∧ q) → (p ∨ q) is not a tautology.
Then for some p and q our statement has the false value.
Therefore, (p ∧ q) → (p ∨ q) is a tautology. □
Nurlan Ismailov nurlan.ismailov@astanait.edu.kz
Discrete Mathematics
(Astana IT University)
Lecture 1- Logics 21 / 34
Example
Show that (p̄ ∧ q) ∧ (p ∨ q̄) is a contradiction.
Proof:
Proof:
Suppose that (p̄ ∧ q) ∧ (p ∨ q̄) is not a contradiction.
Proof:
Suppose that (p̄ ∧ q) ∧ (p ∨ q̄) is not a contradiction.
Then for some p and q our statement has the true value.
Proof:
Suppose that (p̄ ∧ q) ∧ (p ∨ q̄) is not a contradiction.
Then for some p and q our statement has the true value.
Proof:
Suppose that (p̄ ∧ q) ∧ (p ∨ q̄) is not a contradiction.
Then for some p and q our statement has the true value.
Proof:
Suppose that (p̄ ∧ q) ∧ (p ∨ q̄) is not a contradiction.
Then for some p and q our statement has the true value.
Proof:
Suppose that (p̄ ∧ q) ∧ (p ∨ q̄) is not a contradiction.
Then for some p and q our statement has the true value.
Proof:
Suppose that (p̄ ∧ q) ∧ (p ∨ q̄) is not a contradiction.
Then for some p and q our statement has the true value.
We use the notation A ⇔ B to denote the fact that A and B are logically
equivalent.
1. Idempotence: 4. Distributivity:
p∨p⇔p (p ∨ (q ∧ r)) ⇔ ((p ∨ q) ∧ (p ∨ r))
p∧p⇔p (p ∧ (q ∨ r)) ⇔ ((p ∧ q) ∨ (p ∧ r))
2. Commutativity:
5. Double Negation:
(p ∨ q) ⇔ (q ∨ p)
p⇔p
(p ∧ q) ⇔ (q ∧ p)
3. Associativity: 6. De Morgan’s Laws:
((p ∨ q) ∨ r) ⇔ (p ∨ (q ∨ r)) p∨q ⇔p∧q
((p ∧ q) ∧ r) ⇔ (p ∧ (q ∧ r)) p∧q ⇔p∨q
7. 9.
(p ∨ 1) ⇔ 1 (p ∨ p) ⇔ 1
(p ∧ 1) ⇔ p (p ∧ p) ⇔ 0
8. 10.
(p ∨ 0) ⇔ p 1⇔0
(p ∧ 0) ⇔ 0 0⇔1
7. 9.
(p ∨ 1) ⇔ 1 (p ∨ p) ⇔ 1
(p ∧ 1) ⇔ p (p ∧ p) ⇔ 0
8. 10.
(p ∨ 0) ⇔ p 1⇔0
(p ∧ 0) ⇔ 0 0⇔1
7. 9.
(p ∨ 1) ⇔ 1 (p ∨ p) ⇔ 1
(p ∧ 1) ⇔ p (p ∧ p) ⇔ 0
8. 10.
(p ∨ 0) ⇔ p 1⇔0
(p ∧ 0) ⇔ 0 0⇔1
p → (p → q) ⇔ p → (p ∨ q)
p → (p → q) ⇔ p → (p ∨ q)
⇔ p ∨ (p ∨ q)
p → (p → q) ⇔ p → (p ∨ q)
⇔ p ∨ (p ∨ q) ⇔ p ∨ (p ∨ q)
p → (p → q) ⇔ p → (p ∨ q)
⇔ p ∨ (p ∨ q) ⇔ p ∨ (p ∨ q)
⇔ (p ∨ p) ∨ q
p → (p → q) ⇔ p → (p ∨ q)
⇔ p ∨ (p ∨ q) ⇔ p ∨ (p ∨ q)
⇔ (p ∨ p) ∨ q ⇔ (1 ∨ q)
p → (p → q) ⇔ p → (p ∨ q)
⇔ p ∨ (p ∨ q) ⇔ p ∨ (p ∨ q)
⇔ (p ∨ p) ∨ q ⇔ (1 ∨ q) ⇔ 1 □
p → (p → q) ⇔ p → (p ∨ q)
⇔ p ∨ (p ∨ q) ⇔ p ∨ (p ∨ q)
⇔ (p ∨ p) ∨ q ⇔ (1 ∨ q) ⇔ 1 □
Example
Simplify the statement p ∨ q ∨ (p ∧ q)
p → (p → q) ⇔ p → (p ∨ q)
⇔ p ∨ (p ∨ q) ⇔ p ∨ (p ∨ q)
⇔ (p ∨ p) ∨ q ⇔ (1 ∨ q) ⇔ 1 □
Example
Simplify the statement p ∨ q ∨ (p ∧ q)
Solution. By De Morgan’s Law
p ∨ q ∨ (p ∧ q) ⇔ (p ∧ q) ∨ (p ∧ q)
p → (p → q) ⇔ p → (p ∨ q)
⇔ p ∨ (p ∨ q) ⇔ p ∨ (p ∨ q)
⇔ (p ∨ p) ∨ q ⇔ (1 ∨ q) ⇔ 1 □
Example
Simplify the statement p ∨ q ∨ (p ∧ q)
Solution. By De Morgan’s Law
p ∨ q ∨ (p ∧ q) ⇔ (p ∧ q) ∨ (p ∧ q)
⇔ p ∧ (q ∨ q)
p → (p → q) ⇔ p → (p ∨ q)
⇔ p ∨ (p ∨ q) ⇔ p ∨ (p ∨ q)
⇔ (p ∨ p) ∨ q ⇔ (1 ∨ q) ⇔ 1 □
Example
Simplify the statement p ∨ q ∨ (p ∧ q)
Solution. By De Morgan’s Law
p ∨ q ∨ (p ∧ q) ⇔ (p ∧ q) ∨ (p ∧ q)
⇔ p ∧ (q ∨ q) ⇔ p ∧ 1
p → (p → q) ⇔ p → (p ∨ q)
⇔ p ∨ (p ∨ q) ⇔ p ∨ (p ∨ q)
⇔ (p ∨ p) ∨ q ⇔ (1 ∨ q) ⇔ 1 □
Example
Simplify the statement p ∨ q ∨ (p ∧ q)
Solution. By De Morgan’s Law
p ∨ q ∨ (p ∧ q) ⇔ (p ∧ q) ∨ (p ∧ q)
⇔ p ∧ (q ∨ q) ⇔ p ∧ 1 ⇔ p □
p → (p → q) ⇔ p → (p ∨ q)
⇔ p ∨ (p ∨ q) ⇔ p ∨ (p ∨ q)
⇔ (p ∨ p) ∨ q ⇔ (1 ∨ q) ⇔ 1 □
Example
Simplify the statement p ∨ q ∨ (p ∧ q)
Solution. By De Morgan’s Law
p ∨ q ∨ (p ∧ q) ⇔ (p ∧ q) ∨ (p ∧ q)
⇔ p ∧ (q ∨ q) ⇔ p ∧ 1 ⇔ p □
So, the given statement is logically equivalent simply to p.
Definition (minterm)
Let n ≥ 1 be an integer and let x1 , x2 , . . . , xn be variables. A minterm based
on these variables is a compound statement of the form
a1 ∧ a2 ∧ · · · ∧ an ,
where each ai is xi or xi .
Definition (minterm)
Let n ≥ 1 be an integer and let x1 , x2 , . . . , xn be variables. A minterm based
on these variables is a compound statement of the form
a1 ∧ a2 ∧ · · · ∧ an ,
where each ai is xi or xi .
y1 ∨ y2 ∨ · · · ∨ ym
Proposition
x ⇔ (x ∧ y) ∨ (x ∧ y) for any statements x and y.
Proposition
x ⇔ (x ∧ y) ∨ (x ∧ y) for any statements x and y.
Proof
x ⇔ (x ∧ 1)
Proposition
x ⇔ (x ∧ y) ∨ (x ∧ y) for any statements x and y.
Proof
x ⇔ (x ∧ 1) ⇔ (x ∧ (y ∨ y))
Proposition
x ⇔ (x ∧ y) ∨ (x ∧ y) for any statements x and y.
Proof
x ⇔ (x ∧ 1) ⇔ (x ∧ (y ∨ y)) ⇔ (x ∧ y) ∨ (x ∧ y) □
Proposition
x ⇔ (x ∧ y) ∨ (x ∧ y) for any statements x and y.
Proof
x ⇔ (x ∧ 1) ⇔ (x ∧ (y ∨ y)) ⇔ (x ∧ y) ∨ (x ∧ y) □
Proposition
x ⇔ (x ∧ y) ∨ (x ∧ y) for any statements x and y.
Proof
x ⇔ (x ∧ 1) ⇔ (x ∧ (y ∨ y)) ⇔ (x ∧ y) ∨ (x ∧ y) □
Example
Express p → (q ∧ r) in disjunctive normal form.
Proposition
x ⇔ (x ∧ y) ∨ (x ∧ y) for any statements x and y.
Proof
x ⇔ (x ∧ 1) ⇔ (x ∧ (y ∨ y)) ⇔ (x ∧ y) ∨ (x ∧ y) □
Example
Express p → (q ∧ r) in disjunctive normal form.
Solution.
p → (q ∧ r) ⇔ p ∨ (q ∧ r)
Proposition
x ⇔ (x ∧ y) ∨ (x ∧ y) for any statements x and y.
Proof
x ⇔ (x ∧ 1) ⇔ (x ∧ (y ∨ y)) ⇔ (x ∧ y) ∨ (x ∧ y) □
Example
Express p → (q ∧ r) in disjunctive normal form.
Solution.
p → (q ∧ r) ⇔ p ∨ (q ∧ r) ⇔ ((p ∧ q) ∨ (p ∧ q)) ∨ (q ∧ r)
Proposition
x ⇔ (x ∧ y) ∨ (x ∧ y) for any statements x and y.
Proof
x ⇔ (x ∧ 1) ⇔ (x ∧ (y ∨ y)) ⇔ (x ∧ y) ∨ (x ∧ y) □
Example
Express p → (q ∧ r) in disjunctive normal form.
Solution.
p → (q ∧ r) ⇔ p ∨ (q ∧ r) ⇔ ((p ∧ q) ∨ (p ∧ q)) ∨ (q ∧ r)
⇔ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r)
Proposition
x ⇔ (x ∧ y) ∨ (x ∧ y) for any statements x and y.
Proof
x ⇔ (x ∧ 1) ⇔ (x ∧ (y ∨ y)) ⇔ (x ∧ y) ∨ (x ∧ y) □
Example
Express p → (q ∧ r) in disjunctive normal form.
Solution.
p → (q ∧ r) ⇔ p ∨ (q ∧ r) ⇔ ((p ∧ q) ∨ (p ∧ q)) ∨ (q ∧ r)
⇔ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r)
⇔ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r) □
(p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r).
(p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r).
Observations:
We see that the obtained expression is a DNF on variables p, q and r.
We note that it is logically equivalent to p → (q ∧ r). (Why?)
(p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r).
Observations:
We see that the obtained expression is a DNF on variables p, q and r.
We note that it is logically equivalent to p → (q ∧ r). (Why?)
Hence,
(p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r)
is a DNF of p → (q ∧ r) □
(p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r).
Observations:
We see that the obtained expression is a DNF on variables p, q and r.
We note that it is logically equivalent to p → (q ∧ r). (Why?)
Hence,
(p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r)
is a DNF of p → (q ∧ r) □