CSC266 · 2080 · 10 marks
Write the rules to convert statements in predicate logic into CNF form. Convert the following sentences into FOPL. All students of BSC CSIT are intelligent person. All friends of intelligent person are smart. Laxmi is a friend of Rojina. Rojina is smart. All beautiful students are girl. Laxmi is bea
Write the rules to convert statements in predicate logic into CNF form. Convert the following sentences into FOPL. All students of BSC CSIT are intelligent person. All friends of intelligent person are smart. Laxmi is a friend of Rojina. Rojina is smart. All beautiful students are girl. Laxmi is beautiful. Using resolution algorithm infer that 'Laxmi is smart'.[10]
Converting Statements to CNF and Resolution in FOPL
Part 1: Rules to Convert FOPL into CNF
- Eliminate implications and biconditionals: replace $P \to Q$ with $\neg P \lor Q$, and $P \leftrightarrow Q$ with $(\neg P \lor Q) \land (\neg Q \lor P)$.
- Move negation inward (De Morgan / quantifier duals):
- $\neg(P \lor Q) \equiv \neg P \land \neg Q$
- $\neg(P \land Q) \equiv \neg P \lor \neg Q$
- $\neg \forall x,P(x) \equiv \exists x,\neg P(x)$
- $\neg \exists x,P(x) \equiv \forall x,\neg P(x)$
- $\neg\neg P \equiv P$
- Standardize variables apart: rename so each quantifier binds a unique variable.
- Move quantifiers to front (prenex form).
- Skolemize: replace existential variables with Skolem constants (no enclosing $\forall$) or Skolem functions of the enclosing universal variables.
- Drop universal quantifiers (remaining variables are implicitly universal).
- Distribute $\lor$ over $\land$: $P \lor (Q \land R) \equiv (P \lor Q) \land (P \lor R)$.
- Write as a set of clauses (each conjunct is a clause), renaming variables apart across clauses.
Part 2: FOPL Representation
Predicates:
- $CSIT(x)$: $x$ is a student of BSc CSIT
- $Intel(x)$: $x$ is an intelligent person
- $Friend(x,y)$: $x$ is a friend of $y$
- $Smart(x)$: $x$ is smart
- $Beautiful(x)$: $x$ is beautiful
- $Girl(x)$: $x$ is a girl
| Sentence | FOPL |
|---|---|
| All students of BSc CSIT are intelligent | $\forall x,(CSIT(x) \to Intel(x))$ |
| All friends of an intelligent person are smart | $\forall x,\forall y,((Intel(y) \land Friend(x,y)) \to Smart(x))$ |
| Laxmi is a friend of Rojina | $Friend(Laxmi, Rojina)$ |
| Rojina is smart | $Smart(Rojina)$ |
| All beautiful students are girls | $\forall x,((Beautiful(x) \land CSIT(x)) \to Girl(x))$ |
| Laxmi is beautiful | $Beautiful(Laxmi)$ |
Important data note. The conclusion "Laxmi is smart" uses the rule "all friends of an intelligent person are smart" plus "Laxmi is a friend of Rojina." So we need $Rojina$ to be an intelligent person. This requires $Rojina$ to be a BSc CSIT student, i.e. $CSIT(Rojina)$. This fact is NOT stated in the question. The listed facts ($Smart(Rojina)$, $Beautiful(Laxmi)$, "beautiful students are girls") do not lead to $Smart(Laxmi)$. As written, the proof is not derivable.
To make the intended chain work, the standard exam assumption is that Rojina is a BSc CSIT student ($CSIT(Rojina)$). I proceed with that assumption stated explicitly; without it, the inference fails.
Part 3: Convert to CNF (Clause Form)
- C1: $\neg CSIT(x) \lor Intel(x)$ (from sentence 1)
- C2: $\neg Intel(y) \lor \neg Friend(x,y) \lor Smart(x)$ (from sentence 2)
- C3: $Friend(Laxmi, Rojina)$
- C4: $Smart(Rojina)$
- C5: $\neg Beautiful(z) \lor \neg CSIT(z) \lor Girl(z)$ (from sentence 5)
- C6: $Beautiful(Laxmi)$
- C7 (assumed): $CSIT(Rojina)$
Part 4: Resolution to Infer "Laxmi is Smart"
Negated goal (C8): $\neg Smart(Laxmi)$
Step 1. Resolve C2 with C8, unifier ${x/Laxmi}$: $$\neg Intel(y) \lor \neg Friend(Laxmi, y) \lor Smart(Laxmi) ;\text{ and }; \neg Smart(Laxmi)$$ $$\Rightarrow \textbf{C9: } \neg Intel(y) \lor \neg Friend(Laxmi, y)$$
Step 2. Resolve C9 with C3 $Friend(Laxmi, Rojina)$, unifier ${y/Rojina}$: $$\Rightarrow \textbf{C10: } \neg Intel(Rojina)$$
Step 3. Resolve C10 with C1 $\neg CSIT(x) \lor Intel(x)$, unifier ${x/Rojina}$: $$\Rightarrow \textbf{C11: } \neg CSIT(Rojina)$$
Step 4. Resolve C11 with C7 $CSIT(Rojina)$: $$\Rightarrow \textbf{C12: } \square ;\text{(empty clause)}$$
Since we derived the empty clause (contradiction), the negated goal is false, so the original goal holds: $$\boxed{Smart(Laxmi) \text{ is TRUE}}$$
Caveat: This proof depends on the added premise $CSIT(Rojina)$. With only the six sentences exactly as given (no $CSIT(Rojina)$), the empty clause cannot be derived and "Laxmi is smart" is not provable. The clauses C5, C6 (beauty/girl) are irrelevant to this conclusion.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.