Unit Propagation

Lecture 7, DSCI 220, 2026W1

Announcements

  • EX1 opens tomorrow, Thu 9/24 through Sun 9/27. Self-scheduled in ORCA.
  • Practice problems are on PrairieLearn, ungraded, unlimited retries.
  • Office hours are now Tue 10:30–11:30, ICCS 233.

Where we left off

Conjunctive Normal Form

An AND of clauses. Every expression has one…

Expression Law
\(\neg(p \rightarrow q) \vee r\)

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.


Inference
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)\]

Expression Law
\(\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:

  1. Find a clause with exactly one literal. It must be true. Circle it.
  2. Cross out every clause that contains it — satisfied, gone.
  3. In every clause containing its negation, strike out that literal only.
  4. A clause that loses its last literal must be False–a contradiction.


Three ways to stop:

Stop Means
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?

Your ending What it proves
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