Elementary Logic
Elementary Logic
Or Disjunction ˅ p˅q
p or q
Implies Conditional → p→ q If p then q
Or p implies q
If and only if Biconditional ↔ p↔ q P if and only if
q
Example 1: The ff are propositions
• a. I will go to mall
• b. The sky is cloudy
• c. You will receive your promotion
• d. The function f(x) is continuous.
Example 2;
• Harry is happy ( p )
• Harry is going to watch a volleyball game ( q )
• It is going to rain (r )
• Today is Sunday (s)
Write the ff in symbol
T F
F T
F F
Negation
P
Say P is• a proposition.
F T
T F
by
Logical Operators
•
If Neil is not big eater or Len has a big voice, then Lemy likes
violet.
( ¬ p˅q) → r
Conditional statements
•
• 1. p˄ (¬ q)
p q ¬q p˄ (¬
q)
T T F F
T F T T
F T F F
F F T F
2. (- p˅ q) ˄ (-q)
p -p q ¬q (- p˅ q) ˄ (-q)
T F T F
T F F T
F T T F
F T F T
• 3. [ p˄(¬ q)] ˅ [(¬p) ˅ q]
Write symbols ¬ , ˄, ˅, →
Given: P: The sun is shining
Q: It is raining
R: The ground is wet
It is equivalent to () ()
F T T F
F
T F F T F
T T T T T
Quantifiers
•
•
2
p: A polygon is a triangle.
Given:
q: A polygon has exactly 3 sides.