Exercise Sheets
Exercise Sheet 1
Exercise Problem 1.1
Instruction
Are the following statements true? Provide either a proof or a countermodel.
- if then
- if and then
- if then
Counterexample for 1.) and . Then:
Choose
Trivially, is true given that also makes .
However, is false, because if and , then is true while is false. There’s essentially another piece of information, namely , that needs to be considered.
Proof for 2.) be an arbitrary interpretation that satisfies , i.e.:
Let
Since , it follows that
Hence, applying recursively on all atoms:
Now, consider . Since evaluates to true, we get .
Therefore, for every interpretation , if , then , i.e.:
Proof for 3.) be an arbitrary interpretation. Assume that . Then:
Let
Since , it follows that:
Hence , so .
Symmetrically, we can assume that , then:
Since , it follows that:
Hence , so .
We have and . Hence, there is no interpretation that makes one of them true and the other false, so we cannot distinguish them semantically. Therefore:
Exercise Problem 1.2
Instruction
Prove or disprove the correctness of the following reasoning using tableaux:
- I can bake the cake only if I buy the ingredients today.
- I can go to the gym only if I finish my homework early.
- I cannot both buy the ingredients and finish homework early.
Therefore, either I will not bake the cake or I will not go to the gym.
Solution
Formalise the atoms of the statements from above as follows:
- : I will bake the cake.
- : I will buy the ingredients today.
- : I will go to the gym.
- : I will finish my homework early.
Next, we formalise the premises themselves:
Then, the conclusion is:
So, in sequent notation, we want to prove:
Exercise Problem 1.3
The gold is not here 5. Box 2 The gold is not here 6. Box 3 The gold is in Box 2 Only one message is true; the other two are false. Which box has the gold?
Three boxes are presented to you. One contains gold, the other two are empty. Each box has imprinted on it a clue as to its contents; the clues are:
4. Box 1
Exercise Problem 1.4
be a propositional formula with propositional variables such that:
Let
- is not a propositional atom, and
- is built from propositional atoms using only and
How many branches does a splitting tree of have? Provide a sufficiently detailed explanation of your answer.
Exercise Problem 1.5
Instruction
Consider the formula:
Find a formula that is equivalent to the above formula and is shortest in size. Justify your answer.
Exercise Problem 1.6
Instruction
Draw the parse tree of the following formula:
List all subformulas with negative polarity in the formula above.
Exercise Problem 1.7
Instruction
Consider the formula:
- Which atoms are pure in the above formula?
- Compute a clausal normal form of the above formula by applying the CNF transformation algorithm with naming and optimisations based on polarities of the subformulas.
- Decide the satisfiability of the computed CNF formula by applying the dDPLL method to . If is satisfiable, give an interpretation which satisfies it.
Exercise Problem 1.8
using only the pure atom rule
Find a model of the formula
Exercise Problem 1.9
Instruction
Apply the standard CNF transformation algorithm and the definitional transformation algorithm (both the non-optimised and optimised versions) to the following formula:
Exercise Problem 1.10
be a set of formulas. Let a formula occurring only positively in . Consider a Boolean variable not occurring in , nor in . Let be the set of formulas obtained from by replacing in by . Show that is satisfiable if and only if so is the set of formulas .
Let