2081 2

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]

Artificial IntelligenceChapter 4: Knowledge RepresentationPredicate Logic

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) where a is 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)) where f(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):

StepOperation
1Eliminate implications and biconditionals
2Move negations inward (using De Morgan's laws)
3Standardize variables apart
4Move quantifiers to the left (Prenex Normal Form)
5Skolemize: eliminate existential quantifiers
6Drop universal quantifiers
7Convert to Conjunctive Normal Form (CNF)
8Write as a set of clauses

Rules of Skolemization:

  • Case 1: If ∃x appears outside the scope of any universal quantifier, replace x with a Skolem constant (e.g., a, b, c).

    ∃x Movie(x) becomes Movie(SK1) where SK1 is a Skolem constant.

  • Case 2: If ∃x appears within the scope of universal quantifiers ∀y1, ∀y2, ..., replace x with a Skolem function of those variables.

    ∀x ∃y HasScript(x, y) becomes ∀x HasScript(x, f(x)) where f(x) is a Skolem function.


3. Representation of Statements into FOPL

Predicates Used:

  • Movie(x) : x is a movie
  • Hit(x) : x is a hit
  • GoodScript(x) : x has a good script
  • Sentimental(x) : x is sentimental
  • Comedy(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

StatementFOPL Representation
All movies are not hit∀x Movie(x) ⇒ ¬Hit(x)
Sarangi is a movieMovie(Sarangi)
All movies with good script are hit∀x [Movie(x) ∧ GoodScript(x)] ⇒ Hit(x)
Sarangi has good script but is sentimentalGoodScript(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.