Logic and Propositional Logic
Logic and Propositional Logic
Propositional Logic
Logic
• Knowledge bases consist of sentences.
• The semantics defines the truth of each sentence with respect to each
possible world.
• For example, the semantics for arithmetic specifies that the sentence
“x + y =4” is true in a world where x is 2 and y is 2, but false in a
world where x is 1 and y is 1.
• Each such symbol stands for a proposition that can be true or false.
• We use symbols that start with an uppercase letter and may contain other
letters or subscripts,
for example: P, Q, R, W1,3 and North.
Syntax
• The names are arbitrary but are often chosen to have some mnemonic
value—we use W1,3 to stand for the proposition that the wumpus is in
[1,3].
(Remember that symbols such as W1,3 are atomic, i.e., W,1,and 3 are
not meaningful parts of the symbol.)
• There are two proposition symbols with fixed meanings: True is the
always-true proposition and False is the always-false proposition.
• For example, if the sentences in the knowledge base make use of the
propositional symbol then one possible model is
Semantics
• The semantics for propositional logic must specify how to compute the
truth value of any sentence, given a model.
• All sentences are constructed from atomic sentences and the five
connectives.