Week 2
Quick Questions
True or False?
Solution
True, because either or will always be true, we obtain that is a tautology. We use the notation to express this fact.
If is a tautology, then is unsatisfiable.
Solution
True, see Lemma 2.2 in script.
What is a Universe in predicate logic?
- The set of all formulas of predicate logic
- A function that assigns 0 or 1 to each element of a set.
- A formula that is true in every interpretation
- The set of objects we want to reason about
Solution
- is correct.
True or false?
Solution
True, one can make the observation that in every case where the left-hand side is true, must be . Therefore, we obtain that the right-hand side automatically becomes true. Thus, we have indeed a logical consequence.
Correct application of exaclty one rule of Lemma 2.1?
Solution
No, we used double negation and De-Morgan at once, we should split it up as follows:
Correct application of exaclty one rule of Lemma 2.1?
Solution
Yes, we have used only the first distributive law.
Which statements are true?
- There are infinitely many interpretations in predicate logic, while there are only finitely many in propositional logic.
- A formula of predicate logic always has a fixed truth value
- Quantifiers only exist in predicate logic
- Propositional logic is "stronger" than predicate logic, i.e. we can express more statements.
Solution
- True, because there are e.g. infinitely many universes, while there is only a finite amount of propositional symbols in propositional logic, i.e. there are only many interpretations.
- False, the truth value may change if we e.g. use another universe.
- True
- False, predicate logic is "stronger", see 3.
True or False?
Solution
True. See 2.4.7 in script.
Under which interpretation is the following formula true?
- Universe and
- Universe and
- Universe and
- Universe and
Solution
- False, counterexample: . There exists no number "between" and .
- True, if we set , then the formula is true (if we fix any and set , then implies and )
- True, if we set , then the formula is true (we can always "find" a real number between and if )
- True, the value of doesn't matter here and setting trivially satisfies the formula.
Predicate Logic
A short rundown of the main concepts:
Interpretations and Universes Instead of assigning truth values to the propositional symbols to interpret the formula and obtain a mathematical statement, as we did in propositional logic, we now always have to choose a set of mathematical objects (such as or similar) we want to reason about. We call this set the Universe denoted by .
Predicates take elements from the universe and spit out a truth value (). Example interpretations for predicates: .
Functions take elements from the universe and spit out an element from the Universe (). Example interpretations for functions: , (note that we sometimes use the infix notation and not something like ). Note that we also allow , so we would obtain a function taking arguments, in this way, we can define constants and therefore use expressions like inside the interpreted formula.
Variables (often denoted by ), which are free (more about his in chapter 6), can take any value from the universe. A variable is basically free if there is no quantifier, which is at an outer level of the formula where the variable appears, referring to the same variable. Consider for example the expression , here is a free variable, while is not.
Quantifiers:
- F is true if for any value in , formula is true.
- F is true if there exists in , such that formula is true.
By combining these elements, predicate logic allows for the creation of more complex and expressive statements than propositional logic.
Exercises
Translation of predicate logicSource: Leon Kolmanic (HS23)
Consider the following interpretation. Let be the universe. And
Write down formulas of predicate logic, such that our interpretation is fitting and expresses the following statements (numbers refer to integers):
- There is a square number
- The sum of two arbitrary numbers is not square
- For every number , there is a number , such that is square
- The sum of two squares is a square
Additionally, translate these formulas into statements under the given interpretation: