Disc Lec2 The Foundations of Logic - Part I
Disc Lec2 The Foundations of Logic - Part I
AND INFORMATICS
Part (I)
Chapter 1: The Foundations- Logic
and Proofs
1. Propositional Logic
2. Applications of Propositional Logic
3. Propositional Equivalences
Logic is Crucial for
Mathematical Reasoning
• The rules of logic specify the meaning of
mathematical statements and help us reason with
statements such as:
• Symbol:
p = “Today is Friday “
q = “today is my birthday“
Logical operators: Conditional
p q p→q
T T T
T F F
F T T
F F T
Logical operators: Conditional
• A conditional means “if p then q”
• Symbol: →
• p→q = “If today is
Friday, then today p q p→q
is my birthday” T T T
T F F
• p→q=¬p∨q F T T
F F T
Logical operators: Bi-conditional
EXAMPLE
p = “You can take the flight,”
q = “You buy a ticket.”
Then p q is the statement
Solution
“You can take the flight if and only if you buy a
ticket.”
Boolean Operators Summary
not not and or xor conditional Bi-conditional
T T F F T T F T T
T F F T F T T F F
F T T F F T T T F
F F T T F F F T T