Institut für Informatik, Universität Freiburg


Exercises
Principles of Knowledge Representation and Reasoning
WS 2001/2002


Links

Main page

Contact: Dr. Jussi Rintanen

Support material

An tutorial on default logic by Grigoris Antoniou

Exercise assignments

Exercise 14 (6.2.2002, return on 13.2.2002)

exercise14.ps

Exercise 13

exercise13.ps

Exercise 12

exercise12.ps

Exercise 11

exercise11.ps

Exercise 10

exercise10.ps

Exercise 9

exercise9.ps

Exercise 8

exercise8.ps

Exercise 7

exercise7.ps

Exercise 6

exercise6.ps

Exercise 5

exercise5.ps

Exercise 4

exercise4.ps

Problem with Exercise 4.2: So, I was translating the relations to clausal form, and it was suddenly pointed out that the resulting clause set would not be Horn.

The Proposition on lecture slide 5 (Satisfiability over Partial Orders) makes a claim only about the satisfiability of pi(Theta) U ORD when pi(Theta) is Horn.

However, this proposition is Proposition 3 from B. Nebel, H.-J. Bürckert, Reasoning about Temporal Relations: A Maximal Tractable Subclass of Allen's Interval Algebra, Journal of the ACM, 42(1):43-66, 1995. (Available as ftp://ftp.informatik.uni-freiburg.de/documents/papers/ki/nebel-burckert-jacm95.ps.gz), and was only incidentally stated for the Horn class only, because the purpose of the discussion of the Proposition and pi(Theta) was to show that the problems can be solved in polynomial time by using unit resolution (which is complete only for Horn theories.) Proposition 3 does not restrict to Horn clauses.

So, yes, the students were right in that based on the lecture and the exercise statement, they could not know that deriving an inconsistency with resolution would really show the unsatisfiability of the interval calculus expressions.

However, I asked in the exercise to apply resolution to showing that pi(Theta) U ORD is unsatisfiable, and this can be done, and is correct as shown by Proposition 3 from Nebel and Bürckert's article. (Irrespective of whether the person doing this knows whether it is correct or not. :-) )

OK, I admit (= it is obvious) that it is more educational to solve the exercises knowing that the solution techniques needed for the exercise are correct.


Exercise 3

exercise3.ps

Exercise 2.1

Show with resolution that the following formula is not satisfiable.

(s V t)&(s -> p)&(t -> p)&(p <-> q)&(a -> -q)&(b -> -q)&(a V b)

Exercise 2.2

Consider the following rules. And the following facts. Formalize the above rules and facts in the first-order predicate logic with the 1-place predicates MAMMAL, PLATYPUS, HATCHESFROMEGG, AND LIVESIN. Notice that the first rule is not strictly true, because there are exceptions to it. There are the following alternative ways of expressing these exceptions. Show how the first rule would be formalized in each case.
  1. Explicitly encode the exceptions in the rule (Mammals, with the exception of ...., do not hatch from eggs.)
  2. Use the predicate ABNORMALMAMMAL (saying: Mammals, that are not abnormal, do not hatch from eggs), and then separately describe for the exceptional types of mammals that they are ABNORMALMAMMALs.
Optional: Download and compile the Otter resolution theorem prover from the Otter home page, and show the following as a refutation proof: If an animal does not live in New Zealand, then it is not animal A, B or C.

An example input to Otter is the following.

set(auto).

formula_list(usable).

all x (Jamaican(x) -> -European(x)).
all x (Italian(x) -> European(x)).

all x (-German(x) -> -(x=gerhard)).
exists x (Jamaican(x)).

% To show as a refutation proof that there is at least one non-Italian,
% we negate it.

-(exists x (-Italian(x))).

end_of_list.

Exercise 1.1

Give an example of an unsound -- but useful -- inference and reasons for withdrawing the conclusions of the inference.

Why is unsound inference in general useful? (Think about an intelligent robot, or a person, in the real world.) Why would restricting to sound inferences only be a very bad idea? Which inferences you usually do in your everyday life are logically sound?

Exercise 1.2

When do the results of logically sound inference and model-finding coincide? (I.e. what would be a sufficient property for a configuration or planning task so that you could logically infer what a solution is?)

Solution: Logical inference (whether a formula is a logical consequence) is used for deriving things that must hold. In configuration and planning tasks there are typically several configurations or plans that fulfill all the given constraints, and therefore typically none of the solutions are logical consequences of the constraints. These solutions can be found by identifying models of the set of constraints.

A special case in which model-finding and logical inference lead to the same results is when there is exactly one solution. By model-finding we get an assignment of truth-values to the propositions (e.g. A = true, B = true, C = false, D = true, E = false, ...) that satisfies our constraints X, and by testing logical consequence by some (sound and complete) inference method for every atomic proposition and its negation separately, we see that A, B, -C, D and -E are logical consequences of X.