• Nie Znaleziono Wyników

(¬p ∨ q) We need to construct the truth table for this proposition

N/A
N/A
Protected

Academic year: 2021

Share "(¬p ∨ q) We need to construct the truth table for this proposition"

Copied!
53
0
0

Pełen tekst

(1)
(2)

In this presentation we will practice checking if a compound proposition is tautology/contradiction and if two statements are equivalent.

(3)

Check if the following proposition is a tautology, contradiction or neither.

(p → q) → (¬p ∨ q)

We need to construct the truth table for this proposition. There are 2 simple sentences involved p and q, so the table will have four rows.

We will need columns for p, q, p → q, ¬p, ¬p ∨ q and finally (p → q) → (¬p ∨ q).

(4)

Example 1

Check if the following proposition is a tautology, contradiction or neither.

(p → q) → (¬p ∨ q)

We need to construct the truth table for this proposition. There are 2 simple sentences involved p and q, so the table will have four rows.

We will need columns for p, q, p → q, ¬p, ¬p ∨ q and finally (p → q) → (¬p ∨ q).

(5)

Check if the following proposition is a tautology, contradiction or neither.

(p → q) → (¬p ∨ q)

We need to construct the truth table for this proposition. There are 2 simple sentences involved p and q, so the table will have four rows.

We will need columns for p, q, p → q, ¬p, ¬p ∨ q and finally (p → q) → (¬p ∨ q).

(6)

Example 1

The truth table will look as follows. Try to complete a column and then move to the next slide to check your answers.

p q p → q ¬p ¬p ∨ q (p → q) → (¬p ∨ q)

T T T F T T

T F F F F T

F T T T T T

F F T T T T

(7)

The truth table will look as follows. Try to complete a column and then move to the next slide to check your answers.

p q p → q ¬p ¬p ∨ q (p → q) → (¬p ∨ q)

T T T F T T

T F F F F T

F T T T T T

F F T T T T

(8)

Example 1

The truth table will look as follows. Try to complete a column and then move to the next slide to check your answers.

p q p → q ¬p ¬p ∨ q (p → q) → (¬p ∨ q)

T T T F T T

T F F F F T

F T T T T T

F F T T T T

(9)

The truth table will look as follows. Try to complete a column and then move to the next slide to check your answers.

p q p → q ¬p ¬p ∨ q (p → q) → (¬p ∨ q)

T T T F T T

T F F F F T

F T T T T T

F F T T T T

(10)

Example 1

The truth table will look as follows. Try to complete a column and then move to the next slide to check your answers.

p q p → q ¬p ¬p ∨ q (p → q) → (¬p ∨ q)

T T T F T T

T F F F F T

F T T T T T

F F T T T T

(11)

The truth table will look as follows. Try to complete a column and then move to the next slide to check your answers.

p q p → q ¬p ¬p ∨ q (p → q) → (¬p ∨ q)

T T T F T T

T F F F F T

F T T T T T

F F T T T T

(12)

Example 1

The truth table will look as follows. Try to complete a column and then move to the next slide to check your answers.

p q p → q ¬p ¬p ∨ q (p → q) → (¬p ∨ q)

T T T F T T

T F F F F T

F T T T T T

F F T T T T

(13)

The truth table will look as follows. Try to complete a column and then move to the next slide to check your answers.

p q p → q ¬p ¬p ∨ q (p → q) → (¬p ∨ q)

T T T F T T

T F F F F T

F T T T T T

F F T T T T

(14)

The last columns has Ts only, so the statement is always true i.e. it is a tautology.

(15)

Check if the following compound statement is a tautology, contradiction or neither.

(p ∧ q) ∨ (r → ¬q)

We have three simple statements involved in this proposition: p,q and r . So our table will have eight rows.

We need the following columns: p, q, r and then also p ∧ q, ¬q, r → ¬q and the statement we want to check (p ∧ q) ∨ (r → ¬q)

(16)

Example 2

Check if the following compound statement is a tautology, contradiction or neither.

(p ∧ q) ∨ (r → ¬q)

We have three simple statements involved in this proposition: p,q and r . So our table will have eight rows.

We need the following columns: p, q, r and then also p ∧ q, ¬q, r → ¬q and the statement we want to check (p ∧ q) ∨ (r → ¬q)

(17)

Check if the following compound statement is a tautology, contradiction or neither.

(p ∧ q) ∨ (r → ¬q)

We have three simple statements involved in this proposition: p,q and r . So our table will have eight rows.

We need the following columns: p, q, r and then also p ∧ q, ¬q, r → ¬q and the statement we want to check (p ∧ q) ∨ (r → ¬q)

(18)

Example 2

The truth table will look as follows. Again try to complete a column and then move to the next slide to check your answers.

p q r p ∧ q ¬q r → ¬q (p ∧ q) ∨ (r → ¬q)

T T T T F F T

T T F T F T T

T F T F T T T

T F F F T T T

F T T F F F F

F T F F F T T

F F T F T T T

F F F F T T T

(19)

then move to the next slide to check your answers.

p q r p ∧ q ¬q r → ¬q (p ∧ q) ∨ (r → ¬q)

T T T T F F T

T T F T F T T

T F T F T T T

T F F F T T T

F T T F F F F

F T F F F T T

F F T F T T T

(20)

Example 2

The truth table will look as follows. Again try to complete a column and then move to the next slide to check your answers.

p q r p ∧ q ¬q r → ¬q (p ∧ q) ∨ (r → ¬q)

T T T T F F T

T T F T F T T

T F T F T T T

T F F F T T T

F T T F F F F

F T F F F T T

F F T F T T T

F F F F T T T

(21)

then move to the next slide to check your answers.

p q r p ∧ q ¬q r → ¬q (p ∧ q) ∨ (r → ¬q)

T T T T F F T

T T F T F T T

T F T F T T T

T F F F T T T

F T T F F F F

F T F F F T T

F F T F T T T

(22)

Example 2

The truth table will look as follows. Again try to complete a column and then move to the next slide to check your answers.

p q r p ∧ q ¬q r → ¬q (p ∧ q) ∨ (r → ¬q)

T T T T F F T

T T F T F T T

T F T F T T T

T F F F T T T

F T T F F F F

F T F F F T T

F F T F T T T

F F F F T T T

(23)

then move to the next slide to check your answers.

p q r p ∧ q ¬q r → ¬q (p ∧ q) ∨ (r → ¬q)

T T T T F F T

T T F T F T T

T F T F T T T

T F F F T T T

F T T F F F F

F T F F F T T

F F T F T T T

(24)

Example 2

The truth table will look as follows. Again try to complete a column and then move to the next slide to check your answers.

p q r p ∧ q ¬q r → ¬q (p ∧ q) ∨ (r → ¬q)

T T T T F F T

T T F T F T T

T F T F T T T

T F F F T T T

F T T F F F F

F T F F F T T

F F T F T T T

F F F F T T T

(25)

then move to the next slide to check your answers.

p q r p ∧ q ¬q r → ¬q (p ∧ q) ∨ (r → ¬q)

T T T T F F T

T T F T F T T

T F T F T T T

T F F F T T T

F T T F F F F

F T F F F T T

F F T F T T T

(26)

Example 2

The truth table will look as follows. Again try to complete a column and then move to the next slide to check your answers.

p q r p ∧ q ¬q r → ¬q (p ∧ q) ∨ (r → ¬q)

T T T T F F T

T T F T F T T

T F T F T T T

T F F F T T T

F T T F F F F

F T F F F T T

F F T F T T T

F F F F T T T

(27)

then move to the next slide to check your answers.

p q r p ∧ q ¬q r → ¬q (p ∧ q) ∨ (r → ¬q)

T T T T F F T

T T F T F T T

T F T F T T T

T F F F T T T

F T T F F F F

F T F F F T T

F F T F T T T

(28)

Example 2

The truth table will look as follows. Again try to complete a column and then move to the next slide to check your answers.

p q r p ∧ q ¬q r → ¬q (p ∧ q) ∨ (r → ¬q)

T T T T F F T

T T F T F T T

T F T F T T T

T F F F T T T

F T T F F F F

F T F F F T T

F F T F T T T

F F F F T T T

(29)

then move to the next slide to check your answers.

p q r p ∧ q ¬q r → ¬q (p ∧ q) ∨ (r → ¬q)

T T T T F F T

T T F T F T T

T F T F T T T

T F F F T T T

F T T F F F F

F T F F F T T

F F T F T T T

(30)

Example 2

The compound statement (p ∧ q) ∨ (r → ¬q) is neither a tautology nor a contradiction.

(31)

Check if the statement (p ∨ ¬p) → (q ∧ ¬q) is a tautology, a contradiction or neither.

We have 2 simple statements involved: p and q, so we will have 4 rows.

We need columns for p, q, ¬p, p ∨ ¬p, ¬q, q ∧ ¬q and (p ∨ ¬p) → (q ∧ ¬q)

(32)

Example 3

Check if the statement (p ∨ ¬p) → (q ∧ ¬q) is a tautology, a contradiction or neither.

We have 2 simple statements involved: p and q, so we will have 4 rows.

We need columns for p, q, ¬p, p ∨ ¬p, ¬q, q ∧ ¬q and (p ∨ ¬p) → (q ∧ ¬q)

(33)

Check if the statement (p ∨ ¬p) → (q ∧ ¬q) is a tautology, a contradiction or neither.

We have 2 simple statements involved: p and q, so we will have 4 rows.

We need columns for p, q, ¬p, p ∨ ¬p, ¬q, q ∧ ¬q and (p ∨ ¬p) → (q ∧ ¬q)

(34)

Example 3

The truth table will look as follows. Try to complete a column and then move to the next slide to check your answers.

p q ¬p p ∨ ¬p ¬q q ∧ ¬q (p ∨ ¬p) → (q ∧ ¬q)

T T F T F F F

T F F T T F F

F T T T F F F

F F T T T F F

(35)

The truth table will look as follows. Try to complete a column and then move to the next slide to check your answers.

p q ¬p p ∨ ¬p ¬q q ∧ ¬q (p ∨ ¬p) → (q ∧ ¬q)

T T F T F F F

T F F T T F F

F T T T F F F

F F T T T F F

(36)

Example 3

The truth table will look as follows. Try to complete a column and then move to the next slide to check your answers.

p q ¬p p ∨ ¬p ¬q q ∧ ¬q (p ∨ ¬p) → (q ∧ ¬q)

T T F T F F F

T F F T T F F

F T T T F F F

F F T T T F F

(37)

The truth table will look as follows. Try to complete a column and then move to the next slide to check your answers.

p q ¬p p ∨ ¬p ¬q q ∧ ¬q (p ∨ ¬p) → (q ∧ ¬q)

T T F T F F F

T F F T T F F

F T T T F F F

F F T T T F F

(38)

Example 3

The truth table will look as follows. Try to complete a column and then move to the next slide to check your answers.

p q ¬p p ∨ ¬p ¬q q ∧ ¬q (p ∨ ¬p) → (q ∧ ¬q)

T T F T F F F

T F F T T F F

F T T T F F F

F F T T T F F

(39)

The truth table will look as follows. Try to complete a column and then move to the next slide to check your answers.

p q ¬p p ∨ ¬p ¬q q ∧ ¬q (p ∨ ¬p) → (q ∧ ¬q)

T T F T F F F

T F F T T F F

F T T T F F F

F F T T T F F

(40)

Example 3

The truth table will look as follows. Try to complete a column and then move to the next slide to check your answers.

p q ¬p p ∨ ¬p ¬q q ∧ ¬q (p ∨ ¬p) → (q ∧ ¬q)

T T F T F F F

T F F T T F F

F T T T F F F

F F T T T F F

(41)

The truth table will look as follows. Try to complete a column and then move to the next slide to check your answers.

p q ¬p p ∨ ¬p ¬q q ∧ ¬q (p ∨ ¬p) → (q ∧ ¬q)

T T F T F F F

T F F T T F F

F T T T F F F

F F T T T F F

(42)

Example 3

The truth table will look as follows. Try to complete a column and then move to the next slide to check your answers.

p q ¬p p ∨ ¬p ¬q q ∧ ¬q (p ∨ ¬p) → (q ∧ ¬q)

T T F T F F F

T F F T T F F

F T T T F F F

F F T T T F F

(43)

The statement (p ∨ ¬p) → (q ∧ ¬q) is always false, so it is a contradiction.

(44)

Example 4

Check if the statements ¬(p ∧ q) and ¬p ∨ ¬q are equivalent.

We need to construct truth table for both statements. We will try to do it in one table.

(45)

Check if the statements ¬(p ∧ q) and ¬p ∨ ¬q are equivalent.

We need to construct truth table for both statements. We will try to do it in one table.

(46)

Example 4

Check if the statements ¬(p ∧ q) and ¬p ∨ ¬q are equivalent.

We need to construct truth table for both statements. We will try to do it in one table.

(47)

The truth table will look as follows. Try to complete a column and then move to the next slide to check your answers.

p q p ∧ q ¬(p ∧ q) ¬p ¬q ¬p ∨ ¬q

T T T F F F F

T F F T F T T

F T F T T F T

F F F T T T T

(48)

Example 4

The truth table will look as follows. Try to complete a column and then move to the next slide to check your answers.

p q p ∧ q ¬(p ∧ q) ¬p ¬q ¬p ∨ ¬q

T T T F F F F

T F F T F T T

F T F T T F T

F F F T T T T

(49)

The truth table will look as follows. Try to complete a column and then move to the next slide to check your answers.

p q p ∧ q ¬(p ∧ q) ¬p ¬q ¬p ∨ ¬q

T T T F F F F

T F F T F T T

F T F T T F T

F F F T T T T

(50)

Example 4

The truth table will look as follows. Try to complete a column and then move to the next slide to check your answers.

p q p ∧ q ¬(p ∧ q) ¬p ¬q ¬p ∨ ¬q

T T T F F F F

T F F T F T T

F T F T T F T

F F F T T T T

(51)

The truth table will look as follows. Try to complete a column and then move to the next slide to check your answers.

p q p ∧ q ¬(p ∧ q) ¬p ¬q ¬p ∨ ¬q

T T T F F F F

T F F T F T T

F T F T T F T

F F F T T T T

(52)

Example 4

The truth table will look as follows. Try to complete a column and then move to the next slide to check your answers.

p q p ∧ q ¬(p ∧ q) ¬p ¬q ¬p ∨ ¬q

T T T F F F F

T F F T F T T

F T F T T F T

F F F T T T T

(53)

The columns for ¬(p ∧ q) and ¬p ∨ ¬q are identical, so the two statements are equivalent.

Cytaty

Powiązane dokumenty

In this presentation we will practice checking if a compound proposition is tautology/contradiction and if two statements are equivalent....

p: It is snowing q: The roads are open r: We will go skiing (a) Write the following compound statement in symbolic form.. “It is snowing and the roads are

Note that we consider 0 to be a natural number, this is a convention, some textbook author may exclude 0 from the set of natural numbers.. In other words rational numbers are

In a series of papers he considered the incompressible nonstationary Navier–Stokes equa- tions as a free boundary problem with constant surface tension and without surface tension..

So, the following theorem extends the Krengel–Lin decomposition which is discussed in [KL] only for compact groups..

We find that our model of allele frequency distributions at SNP sites is consistent with SNP statistics derived based on new SNP data at ATM, BLM, RQL and WRN gene regions..

[r]

While studying the representation theory of the trivial extension T (A) of an artin algebra A by its minimal injective cogenerator bimodule DA, Tachikawa [12] and Yamagata [13]