knowledge, entailment, inference, and models Flashcards
Knowledge base
a set of sentences in a formal language
knowledge-based agent
able to:
- represent states, actions, etc.
- incorporate new percepts
- Update internal representations of the world
- Deduce hidden properties of the world
- Deduce appropriate actions
model
m is a model of a sentence alpha if alpha is in m
- formally structured worlds with respect to which truths can be evaluated
- M(alpha) is the set of all models of alpha
so KB |- alpha iff M(KB) <= M(alpha)
entailment KB |- A
KB entails sentence A iff A is true in all worlds where KB is true
wumpus world KB
KB = wumpus-world rules + observations
inference ( KB |-i alpha )
KB |-i alpha = sentence alpha can be derived from KB by procedure i
- Inference is best used in first order logic which is expressive enough to say almost anything of interest, and for which there exists a sound and complete inference procedure
- the procedure will any question whose answer follows from what is known by the KB
inference soundness
i is sound if whenever KB |-i alpha, it is also true that KB |- alpha
inference completeness
i is complete if whenever KB |- alpha, it is also true that KB |-i alpha
validity
a sentence is valid if it is true in all models
KB |- alpha iff KB ==> alpha is valid
satisfiability
a sentence is satisfiable if it is true in some model
A sentence is unsatisfiable if it is true in no models
connected to inference via the following:
KB |- alpha iff (KB ^ not alpha) is unsatisfiable
proof methods
application of inference rules
model checking
application of inference rules
-Legitimate (sound) generation of new sentences from old
-proof = a sequence of inference rule applications.
can use inference rules as operators in a standard search algorithm
-typically require transformation of sentences into a normal form
model checking
- truth table enumeration (always exponential in n)
- improved backtracking, e.g., Davis–Putnam-Logemann-Loveland (DPLL)
- heuristic search in model space (sound but incomplete)
- -e.g., min-conflicts like hill-climbing algorithms
complementary literals
one is the negation of the other