Presentation is loading. Please wait.

Presentation is loading. Please wait.

Logic of Informatics Converse, Inverse, Contrapositive, Equivalence, Tautology and Contradiction.

Similar presentations


Presentation on theme: "Logic of Informatics Converse, Inverse, Contrapositive, Equivalence, Tautology and Contradiction."— Presentation transcript:

1 Logic of Informatics Converse, Inverse, Contrapositive, Equivalence, Tautology and Contradiction

2 Last Lecture Propositions Statement Truth table

3 Propositions A proposition is any meaningful statement that is either true or false, but not both. We will use lowercase letters, such as p, q, r, … , to represent propositions

4 Statement The truth value of a proposition is true, denoted by T, if it is a true statement and false, denoted by F, if it is a false statement. Statements that are not propositions include questions and commands

5 Truth Table p q

6 Reminder! Conditional: pq.
The phrase after the word “if” is the hypothesis. (p) The phrase after the word “then” is the conclusion. (q)

7 Converse Converse – switching the places of the hypothesis and conclusion. Ex. Conditional: If two angles have the same measure, then they are congruent. Converse : If they are congruent, then two angles have the same measure.

8 Conditional to Converse
Conditional: pq Converse : qp Conditional: ~pq Converse : q~p Conditional: ~q~p Converse : ~p~q

9 Truth Table for Converse
p q ~p ~q Conditional pq Converse qp T F

10 Inverse Inverse – Negating both the hypothesis and conclusion of the conditional. Ex. Conditional: If two angles have the same measure, then they are congruent. Inverse: If two angles do not have the same measure, then they are not congruent.

11 Conditional to Inverse
Conditional: pq Inverse: ~p~q Conditional: ~pq Inverse : p~q Conditional: ~q~p Inverse : qp

12 Truth Table for Inverse
p q ~p ~q Conditional pq Inverse ~p~q T F

13 Contrapositive Contrapositive – Negating AND exchanging both the hypothesis and conclusion Ex. Conditional: If two angles have the same measure, then they are congruent. Contrapositive: If two angles are not congruent then they do not have the same measure.

14 Conditional to Contrapositive
Conditional: pq Contrapositive: ~q~p Conditional: ~pq Contrapositive: ~qp Conditional: ~q~p Contrapositive: pq

15 Truth Table for Contrapositive
q ~p ~q Conditional pq Contrapositive ~q~p T F

16 Practice Write the converse, inverse, and contrapositive of the following conditional statement: If two angles equal 90°, then they are complementary.

17 Answer Converse: If two angles are complementary, then they equal 90°
Inverse: If two angle do not equal 90° then they are not complementary Contrapositive: If two angles are not complementary then they do not equal 90°

18 Tautology A compound proposition is called a tautology if it is always true. (𝑝⋀𝑞)⋁(~𝑝∨~𝑞) 𝑝∨~𝑞

19 Contradiction If a compound statement is false for all such assignments, then it is called a contradiction. 𝑝∧(~𝑝∧𝑞)

20 The Truth Table of Equivalence
Two compound statements A and B are logically equivalent if thet have The same truth, denoted by A B. The Truth Table of Equivalence p q ~p p→q ~p v q T T F T T T F F F F F T T T T F F T T T

21 Exercise 1 Let p states ‘Today is cloudy’ and q states ‘Today is raining’. Write a sentence that stated the following symbols: a)  - p              f)  – q -> - p b)  p v q          g)   - p <=> -q c) - p v q          h)     p <=>  - q d) - (p v q)       i)    (p  <=> -q) v  p e)  p ^ q         j)    - p -> -q

22 Exercise 2 Let p states ‘Duta is handsome’ and q states ‘Diana is beautiful’. Write the following sentences into symbols using p and q. Duta is handsome and Diana is beautiful. Duta is not handsome if Diana is not beautiful. Diana is beautiful or Duta is not handsome . Diana is not beautiful if and only if Duta is not handsome . It is not true that Diana is not beautiful and Duta is not handsome .

23 Exercise 3 Determine the truth value of: If 3 + 2 = 23, then 42 = 42.
New York is in Italia if and only if 3 is odd numbers. It is not true that 10 – 5 = 15 and 25 – 5 = 20. Samarinda is in Sulawesi or the capital of east Kalimantan is not Samarinda. The results of 52 divide by 13 is 4 and it is not true that = 6

24 Exercise 4 Determine the truth value of the following compound statement p: Today the sun is shining bright (T) q: Today the wind is blowing hard (F) If today the sun is shining brightly then the wind is blowing hard. If today the sun is shining brightly then the wind is not blowing hard If today the sun is not shining brightly then the wind is blowing hard. If today the sun is not shining brightly then the wind is not blowing hard.

25 Exercise 5 Determine the truth value of a compound statement which is based on the following statement: p: 2 is prime number  (T) q: = 12 (F) 2 is prime number if and only if = 12 2 is prime number if and only if is not equal 12 2 is not prime number if and only if = 12 2 is not prime number if and only if 2 + 6  is not equal  12

26 Exercise 6 Write the converse, inverse and contrapositive of the statement exercise 4.

27 Exercise 7 Simple statement “if a flag is the Indonesia flag, then the flag has red and white color”. It means that ‘everything Indonesia flag has red and white color’. The logical structure is 'for all 𝑥, 𝑥 is an Indonesia flag implies 𝑥 has red and white color'. Let's write that symbolically: Write the converse, inverse and contrapositive of the statement above.


Download ppt "Logic of Informatics Converse, Inverse, Contrapositive, Equivalence, Tautology and Contradiction."

Similar presentations


Ads by Google