Complete Reference Guide for Knowledge-Based Agents
Atomic formulas representing basic propositions
Operators for combining formulas
| Connective | Symbol | Formula | Name |
|---|---|---|---|
| NOT | ¬ | ¬f |
Negation |
| AND | ∧ | f ∧ g |
Conjunction |
| OR | ∨ | f ∨ g |
Disjunction |
| IMPLIES | → | f → g |
Implication |
| IFF | ↔ | f ↔ g |
Biconditional |
A, ¬A, A ∧ B, (A ∨ B) → CA ¬B, A + B, → AA model w in propositional logic is an assignment of truth values to propositional symbols.
Model: A mathematical representation of a world - an assignment of truth values (0 or 1) to propositional symbols.
Relationship: Each model w corresponds to exactly one possible world, and vice versa.
Given: 3 propositional symbols: A, B, C
Number of possible models: 2³ = 8
General Rule: With n propositional symbols, there are 2ⁿ possible models.
| f | g | ¬f | f ∧ g | f ∨ g | f → g | f ↔ g |
|---|---|---|---|---|---|---|
| 0 | 0 | 1 | 0 | 0 | 1 | 1 |
| 0 | 1 | 1 | 0 | 1 | 1 | 0 |
| 1 | 0 | 0 | 0 | 1 | 0 | 0 |
| 1 | 1 | 0 | 1 | 1 | 1 | 1 |
Definition: The set of all models (worlds) that satisfy formula f.
Intuition: M(f) picks out all the possible worlds where formula f is true.
f = Rain ∨ WetM(f) includes all worlds/models where Rain=1 or Wet=1 or both.
These are worlds like:
Intuition: KB specifies constraints on the world.
M(KB) is the set of all possible worlds satisfying those constraints.
KB = {Rain, Rain → Wet}M(KB) = all worlds where both Rain and Wet are trueDefinition: M(f) ⊇ M(KB)
f adds no information (already known)
Rain ∧ Snow ⊨ Snow
Definition: M(KB) ∩ M(f) = ∅
f contradicts KB
Rain ∧ Snow¬Snow
Definition: ∅ ⊊ M(KB) ∩ M(f) ⊊ M(KB)
f adds non-trivial information
Rain and Snow
Purpose: Add new information
Responses:Purpose: Query for information
Responses:| Propositional Logic | ⇔ | CSP |
|---|---|---|
| Propositional symbol | ⇔ | Variable |
| Formula | ⇔ | Constraint |
| Model | ⇔ | Assignment |
"If p implies q and p is true, then q is true"
"If p implies q and q is false, then p is false"
"Nothing but the truth"
Meaning: Everything derived is true. If we can derive f using inference rules, then f must be entailed.
"The whole truth"
Meaning: All truths can be derived. If f is entailed, we can derive it using inference rules.
Glass = Set of true formulas {f : KB ⊨ f}
Water = Set of derived formulas {f : KB ⊢ f}
Check: M(Rain) ∩ M(Rain → Wet) ⊆ M(Wet)
Result: ✅ Yes, this is sound!
| Notation | Meaning | Description |
|---|---|---|
| World | Possible World | A complete possible configuration of reality |
w |
Model | Mathematical representation of a world; assignment of truth values to propositional symbols |
I(f, w) |
Interpretation | Returns 1 if world w satisfies formula f, 0 otherwise |
M(f) |
Models of f | Set of all possible worlds (models) that satisfy f |
M(KB) |
Models of KB | Set of all possible worlds consistent with the knowledge base |
KB ⊨ f |
Entailment | f is true in all possible worlds where KB is true |
KB ⊢ f |
Derivation | f can be derived from KB using inference rules |
SAT(KB) |
Satisfiability | KB has at least one satisfying world (model) |
The worlds satisfying KB are exactly those worlds that satisfy all formulas in KB
Worlds where both f and g are true
Worlds where at least one of f or g is true
Worlds where f is false