The Exciting World of Natural Deduction!!! By: Dylan Kane Jordan Bradshaw Virginia Walker.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

Introduction to Proofs
PROOF BY CONTRADICTION
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.
Semantics of SL and Review Part 1: What you need to know for test 2 Part 2: The structure of definitions of truth functional notions Part 3: Rules when.
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.
Logic Concepts Lecture Module 11.
TR1413: Discrete Mathematics For Computer Science Lecture 3: Formal approach to propositional logic.
So far we have learned about:
Reading: Chapter 4, section 4 Nongraded Homework: Problems at the end of section 4. Graded Homework #4 is due at the beginning of class on Friday. You.
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.
No new reading for Monday or Wednesday Exam #2 is next Friday, and we’ll review and work on proofs on Monday and Wed.
Logical and Rule-Based Reasoning Part I. Logical Models and Reasoning Big Question: Do people think logically?
Discrete Mathematics and its Applications
Fall 2002CMSC Discrete Structures1 Let’s proceed to… Mathematical Reasoning.
Adapted from Discrete Math
Artificial Intelligence Reasoning. Reasoning is the process of deriving logical conclusions from given facts. Durkin defines reasoning as ‘the process.
Methods of Proof & Proof Strategies
Knowledge Representation and Reasoning University "Politehnica" of Bucharest Department of Computer Science Fall 2010 Adina Magda Florea
CISC 2315 Discrete Structures Professor William G. Tanner, Jr. Fall 2010 Slides created by James L. Hein, author of Discrete Structures, Logic, and Computability,
Logic in Computer Science - Overview Sep 1, 2011 POSTECH 박성우.
F22H1 Logic and Proof Week 6 Reasoning. How can we show that this is a tautology (section 11.2): The hard way: “logical calculation” The “easy” way: “reasoning”
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
1 Knowledge Representation. 2 Definitions Knowledge Base Knowledge Base A set of representations of facts about the world. A set of representations of.
Theorems and conjectures
Fallacies The proposition [(p  q)  q]  p is not a tautology, because it is false when p is false and q is true. This type of incorrect reasoning is.
Logic in Computer Science - Overview Sep 1, 2009 박성우.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Chapter Five Conditional and Indirect Proofs. 1. Conditional Proofs A conditional proof is a proof in which we assume the truth of one of the premises.
9/30/98 Prof. Richard Fikes Inference In First Order Logic Computer Science Department Stanford University CS222 Fall 1998.
CS6133 Software Specification and Verification
Basic Concepts of Logic An Overview of Introduction to Logic Yingrui Yang
Artificial Intelligence 7. Making Deductive Inferences Course V231 Department of Computing Imperial College, London Jeremy Gow.
Chapter 1: The Foundations: Logic and Proofs
Chapter 2 Symbolic Logic. Section 2-1 Truth, Equivalence and Implication.
Methods of Proof for Boolean Logic Chapter 5 Language, Proof and Logic.
Of 38 lecture 13: propositional logic – part II. of 38 propositional logic Gentzen system PROP_G design to be simple syntax and vocabulary the same as.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 11 The Foundations: Logic and Proofs Rules of inference.
Chapter 7. Propositional and Predicate Logic Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 05 : Knowledge Base & First Order Logic.
Computing & Information Sciences Kansas State University Lecture 12 of 42 CIS 530 / 730 Artificial Intelligence Lecture 12 of 42 William H. Hsu Department.
Philosophy and Logic The Process of Correct Reasoning.
2.3 Methods of Proof.
Metalogic Soundness and Completeness. Two Notions of Logical Consequence Validity: If the premises are true, then the conclusion must be true. Provability:
CT214 – Logical Foundations of Computing Darren Doherty Rm. 311 Dept. of Information Technology NUI Galway
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
Chapter 1 Logic and proofs
Computing & Information Sciences Kansas State University Monday, 18 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 11 of 42 Monday, 18 September.
Chapter 7. Propositional and Predicate Logic
2. The Logic of Compound Statements Summary
Problems on Logical Agents
CS 1502 Formal Methods in Computer Science
Truth Tables Hurley
CS201: Data Structures and Discrete Mathematics I
Mathematical Reasoning
CS 270 Math Foundations of CS
Natural Deduction.
Applied Discrete Mathematics Week 1: Logic
Computer Security: Art and Science, 2nd Edition
Logical Truth To show a statement A is a logic truth (tautology) ...
Chapter 7. Propositional and Predicate Logic
CSNB234 ARTIFICIAL INTELLIGENCE
Mathematical Reasoning
Logical and Rule-Based Reasoning Part I
CS201: Data Structures and Discrete Mathematics I
Subderivations.
Presentation transcript:

The Exciting World of Natural Deduction!!! By: Dylan Kane Jordan Bradshaw Virginia Walker

Natural Deduction Gerhard Gentzen Gerhard Gentzen Stanislaw Jaskowski Stanislaw Jaskowski Mimics the natural reasoning process, inference rules natural to humans Mimics the natural reasoning process, inference rules natural to humans Called “natural” because does not require conversion to (unreadable) normal form Called “natural” because does not require conversion to (unreadable) normal form

Background: Natural deduction proofs I’ll be back.

Natural Deduction Proof system for first-order logic Proof system for first-order logic Designed to mimic the natural reasoning process Designed to mimic the natural reasoning process Process: Process: Make assumptions (“A” is true) Make assumptions (“A” is true) Letters like “A” can represent larger propositional phrases Letters like “A” can represent larger propositional phrases The set of assumptions being relied on at a given step is called the context. The set of assumptions being relied on at a given step is called the context. Use rules to draw conclusions. Use rules to draw conclusions. Discharge assumptions as they become no longer necessary. Discharge assumptions as they become no longer necessary.

Natural Deduction Natural deduction is done in step by step: Natural deduction is done in step by step: Rule Rule Premises Premises Conclusion Conclusion …

Logical Connectives

Truth Tables for Logical Connectives

Making Conclusions The rules used to draw conclusions consist mostly of the introduction (I) and elimination (E) of these connectives. The rules used to draw conclusions consist mostly of the introduction (I) and elimination (E) of these connectives. Several of the rules serve to discharge earlier assumptions. Several of the rules serve to discharge earlier assumptions. The result does not rely on the assumption being true. The result does not rely on the assumption being true. If the assumption is used by itself again somewhere else, it must be discharged again in a step that follows. If the assumption is used by itself again somewhere else, it must be discharged again in a step that follows.

Introduction and Elimination Introduction builds the conclusion out of the logical connective and the premises. Introduction builds the conclusion out of the logical connective and the premises. Elimination eliminates the logical connective from a premise. Elimination eliminates the logical connective from a premise.

Rules: AND/OR Rule “or E” discharges S and T.

Rules: IF Rule “if I” discharges S

Rules: C Proof by contradiction Proof by contradiction If by assuming S is false, you If by assuming S is false, you reach a contradiction, S is true. Discharges (not S) Discharges (not S)

Rules: forall ( ∀ ) Rule “ ∀ I” requires that “a” does not occur in S(x) or any premise on which S(a) may depend. Rule “ ∀ I” requires that “a” does not occur in S(x) or any premise on which S(a) may depend.

Rules: exists ( ∃ ) Rule “ ∃ E” requires that “a” does not occur in S(x) or T or any assumption other than S(a) on which the derivation of T from S(a) depends. Rule “ ∃ E” requires that “a” does not occur in S(x) or T or any assumption other than S(a) on which the derivation of T from S(a) depends. Rule “ ∃ E” also discharges S(a). Rule “ ∃ E” also discharges S(a).

Tautology Always true. Always true. The proof of a tautology ultimately relies on no assumptions. The proof of a tautology ultimately relies on no assumptions. The assumptions are discharged throughout the proof. The assumptions are discharged throughout the proof.

Sample proof: a tautology

A is discharged using the ->I rule.

Sample proof: a tautology B is discharged using the ->I rule.

Example using Quantifiers “Imagine how you would convince someone else, who didn’t know any formal logic, of the validity of the entailment you are trying to demonstrate.” “Imagine how you would convince someone else, who didn’t know any formal logic, of the validity of the entailment you are trying to demonstrate.” a.k.a. That a knowledge base entails a sentence. a.k.a. That a knowledge base entails a sentence.

Example using Quantifiers Ex. We want to prove this: Ex. We want to prove this: {forall x (F(x) -> G(x)) {forall x (F(x) -> G(x)) forall x (G(x) -> H(x))} forall x (G(x) -> H(x))} |- forall x (F(x) -> H(x)) Take an arbitrary object a Suppose a is an F Since all Fs are Gs, a is a G Since all Gs are Hs, a is an H So if a is an F then a is an H But this argument works for any a So all Fs are Hs

Proof using Natural Deduction

Rule exists ( ∃ ): Revisited Rule “ ∃ E” requires that “a” does not occur in S(x) or T or any assumption other than S(a) on which the derivation of T from S(a) depends. Rule “ ∃ E” requires that “a” does not occur in S(x) or T or any assumption other than S(a) on which the derivation of T from S(a) depends. Rule “ ∃ E” also discharges S(a). Rule “ ∃ E” also discharges S(a).

Incorrect Proof (exists E)

Interesting Tidbits for Further Reading Natural Deduction book written in 1965 by Prawitz Natural Deduction book written in 1965 by Prawitz Gallier in 1986 used Gentzen’s approach to expound the theoretical underpinning so f automated deduction. Gallier in 1986 used Gentzen’s approach to expound the theoretical underpinning so f automated deduction.

Credits Reeves, Steve and Mike Clarke. Logic for Computer Science Reeves, Steve and Mike Clarke. Logic for Computer Science Russell, Stuart and Peter Norvig. Artificial Intelligence: A modern Approach. 2 nd edition Russell, Stuart and Peter Norvig. Artificial Intelligence: A modern Approach. 2 nd edition. 2003