Reasoning is the process of:

At the simplest level:

Input → Thinking → Conclusion

Example:

It is raining.
I will get wet outside.
Therefore:
Take an umbrella.

1. Basic Types of Reasoning

A. Deductive Reasoning

Rule → specific conclusion

Example:

All birds have wings.
A sparrow is a bird.
Therefore:
A sparrow has wings.

If rules are true:

Very logical and strict.

Used in:


B. Inductive Reasoning

Examples → general rule

Example:

The sun rose yesterday.
The sun rose today.
Probably:
The sun rises every day.

Conclusion is probable, not guaranteed.

Used in:


C. Abductive Reasoning

Best explanation from incomplete evidence.

Example:

The ground is wet.
Best explanation:
It probably rained.

Could be wrong:

But it is the most likely explanation.

Used in:


2. What is Planning?

Planning is reasoning about the future.

You start with:

Current state → Goal → Steps

Example:

Goal: “Make tea”

Plan:

1. Boil water
2. Put tea bag in cup
3. Pour water
4. Wait
5. Drink

Planning = breaking a goal into ordered actions.


3. Basic Planning Structure

Very simple planning system:

Goal
↓
Requirements
↓
Actions
↓
Order
↓
Result

Example 1 — Going to School

Goal:

Reach school

Requirements:

- clothes
- backpack
- transportation

Actions:

1. Wake up
2. Get dressed
3. Eat breakfast
4. Leave house
5. Travel

Order matters.

You cannot:

This introduces dependency reasoning.


4. State-Based Thinking

Planning is often based on states.

Example:

Door = closed

Action:

open door

New state:

Door = open

AI planners often think like this:

Current state
→ apply action
→ new state
→ repeat

5. Preconditions and Effects

Every action has:

Example:

Action: “Drive car”

Preconditions:

- have key
- have fuel
- inside car

Effects:

- reach destination

This is the foundation of classical AI planning.


6. Simple Planning Algorithm

Very basic reasoning loop:

1. Define goal
2. Check current state
3. Find missing requirements
4. Choose action
5. Apply action
6. Repeat until goal reached

Example — Hungry

Goal:

Eat food

Current state:

No food available

Reasoning:

Need food
→ go to store
→ buy food
→ cook food
→ eat

This is chain reasoning.


7. Decomposition

Large problems become smaller problems.

Example:

Goal:

Build a website

Subgoals:

- design UI
- create backend
- setup database
- deploy server

Each subgoal has its own plan.

This is hierarchical planning.


8. Means-End Analysis

Compare:

Current state
vs
Goal state

Then reduce the difference.

Example:

Current:

I am in Missouri

Goal:

Be in New York

Difference:

location mismatch

Action:

travel

Repeat until difference disappears.


9. Search-Based Reasoning

Planning is often searching through possibilities.

Example maze:

Start
 ├── Left
 ├── Right
 └── Forward

AI evaluates paths until goal found.

Common strategies:


10. Heuristics

Heuristic = useful shortcut.

Example:

When finding a route:

Move toward destination

Not always perfect. But faster.

Humans use heuristics constantly.


11. Reactive vs Deliberate Reasoning

Reactive

Immediate response.

Example:

Touch fire
→ pull hand away

Fast. No deep planning.


Deliberate

Thinking ahead.

Example:

If I leave now,
I can avoid traffic.

Slower but smarter.


12. Symbolic Reasoning

Uses explicit symbols and rules.

Example:

IF hungry
AND food exists
THEN eat

Classic AI.

Very interpretable.


13. Probabilistic Reasoning

Handles uncertainty.

Example:

Clouds are dark
→ 80% chance of rain

Used in:


14. Commonsense Reasoning

Uses everyday knowledge.

Example:

Ice melts in heat

Humans do this naturally.

AI struggles with this more than expected.


15. Causal Reasoning

Understands cause and effect.

Example:

Push glass
→ glass falls
→ glass breaks

Not just correlation.

Very important for intelligent systems.


16. Temporal Reasoning

Reasoning about time.

Example:

Breakfast happens before lunch.

Needed for:


17. Simple AI Planning Example

Robot task:

Goal:

Cup on table

Current state:

Cup in kitchen
Robot in living room

Plan:

1. Move to kitchen
2. Pick up cup
3. Move to table
4. Put cup down

Each action changes world state.


18. Reasoning Pipeline in AI

Simple architecture:

Input
↓
Perception
↓
Knowledge
↓
Reasoning
↓
Planning
↓
Action

Example:

Camera sees obstacle
↓
Reasoning detects danger
↓
Planning computes new path
↓
Robot turns left

19. Human-Like Planning Pattern

Humans usually:

1. Define goal
2. Estimate difficulty
3. Break into tasks
4. Prioritize
5. Execute
6. Monitor progress
7. Adjust

Good planning is iterative.


20. Simplest Mental Model

You can think of reasoning as:

Facts + Rules + Goals
→ Decisions

And planning as:

Current State + Goal
→ Sequence of Actions