Major Results: (Wrt Propositional Logic) • How to Reason Correctly. • How To

Major Results: (Wrt Propositional Logic) • How to Reason Correctly. • How To

Major results: (wrt propositional logic) ² How to reason correctly. ² How to reason efficiently. ² How to determine if a statement is true or false. Fuzzy logic deal with statements that are somewhat vague, such as: this paint is grey. Probability deals with statements that are possibly true, such as whether I will win the lottery next week. Propositional logic deals with concrete statements that are either true true or false. Predicate Logic (first order logic) allows statements to contain variables, such as if X is married to Y then Y is married to X. 1 We need formal definitions for: ² legal sentences or propositions (syntax) ² inference rules, for generated new sentence. (entailment) ² truth or validity. (semantics) Example Syntax: (x > y)&(y > z) ! (x > z) Interpretation: x = John’s age y= Mary’s age z= Tom’s age If John is older than Mary and Mary is older than Tom, then we can conclude John is older than Tom. (semantics) Conclusion is not approximately true or probably true, but absolutely true. 2 1 Propositional Logic Syntax: logical constants True and False are sentences. propositional symbols P,Q, R, etc are sentences These will either be true (t) or false (f) Balanced Parenthesis if S is a sentence, so is (S). logical operators or connectives : _; ^; »;;;; ); ::: Actually NAND (Shaeffer stroke) is the only connective that is needed. Sentences legal combinations of connectives and variables, i.e. propositional let- ters are sentences and if s1 and s2 are sentences so are » s1; (s1); s1 ) s2; Note: Instead of ) one can use _ and ^ since p ) q ,» p _ q Semantics: ² Each propositional variable can be either True or False. ² The truth or falsity of a sentence is defined compositionally. ² Truth tables define the semantics of the logical operations. ² A sentence is true if any assignment of the propositional variables yields true. This means that a formula with k variables will have 2k interpretations. 3 Rules of Inference These define derivability or provability, not truth. All of these rules are sound. ®)¯;¯ Modus Ponens ¯ And-Elimination ®1^:::^®n ®i And-Introduction ®1;®2;:::®n ®1^:::^®n Or-Introduction ®i ®1_:::_®n »»® Double-Negation Elimination ® ®_¯;»¯ Unit Resolution ® ®_¯;»¯_γ Resolution ®_γ Note: Many possible sets of axioms and inference rules exist, and this is just one of them. How do we know if these axioms are sound or complete? Are these easy to use? Not for most people. 4 2 Important Concepts ² A formula is satisfiable if it is true for some assignment of the propositional variables. E.G. (p_» q) ^ (» p _ q) is true if p=t and q=t. ² The assignment of either t or f to the variables is called an interpretation. An interpretation is also called a world Satifiable = true in some interpretation. ² A formula is true or valid if it is true in all interpretations. E.G. p_» p is always true. ² A formula is unsatisfiable if there is no interpretation in which it is true. E.G. p^ » p is unsatisfiable. ² A formula is provable if it follows from the axioms and rules of inference. The axioms and rules of inference define a logic. ² A logic is sound if every provable statement is true. ² A logic is complete if every true statement can be proven. ² A logic is decidable if an effective procedure exists to determine if any state- ment is true or false. ² Proposition logic is monotonic, i.e. if we add more sentences, then the old inferences are still valid. ² A Horn sentence has the form P1 ^ ::: ^ Pn ) Q where each Pi and Q is a non- negated atom. Horn sentences allow for computationally tractable inferences. 5 3 Drawing Conclusions Inference Rules: rules for producing new conclusions. Modus Ponens: p; p ) q ` q Abduction (one version): q; p ) q ` p Modus Ponens is sound while abduction is not. Resolution: (sound) p _ q; » p _ r ` q _ r 4 Theorems Theorems are sentences that are derived from the axioms and the rules of inference. If the rules of inferences are sound, then any theorem will be true. If the rules of inferences are complete, then any true statement can be proven. 6 5 Translating into Propositional Logic Building good computational models is difficult. We did this for the state-space paradigm, and we will do if for propositional and predicate logic. Example: If it rains, then the game will be cancelled. If the game is cancelled, then we will clean the house. If it rains, then we will clean the house. Is this a valid conclusion? Let p= it rains, q= game canceled, r= we clean house. Then the abstract reasoning schema is: If p then q If q then r If p then r Is this valid form of argument? How can we tell? Formally: p ) q; q ) r ` p ) r 7 6 Establishing Truth by Models A model is case. If a formula is true for every case, it is true. Example: Use models to prove that: p ) q; q ) r ` p ) r p q r » p » q » r » p _ q » q _ r » p _ r p t t t f f f t t t t t f f f t t f f £ t f t f t f f t t £ t f f f t t f t f p£ f t t t f f t t t f t f t f t t f t p£ f f t t t f t t t p f f f t t t t t t 7 Summary Propositional logic is sound (easy) and complete (difficult). Proposition logic is decidable, i.e. we can determine if any statement is either true or false. How? Use a truth table. Computationally, to determine a set of clauses is satisfiable is NP-hard, i.e. with our current knowledge this computation takes exponential time in the number of propositional variables. How much work is involved in setting up a truth table? 8 8 Limitations of Propositional Logic ² Can’t deal with uncertain information, e.g. ² There is an 80% chance of rain tomorrow. This will be covered in section on Expert Systems ² Can’t combine evidence, e.g. How would you represent the information and reasoning that allowed you to decide on a particular career, car, or school? ² Can’t express quantification, e.g. – Every person has a father. – Some students deserve better grades then others. ² Doesn’t deal with relations, e.g. If X is contained in Y, and Y is contained in Z then X is contained in Z or If X is married to Y, then Y is married to X. ² Can’t talk about itself, e.g. The relation “taller than” is transitive Goal: To write down in a precise way what we know. 9.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    9 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us