































































Étudies grâce aux nombreuses ressources disponibles sur Docsity
Gagnz des points en aidant d'autres étudiants ou achete-les avec un plan Premium
Cette page n'est pas visible dans l'aperçu
Ne manques pas les parties importantes!
































































2.0 Introduction 2.1 The Propositional Calculus 2.2 The Predicate Calculus 2.3 Using Inference Rules to Produce Predicate Calculus Expressions 2.4 Application: A Logic- Based Financial Advisor 2.5 Epilogue and References 2.6 Exercises Additional references for the slides: Robert Wilensky’s CS188 slides: www.cs.berkeley.edu/%7wilensky/cs188/lectures/index.html
Given: “The red block is above the blue block” “The green block is above the red block” Infer: “The green block is above the blue block” “The blocks form a tower”
Given: If it is sunny today, then the sun shines on the screen. If the sun shines on the screen, the blinds are brought down. The blinds are not down. Find out: Is it sunny today?
The symbols of propositional calculus are the propositional symbols: P, Q, R, S, … the truth symbols: true, false and connectives: , , , ,
Every propositional symbol and truth symbol is a sentence. Examples: true, P, Q, R. The negation of a sentence is a sentence. Examples: P, false. The conjunction , or and , of two sentences is a sentence. Example: P P
An interpretation of a set of propositions is the assignment of a truth value, either T or F to each propositional symbol. The symbol true is always assigned T, and the symbol false is assigned F. The truth assignment of negation , P, where P is any propositional symbol, is F if the assignment to P is T, and is T is the assignment to P is F. The truth assignment of conjunction , , is T only when both conjuncts have truth value T; otherwise it is F.
The truth assignment of disjunction , , is F only when both disjuncts have truth value F; otherwise it is T. The truth assignment of implication , , is F only when the premise or symbol before the implication is T and the truth value of the consequent or symbol after the implication F; otherwise it is T. The truth assignment of equivalence , , is T only when both expressions have the same truth assignment for all possible interpretations; otherwise it is F.
P Q (^) PQ T T T T F F T T F T F F
Variables Premises Trial Conclusions P Q R (^) PQ QR R P (^) P T T T T T F T F T T F T F T T F T F T F T F T F T F F F T T T F F T T T T F F T F T F T F T F T F F T T T F F T F F F T T T F T
If it is sunny today, then the sun shines on the screen. If the sun shines on the screen, the blinds are brought down. The blinds are not down. Is it sunny today?
If it is sunny on a particular day, then the sun shines on the screen. If the sun shines on the screen on a particular day, the blinds are brought down. The blinds are not down today. Is it sunny today?