Professional Documents
Culture Documents
Logic
Logical Connectives
Truth Tables
Truth Table
is a diagram in rows and columns showing how the
truth or falsity of a proposition varies with that of its
components
Logical Connectives
Conjunction (AND)
Of p and q is p ∧ q p q p∧q
F F F
Conditional and Biconditional Propositions
Example
let p: “It is raining today”
let q: “2 is a prime number”
Example
let p: “Jose Rizal is a National Hero”
let q: “25 is divisible by 5”
Example
let p: “10+5 = 16”
let q: “4 * 3 > 10”
Disjunction (OR)
Of p and q is p ∨ q p q p∨q
F F F
Conditional and Biconditional Propositions
Example
let p: “It is raining today”
let q: “2 is a prime number”
Example
let p: “Jose Rizal is a National Hero”
let q: “25 is divisible by 5”
Example
let p: “10+5 = 16”
let q: “4 * 3 > 10”
Negation (NOT)
p has the opposite value p ~p
when p is True then ~p is False T F
Otherwise, ~p is True when
F T
p is False
Conditional and Biconditional Propositions
Example
let p: “It is raining today”
~p: “It is not raining today”
Example
let p: “There are other life forms on other planets in the
universe”
~p: “It is not the case that there are other life forms on
other planets in the universe.”
Conditional and Biconditional Propositions
Conditional Proposition
p q p→q
The conditional statement
p → q , is the proposition T T T
“if p, then q”
T F F
The truth value of p → q is False if
p is True and q is False otherwise it F T T
is True.
F F T
Conditional and Biconditional Propositions
Conditional Proposition
In the conditional statement
if-then ( → )
p is called the hypothesis or the
premise
q is called the conclusion or
consequence.
Conditional and Biconditional Propositions
Conditional Proposition
Other way to express p → q :
“if p, then q” , “p implies q”
“p only if q” , “if p, q”
“q if p” , “q whenever p”
“q when p” “q is necessary for p” “q follows
from p”, “p is sufficient for q”
“q unless ~p”
Conditional and Biconditional Propositions
Example
let p: “You get an A in the course”
let q: “You pass the course.”
Example
let p: “You get good grades”
let q: “You will get into a good college”
p → q: “If you get good grades, then you will get into a
good college”
Conditional and Biconditional Propositions
Example
let p: “The food is good”
let q: “The service is excellent”
Biconditional Proposition
p q p↔q
The bi-conditional statement p ↔
q, is the proposition T T T
“p if and only if q”
T F F
p ↔ q is True when p and q are
both True or both False, otherwise
F T F
it is False
F F T
Conditional and Biconditional Propositions
Example
let p: “You can take the flight”
let q: “You buy a ticket”
Example
let p: “You pass the course”
let q: “You get a grade higher than 3.0”
Example
let p: “One is less than seven”
let q: “Two is less than eight”
Inverse: ~p → ~q
Converse: q → p
Contrapositive: ~q → ~p
Conditional and Biconditional Propositions
Example
p: “it is raining”
q: “it is January”