Logic
Logic: A Summary
Jacek Malec
- Dept. of Computer Science, Lund University, Sweden
February 20, 2019
Jacek Malec, http://rss.cs.lth.se, jacek.malec@cs.lth.se 1(18) Logic
Formal languages and syntax:
propositional variables: P, Q, R, S
- perators (connectives): ¬, ∨, ∧
formulae: P, ¬Q ∧ R, ¬(Q ∨ R) Language: the set of all well-formed formulae (wff): {P, Q, ¬P, ¬Q, P ∧ Q, P ∨ Q, . . .}
Jacek Malec, http://rss.cs.lth.se, jacek.malec@cs.lth.se 2(18) Logic
Assigning truth values to symbols:
P is TRUE Q is FALSE Interpretation: an assignment to all of the variables. It determines the truth values for more complex formulae: ¬P ∨ Q ¬P ∨ P a tautology ¬P ∧ P a contradiction
Jacek Malec, http://rss.cs.lth.se, jacek.malec@cs.lth.se 3(18) Logic
Logical equivalence:
Q ∨ ¬P ¬Q ∨ P ¬P ∨ P ¬P ∧ P P ∨ Q ¬(¬P ∧ ¬Q) ¬P ∨ Q P → Q
Jacek Malec, http://rss.cs.lth.se, jacek.malec@cs.lth.se 4(18)