Lec 2
Lec 2
Propositional Logic
Semantics
Truth Assignments for propositional constants
Meaning of logical operators
Evaluation
Truth Assignments to values of compound sentences
Satisfaction
Values of compound sentences to truth assignments
Truth Tables
Propositional Languages
Negations:
¬raining
The argument of a negation is called the target.
Conjunctions:
(raining Ù snowing)
The arguments of a conjunction are called conjuncts.
Disjunctions:
(raining Ú snowing)
The arguments of a disjunction are called disjuncts.
Compound Sentences (part II)
Implications:
(raining Þ cloudy)
The left argument of an implication is the antecedent.
The right argument is the consequent.
Equivalences:
(cloudy Û raining)
Nested Compound Sentences
¬raining
(raining Ù snowing)
(raining Ú snowing)
(raining Þ cloudy)
(cloudy Û raining)
¬(raining Ù snowing)
((raining Ù snowing) Þ cloudy)
(cloudy Þ (raining Ù snowing))
((cloudy Ù wet) Û (raining Ú snowing))
(¬raining Þ (cloudy Þ snowing))
Parentheses Removal
(p Ù q) ® p Ù q
((p Ú q) Ù r) ® p Ú q Ù r
(p Ú (q Ù r)) ® p Ú q Ù r
Precedence
p Ù q Ù r ® ((p Ù q) Ù r)
p Ú q Ú r ® ((p Ú q) Ú r)
p Þ q Þ r ® (p Þ (q Þ r))
p Û q Û r ® (p Û (q Û r))
Natural Language Examples
Consider a propositional language with three proposition
constants—mushroom, purple, and poisonous—each
indicating the property suggested by its spelling. Using
these proposition constants, encode the following
English sentences as Propositional Logic sentences.
i = TFT
Sentential Interpretation
pi = T (p Ú q)i = T
qi = F (¬q Ú r)i = T
ri = T ((p Ú q) Ù (¬q Ú r))i = T
Negation:
Conjunction: Disjunction:
Implication:
Equivalence:
Evaluation
Interpretation i:
Compound Sentence
(p Ú q) Ù (¬q Ú r)
(T Ú F) Ù (¬F Ú T)
(T Ú F) Ù (T Ú T)
TÙT
T
Truth Tables
A truth table is a table of all possible interpretations
for the propositional constants in a language.
Evaluation:
Satisfaction:
Satisfaction
Method to find all propositional interpretations that
satisfy a given set of sentences:
(2) For each sentence in the set and each row in the truth
table, check whether the row satisfies the sentence. If
not, cross out the row.
qÞr
Satisfaction Example (continued)
qÞr
p ÞqÙr
Satisfaction Example (concluded)
qÞr
p ÞqÙr
¬r
EXAMPLE–NATURAL LANGUAGE