• Keine Ergebnisse gefunden

Theory of Computer Science

N/A
N/A
Protected

Academic year: 2022

Aktie "Theory of Computer Science"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Theory of Computer Science

G. R¨oger

Spring Term 2019

University of Basel Computer Science

Exercise Sheet 3

Due: Wednesday, March 20, 2019 Exercise 3.1(Refutation Theorem; 1.5 Points)

Prove the refutation theorem, that is, show for any set of formulas KB and any formulaϕthat KB∪ {ϕ} is unsatisfiable if and only if KB|=¬ϕ.

Exercise 3.2(Correctness of the Resolution Calculus; 1.5 Points) Prove the correctness of the resolution rule

C1∪ {L}, C2∪ {¬L}

C1∪C2

, by showing that for all interpretations I with I |= W

`∈C1∪{L}` and I |= W

`∈C2∪{¬L}` it holds thatI|=W

`∈C1∪C2`.

Exercise 3.3(Resolution Calculus; 3 Points) Consider the following knowledge base

KB ={(A↔ ¬D),(¬A→(B∨C)),((A→E)∧(B∨C∨F)),(E→(F →(B∨C))), (C→G),(G→ ¬C)}.

Use the resolution calculus to show that KB|= (B∧ ¬C).

Exercise 3.4(Predicate Logic; 3 Points)

Consider the following predicate logic formulaϕwith the signatureh{x, y},{c},{f,g},{P}i.

ϕ= (¬P(c)∧ ∀x∃y((f(y) = g(x))∧P(y))) Specify a model I of ϕ with I =

U,·I

and U = {u1, u2, u3}. Prove thatI |= ϕ. Why is no variable assignmentαrequired to specify a model ofϕ?

Exercise 3.5(Predicate logic; 1 Point)

Consider the formulaϕover a signature with predicate symbols P (1-ary), Q (2-ary) and R (3-ary), the 1-ary function symbol f, the constant symbol c and the variable symbolsx, yand z.

ϕ= (∀x∃y(P(z)→Q(y, x))∨ ¬∃yR(c, x,f(y)))

Mark all occurrences of free variables in ϕ. Additionaly specify the set of free variables of ϕ (without proof).

Referenzen

ÄHNLICHE DOKUMENTE

If you need a considerably larger amount of steps, rethink your solution and try to find an easier proof.. The solution of part (b) may help you identify the requirements

(a) Transform the following formula into CNF by applying the equivalence rules shown in

Which of the following expressions are syntactically correct formulas or terms for the following signature S. Analyse also all subformulas and

Theory of Computer

A formal grammar is a 4-tuple G = hΣ, V, P, Si, remember to define all components of this tuple.. Of what type(s) is your grammar in the

Theory of Computer ScienceG. It is not

(b) Specify a deterministic finite automaton that accepts the language of all words over Σ with an even number of bs.

University of Basel Computer Science. Exercise