Logic for AI Flashcards
atomic sentences
represented by Capitalized strings, allowing subscripts
knowledge base
a collection of sentences that the agent knows are true in a formal language
What is the KB typically initialized with?
sentences about the rules about the “physics” of the world
What does the TELL operation do?
adds new sentences to the KB
What does the ASK operation do?
determine if a sentence can be deduced from what is already in the KB
formal language
has atomic variables and connectors
possible formal languages
- propositional logic
- algebra
possible world
an assignment of a value to every atomic variable mentioned anywhere in the KB
model
an assignment of values to only the variables in some sentence alpha
M(alpha)
set of all models of alpha
real world
one of the models in the KB but we don’t know which one
how can we know whether alpha is true in the real world, when there are multiple possibilities for the real world?
when alpha is True in all of them
entailment
sentence beta entails sentence alpha iff every model of beta is also a model of alpha
what does a correct inference algorithm do?
says yes iff the answer really is yes
soundness
we started with all the queries to which the inference algorithm says yes, and we checked each one and the answer for all of them really was yes
completeness
we started with all the queries that we know the answer should be yes. then we apply inference algorithm to all of them, and every one is a yes