Inference and Planning

Problem Solving

Two methods for solving problems

Proof Procedures

A logic consists of

Common Rules

AB¬AB

De Morgan’s Laws

AB¬(¬A¬B)
AB¬(¬A¬B)

Modus Ponens

((AB)A)B
Pasted image 20250416110842.png
Modus Ponens is a Tautology

Example

  • If it’s raining then the grass is wet
  • It’s raining
  • Therefore the grass is wet

Modus Tolens

((AB)¬B)¬A
Pasted image 20250416111532.png
Modus Tolens is a Tautology

Example

  • If it’s raining then the grass is wet
  • The grass is not wet
  • Therefore it is not raining

Logical Consequence

A statement, A, is a logical consequence of a set of statements {X}, if A is true in every model of {X}

If, for every set of truth assignments that hold for {X}, some other statement A is always true

  • Then this other statement is a logical consequence of {X}

Argument Validity

An argument is valid if any of the following is true:

Example

Pasted image 20250416113203.png
Every row is an interpretation:

  • An assignment of T/F to each proposition

Whenever P1 and P2 are true, D is also true

  • D is a logical consequence:
    • P1,P2D
An argument is valid if there is no situation in which the premises are all true, but the conclusions are false

  • If there is no model of the premises, the argument is valid

Deduction and Proof

Given a knowledge base, we want to prove things that are true

Proofs

Complete Knowledge

We assume a closed world

Bottom-Up Proof

AKA forward chaining

Pseudocode

Pasted image 20250416121000.png
Sound and Complete

Top-Down Proof

Start from query and work backwards

Pseudocode

Pasted image 20250416121308.png

Beyond Propositions: Individuals and Relations

Pasted image 20250416121559.png

Planning

Planning is deciding what to do based on an agent’s ability, its goal, and the state of the world

Actions

Example

Pasted image 20250416124332.png

Explicit State-Space Representation

Pasted image 20250416124352.png

Feature-Based Representation of Actions

Pasted image 20250416124638.png
For each action:

Planning

Given:

Forward Planning

Idea: search in the state-space graph

Example state-space graph

Pasted image 20250416125429.png

Regression Planning

Idea: search backwards from the goal description

Example

Pasted image 20250416130049.png