Horn Formulas and the Production Retrieval Problem
[14/100%]Prove that every set of Horn formulas has a model, that is, an interpretation in which all of them are true.
Prove that if a CNF, in each elementary conjunction, contains exactly one variable without negation, then it is equivalent to a conjunction of Horn formulas.
Let be interpretations. Call their intersection the interpretation such that for any variable , if and only if for all . Prove that if a Horn formula has models , then their intersection is also a model of it.
Prove that a formula is equivalent to a conjunction of Horn formulas if and only if its abridged CNF contains, in each elementary disjunction, exactly one variable without negation.
Prove that the sequence of processes in the proof of theorem 37 on p. 121 is correctly defined, that is, all the input products of each process in this sequence are available before it is started.
Recall the construction from that proof. Suppose . The sequence , together with sets of products obtainable from using , is built step by step:
-
Step : , .
-
Step : , .
-
Step : given and , let , , and (processes within taken in an arbitrary order). The procedure stops, setting , once or .
Prove theorem 38 on p. 124.
Theorem 38: The algorithm Closure returns the set , and the algorithm ForwardWave returns "yes" if and only if .
Hint. Let be the value of after iterations of the main loop of the algorithm Closure in lines . Show that for every product that can be obtained from by a chain of processes of length or less, belongs to .
The algorithm ForwardWave allows answering the question of whether it is possible to produce from the input products using the processes , but it does not build a chain of processes leading to . Modify the algorithm Closure so that from its result, for any product , a chain of processes leading to can be constructed.
Call a process a compound technological process if, from a set of input products , it simultaneously produces some set of products (rather than a single product ). Prove that a compound technological process corresponds to a conjunction of Horn formulas.
Generalize the algorithm Closure so that it constructs the closure of with respect to a system of compound technological processes .
Determine which chain of processes in example 25 on the preceding page leads to obtaining .
Example 25: , , and the set of processes consists of the following six processes:
Using the algorithm Closure, compute the closure for the set of input products and the system of technological processes :
Determine which chain of processes leads to obtaining .
Prove theorem 39 on p. 127.
Theorem 39: The algorithm OptClosure constructs the closure .
Hint. Let be the value of the value of , and the value of after iterations of the main loop of the algorithm OptClosure in lines . Show that
for every product that can be obtained from by a chain of processes of length at most , holds;
the exit condition of the main loop holds after the -th iteration if and only if .
Modify the algorithm OptClosure so that from its result, for any product , a chain of processes leading to can be constructed.
Using the algorithm OptClosure, compute the closure for the set of input attributes and the following system of dependencies :
Determine which chain of processes leads to obtaining .