Logics Autosaved
Logics Autosaved
Logics Autosaved
T F
F T
Example 2
State the negation of the following
propositions:
a: 2 is an odd number.
b: The tinikling is the most difficult dance
c: Everyone in Visayas speaks Cebuano.
Example 2
Answer:
a: It is not true that 2 is an odd number (~a)
b: the tinkiling is not the most difficult dance
(~b)
c: Not everyone in Visayas speaks Cebuano.
(~c)
Conjunction
The next logical operator allows us to state an expression
for two propositions to be true. It is called the conjunction
operator and is denoted by ^
Definition
- The conjunction of propositions p and q is denoted
by:
- p^q: (p and q,)
- and is defined through its truth table:
p q p^q
T T T
T F F
F T F
F F F
Conjunction
• The conjunction p^q is true only when both
conjects p and q are true as shown in its truth
table.
• Example 3.
• Let p and q be the following propositions.
• p: Angels Exist
• q: π >3
Example
Express the following conjunctions as English
sentences or in symbols, as the case may be.
(a) p^q
(b) p^(~q)
(c) ‘angels do not exist and π ≤ 3.’
(d) ‘While angels do not exist, π>3.’
Answers
Solution. The corresponding Englis sentences are given
below.
(a) p^q: ‘Angels exist and π > 3’
(b) p^(~q): ‘Angels exist and π≤3’, or ‘Angels exist, yet π ≤
3.’
(c) In symbols, we have (~p)^(~q)
(d) In logic, the statement is a conjunction and so, in
symbols, (~p)^q
Disjunction
- The third logical operator is called the
disjunction operator and is denoted by V. A
disjunction allows us to express alternatives.
- The disjunction of propositions p and q is
denoted by
- p V q: (p or q,)
- and is defined through its truth table:
p q pVq
T T T
T F T
F T T
F F F
Examples
• Let p,q and r be the following propositions.
• p: Victor has a date with Liza.
• q: Janree is sleeping.
• r: Eumir is eating.
Example
• Express the following propositions in English sentences or in symbols.
(a)p V q
(b)q V (~r)
(c)p V (q V r)
(d)‘Either victor has a date with Liza or Janree is sleeping, or Eumir is eating.’
(e)‘Either victor has a date with Liza and Janree is sleeping, or Eumir is eating.’
(f)‘Either victor has a date with Liza, or Janree is sleeping and Eumir is eating.’
(g)‘Either Victor has a date with Liza and Janree is sleeping, or Victor has a date
with Liza and Eumir is eating.’
Example
• Solution: The corresponding English expressions or symbols are given below.
T F F
F T T
F F T
Examples
• One day, Richard tweeted to the utter delight of his
friends: ‘If I get promoted, then I will stop posting
selfies on Facebook.’ Let p be the statement
‘Richard gets promoted’ and let q be the statement,
‘Richard stops posting selfies on Facebook.’
Determine whether the conditionals p->q is
true in each of the following scenarios.
Examples
• Scenario A: Richard got the promotion and promptly
stopped posting selfies on Facebook.
• Scenario B: Richard got promoted, but then he realized
that posting selfies has become a habit that he cannot break
easily.
• Scenario C: Richard stopped posting selfies, but he did
not get the promotion.
Examples
Solution.
• Scenario A: In this scenario both the hypothesis and the conclusion are true. This
means that Richard kept his promise. According to the first row of the truth table, the
conditional p->q is true
• Scenario B: In this scenario, Richard broke his promise. According to the second
row of the truth table, the conditional p -> q is false.
• Scenario C: In this scenario, did Richard break his promise? Of course not. He did
not say that his promotion is the only way to make him stop posting selfies. Perhaps
Richard read an article which claims that people who are fond of posting selfies have
some psychological disorder! In any case he did not break his promise, and according
to the third and fourth rows of the truth table, the conditional p -> q is true.
Types of conditionals
Converse
- The converse of a conditional
statement switches the order of the
hypothesis and the conclusion
- q -> p
Converse
•Notice that the truth values of the
converse are also not identical to the truth
values of the original conditional.
Contrapositive
- The contrapositive of a conditional statement
switches the hypothesis with the conclusion
and negates both parts.
- ~q -> ~p
Contrapositive
• The contrapositive of a conditional statement is
functionally equivalent to the original conditional.
This is because you can logically conclude that a dry
driveway means no rain. This means that if a
statement is a true then its contrapositive will also
be true.
Inverse
- The inverse of a conditional negates
both the hypothesis and the
conclusion.
- ~p -> ~q
Inverse
•Notice that the truth values of the
inverse are not identical to the truth
values of the original conditional.
Biconditional
- We now define another compound position which we can
derive from two conditional propositions.
- The biconditional of propositions p and q is denoted by
- p q: (p if and only if q,)
- and is defined through its truth table:
p q p q
T T T
T F F
F T F
F F T
Example
Write the inverse, converse and
contrapositive of the following conditional
statement.
•If you buy our product, then you are
attractive.
Note
• Note that advertisers regularly imply certain results
about their products that may or may not be true. If
you listen carefully, you will notice that ironclad
conditional statements are always avoided so they
are not technically false advertising. At the same
time, advertisers prey on the fact that many people
mistakenly believe that the inverse and converse
are equivalent to the original conditional.
Answers
• Inverse: If you do not buy our product, then you
are not attractive.
• Converse: If you are attractive, then you will buy
our product.
• Contrapositive: If you are not attractive, then you
will not buy our product.