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.
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:
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:
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:
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.
Very simple planning system:
Goal
↓
Requirements
↓
Actions
↓
Order
↓
Result
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.
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
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.
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
Goal:
Eat food
Current state:
No food available
Reasoning:
Need food
→ go to store
→ buy food
→ cook food
→ eat
This is chain reasoning.
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.
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.
Planning is often searching through possibilities.
Example maze:
Start
├── Left
├── Right
└── Forward
AI evaluates paths until goal found.
Common strategies:
Heuristic = useful shortcut.
Example:
When finding a route:
Move toward destination
Not always perfect. But faster.
Humans use heuristics constantly.
Immediate response.
Example:
Touch fire
→ pull hand away
Fast. No deep planning.
Thinking ahead.
Example:
If I leave now,
I can avoid traffic.
Slower but smarter.
Uses explicit symbols and rules.
Example:
IF hungry
AND food exists
THEN eat
Classic AI.
Very interpretable.
Handles uncertainty.
Example:
Clouds are dark
→ 80% chance of rain
Used in:
Uses everyday knowledge.
Example:
Ice melts in heat
Humans do this naturally.
AI struggles with this more than expected.
Understands cause and effect.
Example:
Push glass
→ glass falls
→ glass breaks
Not just correlation.
Very important for intelligent systems.
Reasoning about time.
Example:
Breakfast happens before lunch.
Needed for:
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.
Simple architecture:
Input
↓
Perception
↓
Knowledge
↓
Reasoning
↓
Planning
↓
Action
Example:
Camera sees obstacle
↓
Reasoning detects danger
↓
Planning computes new path
↓
Robot turns left
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.
You can think of reasoning as:
Facts + Rules + Goals
→ Decisions
And planning as:
Current State + Goal
→ Sequence of Actions