Natural Deduction System for First Order Logic Student: Wei Lei Instructor: W. M. Farmer Department of Computing and Software McMaster University, Hamilton,

Slides:



Advertisements
Similar presentations
Brief Introduction to Logic. Outline Historical View Propositional Logic : Syntax Propositional Logic : Semantics Satisfiability Natural Deduction : Proofs.
Advertisements

Introduction to Proofs
February 26, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 1 Addition of Integers Example: Add a = (1110) 2 and b = (1011) 2. a 0 + b.
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.
Copyright © Cengage Learning. All rights reserved. CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION.
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.
CS128 – Discrete Mathematics for Computer Science
Formal Logic Proof Methods Direct Proof / Natural Deduction Conditional Proof (Implication Introduction) Reductio ad Absurdum Resolution Refutation.
Brief Introduction to Logic. Outline Historical View Propositional Logic : Syntax Propositional Logic : Semantics Satisfiability Natural Deduction : Proofs.
TR1413: Discrete Mathematics For Computer Science Lecture 3: Formal approach to propositional logic.
TR1413: Discrete Mathematics For Computer Science Lecture 4: System L.
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
CSE 311 Foundations of Computing I Lecture 6 Predicate Logic, Logical Inference Spring
Proof Systems KB |- Q iff there is a sequence of wffs D1,..., Dn such that Dn is Q and for each Di in the sequence: a) either Di is in KB or b) Di can.
Introduction to Proofs
MATH 224 – Discrete Mathematics
1 Inference Rules and Proofs (Z); Program Specification and Verification Inference Rules and Proofs (Z); Program Specification and Verification.
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
CMPF144 FUNDAMENTALS OF COMPUTING THEORY Module 5: Classical Logic.
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
Of 33 lecture 12: propositional logic – part I. of 33 propositions and connectives … two-valued logic – every sentence is either true or false some sentences.
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
0 What logic is or should be Propositions Boolean operations The language of classical propositional logic Interpretation and truth Validity (tautologicity)
1.1 Introduction to Inductive and Deductive Reasoning
Induction Proof. Well-ordering A set S is well ordered if every subset has a least element. [0, 1] is not well ordered since (0,1] has no least element.
CSE 311 Foundations of Computing I Lecture 7 Logical Inference Autumn 2012 CSE
Hazırlayan DISCRETE COMPUTATIONAL STRUCTURES Propositional Logic PROF. DR. YUSUF OYSAL.
1 Introduction to Abstract Mathematics Expressions (Propositional formulas or forms) Instructor: Hayk Melikya
Introductory Logic PHI 120 Presentation: “Solving Proofs" Bring the Rules Handout to lecture.
CS6133 Software Specification and Verification
Specifying Languages Our aim is to be able to specify languages for use in the computer. The sketch of an FSA is easy for us to understand, but difficult.
Artificial Intelligence 7. Making Deductive Inferences Course V231 Department of Computing Imperial College, London Jeremy Gow.
CS 103 Discrete Structures Lecture 13 Induction and Recursion (1)
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.
Chapter 7. Propositional and Predicate Logic Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Lecture II – xx 2009 Propositional Logic Dieter Fensel and.
Dr. Naveed Riaz Design and Analysis of Algorithms 1 1 Formal Methods in Software Engineering Lecture # 25.
CS104:Discrete Structures Chapter 2: Proof Techniques.
Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam Johnson, Nikhil Johri CS 440 / ECE 448 Introduction to Artificial Intelligence.
An Introduction to Classical Logic (propositional and Predicate Logic)
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
More Proofs. REVIEW The Rule of Assumption: A Assumption is the easiest rule to learn. It says at any stage in the derivation, we may write down any.
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.
Sound Arguments and Derivations. Topics Sound Arguments Derivations Proofs –Inference rules –Deduction.
Chapter 1 Logic and proofs
Chapter 7. Propositional and Predicate Logic
Valid and Invalid Arguments
Chapter 4 (Part 1): Induction & Recursion
Knowledge Representation and Reasoning
Proposition & Predicates
Lecture 6 CS 1813 – Discrete Mathematics
Cirquent calculus Episode 15 About cirquent calculus in general
CSE 311 Foundations of Computing I
Natural deduction Gerhard Gentzen.
CS 270 Math Foundations of CS
CS 220: Discrete Structures and their Applications
Applied Discrete Mathematics Week 1: Logic
Back to “Serious” Topics…
Computer Security: Art and Science, 2nd Edition
Negations of quantifiers
Logical Entailment Computational Logic Lecture 3
Chapter 7. Propositional and Predicate Logic
Formal Methods in Software Engineering
ece 720 intelligent web: ontology and beyond
1.1 Introduction to Inductive and Deductive Reasoning
Rules of inference Section 1.5 Monday, December 02, 2019
Presentation transcript:

Natural Deduction System for First Order Logic Student: Wei Lei Instructor: W. M. Farmer Department of Computing and Software McMaster University, Hamilton, CA

Contents Natural Deduction Natural Deduction Proof Rules of First Order logic Axioms of Natural Deduction System Reference

Natural Deduction Natural deduction was invented by G. Gentzen in The idea was to have a system of derivation rules that as closely as possible reflect the logical steps in an informal rigorous proof. For each connective there is an introduction rule (except conjunction, which has two) which can be seen as a definition of which conditions must be satisfied for the proposition to be true. Natural Deduction tries to follow the natural style of reasoning. Most of the proof consists of forward reasoning, i.e. deriving conclusions, deriving new conclusions from these conclusions, etc. Occasionally hypotheses are introduced or dropped. A derivation is a tree where the nodes are the rules and the leafs are the assumptions of the derivation. The root of the tree is the conclusion of the derivation. An assumption may be discharged by a rule in the derivation; that an assumption A is discharged in a derivation is denoted by [A].

Natural Deduction Proof Definition. A natural deduction proof is a finite tree whose leaves are formula (over the alphabet ∧,→, ⊥ ) and which is built by using the rules. Example: p ∧ q, r |= p ∧ r Proof: p ∧ q ———— ∧ e p r ———————— ∧ i p ∧ r

Rules of First Order logic If we have a derivation of B from the assumption A, we may derive A→B and discharge the assumption A: [A] → I B —————— A → B Given derivations of A → B and A, we can conclude B: A → B A → E —————— B For conjunction, the introduction rule tells us that if we have derivations of A and B, then we can conclude A ∧ B: A B ∧ I —————— A ∧ B

Rules of First Order logic There are two elimination rules for conjunction: A ∧ B ∧ E1 —————— A A ∧ B ∧ E2 —————— B We can infer a disjunction if we know one of the disjuncts. Hence there are two introduction rules for the disjunction: A V I1 —————— A V B B V I2 —————— A V B

Rules of First Order logic The elimination rule for disjunction is slightly more complicated to formulate. We must make use of the fact that we know AVB but not necessarily which of A and B it is that holds. [A] [B] A V B C C VE —————————— C Rules for ¬: A A ┴ ¬A ¬ I ———— ¬ E ———— ¬A ┴

Rules of First Order logic Rules for ↔: A ↔ B A ↔ B ↔E1 ———— ↔E2 ———— A→B B→A A→B B→A ↔I ———— A ↔ B Rules for → : A A A →B ——— →E ———— B B →I —————— A → B

Rules of First Order logic Rules for ∀ : ∀ x: X P(x) x is a new object of type X ∀ E —————— —————————————— P[x:=t] P(X) ∀ I ———————————————— ∀ x: X P(x) The notation P[x := t] means intelligent replacement. Also we have rules for equality: Equality reflexivity Equality replacement

Axioms of Natural Deduction System Example of an axiomatic system of natural deduction Name Of System: AS Let A,B denote statements. Undefined terms: ¬, ∧ Axiom(conjunction C): A,B; therefore A ∧ B Axiom(simplification1 S1): A ∧ B; therefore A Axiom(simplification2 S2): A ∧ B; therefore B Axiom(double negation1 DN1): ¬(¬ A); therefore A Axiom(double negation2 DN2): A; therefore ¬(¬ A) Axiom(Conjunctive Syllogism CS): A,¬(A ∧ ¬ B); therefore B Definition: A V B = ¬(¬ A ∧ ¬ B) Definition: If A then B = ¬(A ∧ ¬ B) Definition: A if ∧ only if B = (if A then B) ∧ (if B then A) Notice that the axioms were not framed using any of the definitions.

Axioms of Natural Deduction System Whether or not AS is complete. That is, the question as to whether or not AS contains enough axioms in order for a reasoning agent to figure out all possible natural deductions (memory limitations aside), can be raised. If the answer is yes, then the system is said to be complete. It turns out that AS is complete, but proving so is rather difficult.

Reference [i] John M. Anderson and Henry W.Johnstone, Jr. Natural Deduction, The Logical Basis of Axiom Systems. Wadsworth publishing company, inc. Belmont, California:1962 [ii] Dirk van Dalen. Logic and Structure. Third Edition. Springer-Verlag Berlin Heidelberg, New York:1997 [iii] Hans de Nivelle. Natural Deduction for First-Order Logic. [vi] BrainyEncyclopedia Natural deduction