• Nie Znaleziono Wyników

Truth tables

N/A
N/A
Protected

Academic year: 2021

Share "Truth tables"

Copied!
50
0
0

Pełen tekst

(1)
(2)
(3)

We want to construct the truth table for the proposition:

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

The first observation is that there are two simple statements involved in this proposition, namely p and q. So our table will have four rows.

The second observation is that apart for columns for p and q and our proposition (p ∧ q) → (¬p ∨ ¬q), we also need columns for: p ∧ q, ¬p, ¬q and ¬p ∨ ¬q.

(4)

We want to construct the truth table for the proposition:

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

The first observation is that there are two simple statements involved in this proposition, namely p and q. So our table will have four rows.

The second observation is that apart for columns for p and q and our proposition (p ∧ q) → (¬p ∨ ¬q), we also need columns for: p ∧ q, ¬p, ¬q and ¬p ∨ ¬q.

(5)

We want to construct the truth table for the proposition:

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

The first observation is that there are two simple statements involved in this proposition, namely p and q. So our table will have four rows.

The second observation is that apart for columns for p and q and our proposition (p ∧ q) → (¬p ∨ ¬q), we also need columns for: p ∧ q, ¬p, ¬q and ¬p ∨ ¬q.

(6)

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) → (¬p ∨ ¬q)

T T T F F F F

T F F F T T T

F T F T F T T

F 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 ¬q ¬p ∨ ¬q (p ∧ q) → (¬p ∨ ¬q)

T T T F F F F

T F F F T T T

F T F T F T T

F F F T T T T

(8)

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) → (¬p ∨ ¬q)

T T T F F F F

T F F F T T T

F T F T F T T

F 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 ¬q ¬p ∨ ¬q (p ∧ q) → (¬p ∨ ¬q)

T T T F F F F

T F F F T T T

F T F T F T T

F F F T T T T

(10)

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) → (¬p ∨ ¬q)

T T T F F F F

T F F F T T T

F T F T F T T

F 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 ¬q ¬p ∨ ¬q (p ∧ q) → (¬p ∨ ¬q)

T T T F F F F

T F F F T T T

F T F T F T T

F F F T T T T

(12)

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) → (¬p ∨ ¬q)

T T T F F F F

T F F F T T T

F T F T F T T

F 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 ¬q ¬p ∨ ¬q (p ∧ q) → (¬p ∨ ¬q)

T T T F F F F

T F F F T T T

F T F T F T T

F F F T T T T

(14)

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) → (¬p ∨ ¬q)

T T T F F F F

T F F F T T T

F T F T F T T

F F F T T T T

(15)

Now we want to construct the truth table for the proposition:

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

This time 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, ¬r , ¬q,

¬r ∧ ¬q and finally column for our proposition (p ∨ q) ∨ (¬r ∧ ¬q)

(16)

Now we want to construct the truth table for the proposition:

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

This time 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, ¬r , ¬q,

¬r ∧ ¬q and finally column for our proposition (p ∨ q) ∨ (¬r ∧ ¬q)

(17)

Now we want to construct the truth table for the proposition:

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

This time 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, ¬r , ¬q,

¬r ∧ ¬q and finally column for our proposition (p ∨ q) ∨ (¬r ∧ ¬q)

(18)

then move to the next slide to check your answers.

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

T T T T F F F T

T T F T T F F T

T F T T F T F T

T F F T T T T T

F T T T F F F T

F T F T T F F T

F F T F F T F F

(19)

then move to the next slide to check your answers.

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

T T T T F F F T

T T F T T F F T

T F T T F T F T

T F F T T T T T

F T T T F F F T

F T F T T F F T

F F T F F T F F

(20)

then move to the next slide to check your answers.

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

T T T T F F F T

T T F T T F F T

T F T T F T F T

T F F T T T T T

F T T T F F F T

F T F T T F F T

F F T F F T F F

(21)

then move to the next slide to check your answers.

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

T T T T F F F T

T T F T T F F T

T F T T F T F T

T F F T T T T T

F T T T F F F T

F T F T T F F T

F F T F F T F F

(22)

then move to the next slide to check your answers.

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

T T T T F F F T

T T F T T F F T

T F T T F T F T

T F F T T T T T

F T T T F F F T

F T F T T F F T

F F T F F T F F

(23)

then move to the next slide to check your answers.

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

T T T T F F F T

T T F T T F F T

T F T T F T F T

T F F T T T T T

F T T T F F F T

F T F T T F F T

F F T F F T F F

(24)

then move to the next slide to check your answers.

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

T T T T F F F T

T T F T T F F T

T F T T F T F T

T F F T T T T T

F T T T F F F T

F T F T T F F T

F F T F F T F F

(25)

then move to the next slide to check your answers.

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

T T T T F F F T

T T F T T F F T

T F T T F T F T

T F F T T T T T

F T T T F F F T

F T F T T F F T

F F T F F T F F

(26)

then move to the next slide to check your answers.

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

T T T T F F F T

T T F T T F F T

T F T T F T F T

T F F T T T T T

F T T T F F F T

F T F T T F F T

F F T F F T F F

(27)

then move to the next slide to check your answers.

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

T T T T F F F T

T T F T T F F T

T F T T F T F T

T F F T T T T T

F T T T F F F T

F T F T T F F T

F F T F F T F F

(28)

then move to the next slide to check your answers.

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

T T T T F F F T

T T F T T F F T

T F T T F T F T

T F F T T T T T

F T T T F F F T

F T F T T F F T

F F T F F T F F

(29)

then move to the next slide to check your answers.

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

T T T T F F F T

T T F T T F F T

T F T T F T F T

T F F T T T T T

F T T T F F F T

F T F T T F F T

F F T F F T F F

(30)

then move to the next slide to check your answers.

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

T T T T F F F T

T T F T T F F T

T F T T F T F T

T F F T T T T T

F T T T F F F T

F T F T T F F T

F F T F F T F F

(31)

Definition

A statement is a tautology if it is always true, i.e. in the truth table the column for this statement contains only truth (T).

(32)

Check if the statement p → (p ∨ q) is a tautology.

We need to construct a truth table for this statement and check if the last column contains only Ts.

(33)

Check if the statement p → (p ∨ q) is a tautology.

We need to construct a truth table for this statement and check if the last column contains only Ts.

(34)

The truth table will look as follows.

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

T T T T

T F T T

F T T T

F F F T

The statement p → (p ∨ q) is always true, so it is a tautology.

(35)

The truth table will look as follows.

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

T T T T

T F T T

F T T T

F F F T

The statement p → (p ∨ q) is always true, so it is a tautology.

(36)

The truth table will look as follows.

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

T T T T

T F T T

F T T T

F F F T

The statement p → (p ∨ q) is always true, so it is a tautology.

(37)

The truth table will look as follows.

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

T T T T

T F T T

F T T T

F F F T

The statement p → (p ∨ q) is always true, so it is a tautology.

(38)

The truth table will look as follows.

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

T T T T

T F T T

F T T T

F F F T

The statement p → (p ∨ q) is always true, so it is a tautology.

(39)

The truth table will look as follows.

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

T T T T

T F T T

F T T T

F F F T

The statement p → (p ∨ q) is always true, so it is a tautology.

(40)

The truth table will look as follows.

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

T T T T

T F T T

F T T T

F F F T

The statement p → (p ∨ q) is always true, so it is a tautology.

(41)

Check if the statement p → (p ∧ q) is a tautology.

Again we need to construct a truth table for this statement and check if the last column contains only Ts.

(42)

Check if the statement p → (p ∧ q) is a tautology.

Again we need to construct a truth table for this statement and check if the last column contains only Ts.

(43)

The truth table will look as follows.

p q p ∧ q p → (p ∧ q)

T T T T

T F F F

F T F T

F F F T

The statement p → (p ∨ q) is not always true (the second row shows F), so it is not a tautology.

(44)

The truth table will look as follows.

p q p ∧ q p → (p ∧ q)

T T T T

T F F F

F T F T

F F F T

The statement p → (p ∨ q) is not always true (the second row shows F), so it is not a tautology.

(45)

The truth table will look as follows.

p q p ∧ q p → (p ∧ q)

T T T T

T F F F

F T F T

F F F T

The statement p → (p ∨ q) is not always true (the second row shows F), so it is not a tautology.

(46)

The truth table will look as follows.

p q p ∧ q p → (p ∧ q)

T T T T

T F F F

F T F T

F F F T

The statement p → (p ∨ q) is not always true (the second row shows F), so it is not a tautology.

(47)

The truth table will look as follows.

p q p ∧ q p → (p ∧ q)

T T T T

T F F F

F T F T

F F F T

The statement p → (p ∨ q) is not always true (the second row shows F), so it is not a tautology.

(48)

The truth table will look as follows.

p q p ∧ q p → (p ∧ q)

T T T T

T F F F

F T F T

F F F T

The statement p → (p ∨ q) is not always true (the second row shows F), so it is not a tautology.

(49)

The truth table will look as follows.

p q p ∧ q p → (p ∧ q)

T T T T

T F F F

F T F T

F F F T

The statement p → (p ∨ q) is not always true (the second row shows F), so it is not a tautology.

(50)

Cytaty

Powiązane dokumenty

Skoro nieprawdą jest, że Sasza szedł suchą szosą (1) a Marysia mokrą drogą (0), to Sasza faktycznie szedł suchą szosą lub Marysia rzeczywiście szła

Skoro jest tak, że członkowie naszego gangu lubią się wdawać w bójki i równocześnie nie jest prawdą, że podczas bójek członkowie gangu używają siekier i toporów lub

2NUHV\ Z HNRQRPLL Z NWyU\FK HNRQRPLĞFL SU]HGNáDGDMą EDGDQLD F]\QQLNyZ LORĞFLRZ\FK EąGĨ MDNRĞFLRZ\FK Z\VWĊSXMą SU]HPLHQQLH 2VWDWQLH WU]\ GHNDG\

Jeśli uczyłam(łem) się solidnie do egzaminu, to zdałam(łem) egzamin w pierwszym

2SHQ3D\PHQW6\VWHPXPRŮOLZLDEH]SLHF]QHSRELHUDQLHPR- QLWRURZDQLHSâDWQRŒFLL]DU]ĉG]DQLHQLPLSRSU]H]UyŮQHNDQDâ\

W tym kontekście warto przyjrzeć się potencjalnemu zagrożeniu ze strony Rosji przez pryzmat trzech pojęć, dotyczących głównie charakteru możliwej agresji – wojny

(1) (c) State if the converse is true or false and give an example to justify your answer. (b) Only one of the statements in part(a)

p: Feng finishes his homework q: Feng goes to the football match.. (c) Write in symbolic form the