• Keine Ergebnisse gefunden

SS 2013 June 5th, 2013 In-class Exercises to the Lecture Logics Sheet 4 Jun.-Prof. Dr. Roland Meyer Discussion on June 6th/7th, 2013

N/A
N/A
Protected

Academic year: 2021

Aktie "SS 2013 June 5th, 2013 In-class Exercises to the Lecture Logics Sheet 4 Jun.-Prof. Dr. Roland Meyer Discussion on June 6th/7th, 2013"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

SS 2013 June 5th, 2013 In-class Exercises to the Lecture Logics

Sheet 4

Jun.-Prof. Dr. Roland Meyer Discussion on June 6th/7th, 2013 Exercise 4.1 [Resolution]

Prove by resolution that the following formula is unsatisfiable:

p p _ s q ^ p p _ q _ r q ^ p r _ q _ s q ^ p q _ s q ^ p q _ s q ^ p q _ s q

Exercise 4.2 [Formulae in 2CNF]

A formula is in 2CNF if it is of the form C

1

^ ^ C

n

, where each C

i

is a clause with at most two literals. Devise a method to check satisfiability for such formulae that runs in polynomial time.

Exercise 4.3 [Complete sets of connectives]

a) Prove that for any formula A P F pt_uq , we have ϕ p A q 0, where ϕ is the valuation with ϕ p p q 0 for each atomic formula p.

b) Show that t_u is not a complete set of connectives.

Exercise 4.4 [Predicate Logic]

Suppose the signature S contains the predicates p

IsFish

and p

CanSwim

. Let A

@ x p p

CanSwim

p x q Ñ p

IsFish

p x qq .

a) Present a structure M over the signature S with M ( A.

b) Present a structure M pD, I q over the signature S with M ( A, where D

t Duck, Herring, Carp u .

Referenzen

ÄHNLICHE DOKUMENTE

Suppose A 1 is formula in predicate logic that is obtained from a formula A in proposi- tional logic by replacing each variable with an atomic formula in predicate logic. Here,

A context-free grammar is called linear if in each rule, the right-hand side contains at most one occurrence of a nonterminal symbol.. Exercise

Hinweis: Sie haben also gezeigt, dass Vollständigkeit einer Theorie bedeutet, dass sich diese nicht auf sich widersprechende Weisen konsistent

Note: Hence, you have shown that completeness means that the theory cannot be extended consistently in two ways that contradict

b) In Exercise 1.3 you saw that it is possible to construct an equivalent formula in DNF for any given formula. Explain why the following is not an efficient algorithm for

Mai 2012 In-class Exercises to the Lecture Logics.

[r]

Smullyan’s ball game is played by one player according to the following rules: There is a container that has capacity for an unlimited number of balls.. Furthermore, there is