Deduction In addition to being able to represent facts, or real- world statements, as formulas, we want to be able to manipulate facts, e.g., derive new.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

1 Section 1.5 Rules of Inference. 2 Definitions Theorem: a statement that can be shown to be true Proof: demonstration of truth of theorem –consists of.
Introduction to Theorem Proving
1 Logic Logic in general is a subfield of philosophy and its development is credited to ancient Greeks. Symbolic or mathematical logic is used in AI. In.
Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
Logic Use mathematical deduction to derive new knowledge.
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
1 Introduction to Abstract Mathematics Valid AND Invalid Arguments 2.3 Instructor: Hayk Melikya
Logic.
Logic Concepts Lecture Module 11.
Valid Arguments An argument is a sequence of propositions. All but the final proposition are called premises. The last statement is the conclusion. The.
CS128 – Discrete Mathematics for Computer Science
Logic 3 Tautological Implications and Tautological Equivalences
Logic and Proof. Argument An argument is a sequence of statements. All statements but the first one are called assumptions or hypothesis. The final statement.
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
Knoweldge Representation & Reasoning
Alpha: Symbolization and Inference Bram van Heuveln Minds and Machines Lab RPI.
Proof by Deduction. Deductions and Formal Proofs A deduction is a sequence of logic statements, each of which is known or assumed to be true A formal.
EE1J2 – Discrete Maths Lecture 5 Analysis of arguments (continued) More example proofs Formalisation of arguments in natural language Proof by contradiction.
Logical and Rule-Based Reasoning Part I. Logical Models and Reasoning Big Question: Do people think logically?
EE1J2 – Discrete Maths Lecture 4 Analysis of arguments Logical consequence Rules of deduction Rules of equivalence Formal proof of arguments See: Anderson,
Discrete Mathematics and its Applications
Fall 2002CMSC Discrete Structures1 Let’s proceed to… Mathematical Reasoning.
Inference is a process of building a proof of a sentence, or put it differently inference is an implementation of the entailment relation between sentences.
Deduction, Proofs, and Inference Rules. Let’s Review What we Know Take a look at your handout and see if you have any questions You should know how to.
March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 1Arguments Just like a rule of inference, an argument consists of one or more.
Discrete Structures (DS)
1 Knowledge Representation. 2 Definitions Knowledge Base Knowledge Base A set of representations of facts about the world. A set of representations of.
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
Existential Graphs Intermediate Logic. Existential Graphs A graphical logic system developed by C.S. Peirce almost 100 years ago. Peirce studied semiotics:
Natural Deduction CS 270 Math Foundations of CS Jeremy Johnson.
INTRODUCTION TO LOGIC Jennifer Wang Fall 2009 Midterm Review Quiz Game.
1 CMSC 250 Discrete Structures CMSC 250 Lecture 1.
1 Introduction to Abstract Mathematics Expressions (Propositional formulas or forms) Instructor: Hayk Melikya
CS6133 Software Specification and Verification
CSci 2011 Discrete Mathematics Lecture 4 CSci 2011.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
Outline Logic Propositional Logic Well formed formula Truth table
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
Today’s Topics Argument forms and rules (review)
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
1 Propositional Proofs 1. Problem 2 Deduction In deduction, the conclusion is true whenever the premises are true.  Premise: p Conclusion: (p ∨ q) 
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
CS 344 Artificial Intelligence By Prof: Pushpak Bhattacharya Class on 12/Feb/2007.
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
Sound Arguments and Derivations. Topics Sound Arguments Derivations Proofs –Inference rules –Deduction.
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 4- Logic.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
March 23 rd. Four Additional Rules of Inference  Constructive Dilemma (CD): (p  q) (r  s) p v r q v s.
Knowledge Representation and Reasoning
Discrete Mathematics Logic.
Proof Techniques.
Information Technology Department
7.1 Rules of Implication I Natural Deduction is a method for deriving the conclusion of valid arguments expressed in the symbolism of propositional logic.
CS201: Data Structures and Discrete Mathematics I
Mathematical Reasoning
CS 270 Math Foundations of CS
CS 220: Discrete Structures and their Applications
Applied Discrete Mathematics Week 1: Logic
Propositional Logic.
Back to “Serious” Topics…
The Method of Deduction
Computer Security: Art and Science, 2nd Edition
Discrete Mathematics Logic.
CSNB234 ARTIFICIAL INTELLIGENCE
Foundations of Discrete Mathematics
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
Mathematical Reasoning
Logical and Rule-Based Reasoning Part I
CS201: Data Structures and Discrete Mathematics I
Presentation transcript:

Deduction In addition to being able to represent facts, or real- world statements, as formulas, we want to be able to manipulate facts, e.g., derive new facts from a set of statements. For example, if we know that If it is raining, my dog is wet. If my dog is wet, there will be water on the floor. There is no water on the floor. We should be able to conclude that it is not raining.

Deduction (cont'd) In propositional form, this argument would look like: P -> Q Q -> R ⌐ R ⌐ P

Natural Deduction Is there a formal (a systematic, unambiguous way) of deriving new facts? We could have a set of rules that are apply to formulas that can be used to create (derive) new formulas which follow the original ones. One such rule is Modus Ponens: P -> Q P Q

Another Rule Another such rule is called Modus Tollens: P -> Q ⌐ Q ⌐ P We could use two applications of Modus Tollens to show that it is not raining.

Conjunction Rules In fact, there are other rules, some very obvious, so not so obvious, that we use to derive new facts from old ones. Three obvious ones deal with conjunction: P P ∧ Q P ∧ Q Q P Q P ∧ Q

Disjunction Rules Two simple rules deal with disjunction: P Q P ∨ Q and one not-so-simple rule deals with proof-by-cases, also involving disjunction. If you have P ∨ Q, you can proceed by cases. If you assume that P is true and you can show R, or, alternatively, if you assume that Q is true and you can still prove R, then R must be true in either case.

Boxes In the previous slide, the blue box introduces an additional assumption which is at the top of the box. The scope of the assumption is within the box. After the box, the formula is no longer assumed to be true and may not be used. There may be additional formulas inside the box between the first and last lines. Also, boxes may be nested to introduce several assumptions.

Implication Rules Two rules involve implication. The second is MP: P P Q P -> Q P -> Q Q

Other Rules P P false ⌐P false ⌐⌐P ⌐ P false P P

Rule Names In general, for each operator there are two (sets of) rules: an introduction rule which introduces the operator, that is, the operator appears in the conclusion, and an elimination rule which removes an operator, that is, the operator appears in one of the hypotheses. The is one conjunction introduction rule, and two conjunction elimination rules, one disjunction elimination rule (proof by cases) and two disjunction introduction rules.

Rules Names (cont'd) Implication elimination is the Modus Ponens rule and there is a corresponding implication introduction (assume that P is true, prove Q, and you have the implication P->Q. The other four rules are negation introduction, negation elimination, contradiction elimination, and double negation elimination.

Natural Deduction In all, there are twelve rules (Modens Tollens can be derived from the other rules). These rules codify one approach that people take toward deduction (hence the name Natural Deduction). A natural deduction proof is a sequence of steps where each step is either a hypothesis (formula assumed to be true) or is derived from previous formulas by one of the rules.

Simple Proof Here is a proof that if we have hypothesis P->Q, and Q->R, we can derive the formula P->R: 1. P ->Q Hyp. 2. Q-> R Hyp. 3. P Assume 4. Q MP 5. R MP 6. P -> R Implication intro

Modus Tollens Modus Tollens is a derived rule, that is, any proof which uses Modus Tollens could be done by using the other rules instead. To see this, consider: 1. P -> Q 2. ⌐ Q 3. P Assume 4. Q -> Elim: 3,1 5. false ⌐ Elim: 4, 2 6. ⌐ P ⌐ Intro : 3-5

Derivability Since we have a system of natural deduction, we have a way to derive new facts from a set of given facts (hypotheses). We construct a proof which each line is either a hypothesis or derived from previous lines by a proof rule. The last line of the proof is the conclusion. If such a proof exists, we say that the conclusion C can be derived from the hypotheses H, H ⊢ C (read “H derives C.”)

Semantic Entailment We also have a way of relating a formula to a set of formulas which we assume to be true (the hypotheses). If every interpretation which makes the hypotheses true (satisfies the hypotheses), also makes the conclusion true, i.e., whenever the hypotheses are true, the conclusion is also true, we say the the hypotheses semantically entails the conclusion, H ⊨ C.

Tautologies and Contradictions A formula that is true under every interpretation is said to be valid and is also called a tautology. A formula that is false under every interpretation is call a contradiction and said to be unsatisfiable. A formula that is true under some interpretation is said to be satisfiable.

Proof vs. Truth In short, we have two notions: Proof and Truth. We have facts that we can prove from the set of hypotheses (using the rules of natural deduction) and we have facts that we know are true given that the hypotheses are true (which can check by constructing the truth table). It turns out that for the natural deduction method for proposition calculus, these two notions coincide.

Soundness and Completeness If we can prove formula C from the set of hypotheses H, then H must also semantically entail C. In other words, if we can prove it, it must be true. This is known as soundness. If C is semantically entailed from H, then there is a proof of C from hypotheses H. In other words, if it is true, we can prove it. This is known as completeness.

Are All Systems Sound and/or Complete? No. Consider a system with one rule: P that is, you can prove anything. Such a system is complete (if it's true you can prove it because you can prove anything), but it is not sound (you can prove things that aren't true). To construct a system that is not sound, delete one of the twelve rules of natural deduction.