core Estimated learning time: 5 h

4.14 Logical agents and propositional logic

You can write a world in propositional logic, decide entailment by model checking and by resolution, and say what a knowledge base can and cannot conclude.

Before:01a. Linear Algebra01b. Calculus and Optimisation01c. Probability01d. Statistics and Inference02. Python — Basics to Advanced

This is the representation the symbolic half of the field is built on, and the one the semantic networks in this module are an informal version of. A knowledge base holds sentences, an inference procedure derives new ones, and the two properties that matter are soundness and completeness. The Wumpus world is small enough to work by hand and rich enough that the agent genuinely deduces where it is safe to walk.

Work through these

  • Separate a knowledge base from the inference procedure that reads it

    One part holds what is known, the other derives what follows. Keeping them apart is what lets the same facts be reused by different reasoning methods, and it is the idea expert systems are built on.

  • Define entailment, and distinguish it from implication and from provability

    Entailment is a relation between meanings: every world where the knowledge holds is a world where the conclusion holds. Implication is a connective inside a sentence, and provability is what one procedure can reach.

  • Decide entailment by enumerating models

    Listing every assignment of true and false and checking the ones where the knowledge holds. It is correct, it is exponential, and it is the baseline every faster method is measured against.

  • Convert sentences to conjunctive normal form and apply resolution

    Rewriting everything as a conjunction of clauses so that a single inference rule can do all the work. Resolution is complete for propositional logic, which is why the conversion is worth the effort.

  • State soundness and completeness, and say why an agent needs both

    Soundness means nothing false is derived; completeness means nothing true is missed. An unsound agent acts on nonsense and an incomplete one walks into danger it had the facts to avoid.

  • Work the Wumpus world: deduce which squares are safe

    A small grid where percepts about breeze and stench let an agent prove where it may step. It is the example that shows deduction doing something an agent could not do by pattern matching.

Sign in to keep your progress.

Free resources

Links last checked 29 Aug 2026.

Stuck here?

Ask a mentor. A real person answers, and they can see exactly which topic you're on. Usually within a couple of working days.

Checking your session…

Topics shown in module order.