Back to Inference
Where we started: Given statements (premises), a conclusion, and ten(ish) rules. Pick a rule, pick what to apply it to, repeat until conclusion.
- \(p \rightarrow q\)
- \(p\)
- \(q\)
So why is that hard to hand to a machine?
________________________________________
With CNF we only need ELIM…
Proving by refuting
To show a conclusion follows, show that denying it is impossible.
| the conclusion follows from the premises |
|
| premises \(\rightarrow\) conclusion is a __________ |
|
| \(\neg(\)premises \(\rightarrow\) conclusion\()\) is a __________ |
|
| premises \(\wedge\ \neg\)conclusion is __________ |
|
Negating the Whole Thing
Say we start with an argument like this:
\[\neg\big((A \wedge B \wedge C) \rightarrow D\big)\]
| \(\neg\big(\neg(A \wedge B \wedge C) \vee D\big)\) |
|
|
|
|
|
So the premises survive untouched and only the conclusion flips.
One Rule, Repeated
You know \((X)\). You also have \((\neg X \vee Y)\).
\(\neg X\) is false, so it cannot be what makes that clause true. Strike it.
What is left must be true: ______
The Loop
Repeat until you cannot:
- Find a clause with exactly one literal. It must be true. Circle it.
- Cross out every clause that contains it — satisfied, gone.
- In every clause containing its negation, strike out that literal only.
- A clause that loses its last literal must be False–a contradiction.
Three ways to stop:
| you reach False |
the clauses contradict — the conclusion follows!! |
| no clauses left |
all variables assigned — conclusion does not follow |
| clauses remain, none a literal |
nothing more is forced |
Your Turn
Every group has a different set. Annotate the sheet.
Answer two questions:
- What can you conclude?
- How do you know you are finished?
What Did You Get?
| False |
|
| no clauses left |
|
| stalled |
|
When Nothing Is Forced
\[(A\vee B)\ \wedge\ (A \vee \neg B)\ \wedge\ (\neg A \vee B)\ \wedge\ (\neg A \vee \neg B)\]
No clause has a single literal. The loop cannot even start.
And yet: is there any assignment that satisfies all four? ______
Words and Ideas
Refutation
Unit clause, unit propagation
The empty clause contradiction
Satisfiable, unsatisfiable