Logic 0304
Logic 0304
Exam
Logic
June 2004
This exam contains 9 assignments. For each assignment will be indicated the
maximum amount of points that you can obtain for a right answer. The exam mark is
the number of points for all assignments together, divided by 10.
1. (10 points)
About the students Kees and Jan we know the following:
i. If Kees passes his Logic exam, Jan will also pass his Logic exam.
ii. If Jan passes his Logic exam, Kees will pass his Software Engineering exam.
iii. Kees will pass his Logic exam or his Software Engineering exam, but not both.
4. (10 points)
Translate the following formula into an equivalent formula in prenex form:
((∃y R(x,y)) → (∀x S(x,y))) → ((∃x T(x,y)) ∨ (∀y U(x,y)))
5. (12 points)
Consider the domain of people, with the following predicates:
Oxy means that x is a parent of y, Vx means that x is a woman and Lxy means that
x loves y. The predicate = may also be used.
Also, j, a and m are constants that stand for Jan, Ans, and Marie.
Now write each of the following sentences as a formula of predicate logic:
a. Ans and Marie are women, but Jan is not.
b. Jan has precisely one sister.
c. Everyone who has precisely one sister, loves that sister.
7. (12 points)
a. Explain the ∀I rule. Why is the condition essential?
Prove with the aid of natural deduction:
b. ∀x∀y (Ax ∨ By) , ∀x ( Ax → Cx) , ∀x ( Bx → Cx) ├─ ∀x Cx.
c. ∀x ∀y (Ax → Bxy), ∃x Ax ├─ ∃x ∀y Bxy.
8. (10 points)
Consider the collection of those formulas from the propositional logic which
contain only the connective ∧ (that is: ¬, ∨, → and ↔ do not occur). Let p be a
given proposition letter.
Prove with the aid of formula induction that for all these formulas ϕ holds:
if p occurs in ϕ then it holds that ϕ ├─ p.
9. (10 points)
a. Given the model M = (D,I) consisting of the structure D = 〈R, <, 0, 1,*, +〉 and
the interpretation function I, so that I(R) = <, I(a) = 0, I(b) = 1, I(f) = + and
I(g) = *.
i. Show that M ╞═ ∃x ∀y R(x, f(g(y,y),b)) .
ii Given the formula ϕ = ∀y R(x, f(g(y,y),b)). For which look-up table(s) is this
formula true in M?
b. The formula (∃x ϕ ∧ ∃x ψ) → ∃x (ϕ ∧ ψ) is not universally valid.
Give formulas ϕ, ψ, a model and (if necessary) a look-up table for which
VM,b((∃x ϕ ∧ ∃x ψ) → ∃x (ϕ ∧ ψ) ) = 0.