CSC266 · 2081 · 10 marks
What is Skolem constant? How is Skolemization done during resolution? Represent the following statements into FOPL. - All movies are not hit. - Sarangi is a movie. - All movies which have good script are hit. - Sarangi has a good script but Sarangi is sentimental. - There is a movie which is comedy.
What is Skolem constant? How is Skolemization done during resolution? Represent the following statements into FOPL. - All movies are not hit. - Sarangi is a movie. - All movies which have good script are hit. - Sarangi has a good script but Sarangi is sentimental. - There is a movie which is comedy.[10]
Quick answer
A Skolem constant is a special constant introduced during the process of Skolemization to eliminate existential quantifiers from a First Order Predicate Logic (FOPL) formula. When an existential quantifier appears in a formula without any enclosing universal quantifier, the existentially quantified variable is replaced by a unique new constant (called a Skolem constant) that represents the specific (but unnamed) individual whose existence is asserted.
Skolem Constant, Skolemization, and FOPL Representation
1. Skolem Constant
Example:
- Formula:
∃x P(x) - After Skolemization:
P(a)whereais a Skolem constant.
If the existential quantifier is within the scope of a universal quantifier, the existential variable is replaced by a Skolem function (not a constant) of the universally quantified variables.
Example:
- Formula:
∀x ∃y Loves(x, y) - After Skolemization:
∀x Loves(x, f(x))wheref(x)is a Skolem function.
2. Skolemization During Resolution
Skolemization is the process of removing existential quantifiers from a FOPL formula to prepare it for resolution. Resolution works on clausal form (CNF), and existential quantifiers must be eliminated before conversion to clause form.
Steps of Skolemization (as part of full conversion to clause form):
| Step | Operation |
|---|---|
| 1 | Eliminate implications and biconditionals |
| 2 | Move negations inward (using De Morgan's laws) |
| 3 | Standardize variables apart |
| 4 | Move quantifiers to the left (Prenex Normal Form) |
| 5 | Skolemize: eliminate existential quantifiers |
| 6 | Drop universal quantifiers |
| 7 | Convert to Conjunctive Normal Form (CNF) |
| 8 | Write as a set of clauses |
Rules of Skolemization:
-
Case 1: If
∃xappears outside the scope of any universal quantifier, replacexwith a Skolem constant (e.g.,a,b,c).∃x Movie(x)becomesMovie(SK1)whereSK1is a Skolem constant. -
Case 2: If
∃xappears within the scope of universal quantifiers∀y1, ∀y2, ..., replacexwith a Skolem function of those variables.∀x ∃y HasScript(x, y)becomes∀x HasScript(x, f(x))wheref(x)is a Skolem function.
3. Representation of Statements into FOPL
Predicates Used:
Movie(x): x is a movieHit(x): x is a hitGoodScript(x): x has a good scriptSentimental(x): x is sentimentalComedy(x): x is a comedy
Statement 1: "All movies are not hit."
Every x, if x is a movie, then x is not a hit.
$$\forall x ; Movie(x) \Rightarrow \neg Hit(x)$$
Statement 2: "Sarangi is a movie."
Sarangi is a specific individual (constant).
$$Movie(Sarangi)$$
Statement 3: "All movies which have good script are hit."
Every x, if x is a movie AND x has a good script, then x is a hit.
$$\forall x ; [Movie(x) \wedge GoodScript(x)] \Rightarrow Hit(x)$$
Statement 4: "Sarangi has a good script but Sarangi is sentimental."
Conjunction of two facts about the constant Sarangi.
$$GoodScript(Sarangi) \wedge Sentimental(Sarangi)$$
Statement 5: "There is a movie which is comedy."
There exists some x such that x is a movie and x is a comedy.
$$\exists x ; [Movie(x) \wedge Comedy(x)]$$
After Skolemization (since ∃x has no enclosing universal quantifier, replace x with Skolem constant SK1):
$$Movie(SK1) \wedge Comedy(SK1)$$
Summary Table
| Statement | FOPL Representation |
|---|---|
| All movies are not hit | ∀x Movie(x) ⇒ ¬Hit(x) |
| Sarangi is a movie | Movie(Sarangi) |
| All movies with good script are hit | ∀x [Movie(x) ∧ GoodScript(x)] ⇒ Hit(x) |
| Sarangi has good script but is sentimental | GoodScript(Sarangi) ∧ Sentimental(Sarangi) |
| There is a movie which is comedy | ∃x [Movie(x) ∧ Comedy(x)] |
Note: Statements 1 and 3 appear contradictory (all movies are not hit vs. movies with good script are hit). This is intentional in the problem, likely to test resolution-based contradiction detection. In resolution, we would derive a contradiction from
Movie(Sarangi),GoodScript(Sarangi), Statement 1, and Statement 3.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.