Natural Deduction CS 270 Math Foundations of CS Jeremy Johnson.

Slides:



Advertisements
Similar presentations
Introduction to Proofs
Advertisements

Introduction to Theorem Proving
Logic Use mathematical deduction to derive new knowledge.
1 Introduction to Abstract Mathematics Valid AND Invalid Arguments 2.3 Instructor: Hayk Melikya
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.
Logic 3 Tautological Implications and Tautological Equivalences
Laws of , , and  Excluded middle law Contradiction law P   P  T P   P  F NameLaw Identity laws P  F  P P  T  P Domination laws P  T  T P.
Discussion #12 1/22 Discussion #12 Deduction, Proofs and Proof Techniques.
1 CA 208 Logic Ex3 Define logical entailment  in terms of material implication  Define logical consequence |= (here the semantic consequence relation.
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
1 Inference Rules and Proofs Z: Inference Rules and Proofs.
1 Inference Rules and Proofs Z: Inference Rules and Proofs.
1 Math 306 Foundations of Mathematics I Math 306 Foundations of Mathematics I Goals of this class Introduction to important mathematical concepts Development.
Knoweldge Representation & Reasoning
Chapter 3 Propositional Logic
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.
Introduction to Logic Logical Form: general rules
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
I NTRO TO L OGIC Dr Shlomo Hershkop March
Chapter 3 Section 4 – Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
3.6 Analyzing Arguments with Truth Tables
Methods of Proof involving  Symbolic Logic February 19, 2001.
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
Propositional Calculus – Methods of Proof Predicate Calculus Math Foundations of Computer Science.
INTRODUCTION TO LOGIC Jennifer Wang Fall 2009 Midterm Review Quiz Game.
1 CMSC 250 Discrete Structures CMSC 250 Lecture 1.
CS 381 DISCRETE STRUCTURES Gongjun Yan Aug 25, November 2015Introduction & Propositional Logic 1.
Propositional Calculus CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
Chapter 3: Introduction to Logic. Logic Main goal: use logic to analyze arguments (claims) to see if they are valid or invalid. This is useful for math.
LECTURE LECTURE Propositional Logic Syntax 1 Source: MIT OpenCourseWare.
Propositional Logic. Propositions Any statement that is either True (T) or False (F) is a proposition Propositional variables: a variable that can assume.
CS6133 Software Specification and Verification
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.
Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson.
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 05 : Knowledge Base & First Order Logic.
Proof by Contradiction CS 270 Math Foundations of CS Jeremy Johnson.
Part-2: Propositional Logic By Dr. Syed Noman Hasany.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
Outline Logic Propositional Logic Well formed formula Truth table
Today’s Topics Argument forms and rules (review)
The Logic of Conditionals Chapter 8 Language, Proof and Logic.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
Part-2: Propositional Logic By Dr. Syed Noman Hasany.
Sound Arguments and Derivations. Topics Sound Arguments Derivations Proofs –Inference rules –Deduction.
Chapter 1 Logic and proofs
Logic and Reasoning.
2. The Logic of Compound Statements Summary
Proof by Contradiction
Discrete Mathematics Logic.
{P} ⊦ Q if and only if {P} ╞ Q
Propositional Calculus: Boolean Functions and Expressions
Elementary Metamathematics
Information Technology Department
CS201: Data Structures and Discrete Mathematics I
Deductive Reasoning: Propositional Logic
Natural deduction Gerhard Gentzen.
CS 270 Math Foundations of CS
CS 220: Discrete Structures and their Applications
The Method of Deduction
Computer Security: Art and Science, 2nd Edition
Lecture 2: Propositional Equivalences
Discrete Mathematics Logic.
Logical Entailment Computational Logic Lecture 3
CSNB234 ARTIFICIAL INTELLIGENCE
Foundations of Discrete Mathematics
Proof Tactics, Strategies and Derived Rules
CS201: Data Structures and Discrete Mathematics I
Presentation transcript:

Natural Deduction CS 270 Math Foundations of CS Jeremy Johnson

Outline 1.An example 1.Validity by truth table 2.Validity by proof 2.What’s a proof 1.Proof checker 3.Rules of natural deduction 4.Provable equivalence 5.Soundness and Completeness

An Example If the train arrives late and there are no taxis at the station, then John is late for his meeting. John is not late for his meeting. The train did arrive late. Therefore, there were taxis at the station. If it is raining and Jane does not have here umbrella with her, then she will get wet. Jane is not wet. It is raining. Therefore, Jane has her umbrella with her.

An Example

Validity by Truth Table pqr qq rrp  q(p  q)  r FFFTTFT FFTTFFT FTFFTFT FTTFFFT TFFTTTF TFTTFTT TTFFTFT TTTFFFT

Proof

A proof is a sequence of formulas that are either premises or follow from the application of a rule to previous formulas Each formula must be labeled by it’s justification, i.e. the rule that was applied along with pointers to the formulas that the rule was applied to It is relatively straightforward to check to see if a proof is valid

Validity by Deduction 1premise 2 3 4assumption 5 6r 7 8 9q

Rules of Natural Deduction Natural deduction uses a set of rules formally introduced by Gentzen in 1934 The rules follow a “natural” way of reasoning about Introduction rules Introduce logical operators from premises Elimination rules Eliminate logical operators from premise producing a conclusion without the operator

Conjunction Rules Introduction Rule Elimination Rule    i     e1      e2 

Implication Rules Introduction Rule Assume  and show  Elimination Rule (Modus Ponens)      e   …   i   

Disjunction Rules Introduction Rule Elimination Rule (proof by case analysis)   i1     e    i2    …… ……

Negation Rules

Introduction Rule  leads to a contradiction Double negation     e 

Proof by Contradiction Derived Rule Assume  and derive a a contradiction Derived rules can be used like the basic rules and serve as a short cut (macro) Sometimes used as a negation elimination rule instead of double negation

Law of the Excluded Middle 1  (p  p) assumption 2Assumption 3 (p  p) 4 5  p 6 p  p 7 8  (p  p) 9 p  p

ProofLab The ProofLab tool from the Logic and Proofs course from the CMU online learning initiative allows you to experiment with natural deduction proofs

ProofLab

Provable Equivalence

De Morgan’s Law  (P  Q)   P   Q 1 (P  Q)(P  Q) premise 2assumption 3 P  QP  Q  i1 2 4  e 1,3 5 PP 6Q 7 P  QP  Q  i2 6 8  e 1, P  QP  Q  i 5,9

De Morgan’s Law  (P  Q)   P   Q 1 P  QP  Q premise 2  e1 1 3  e2 1 4assumption 5P 6  e 2,5 7Q  i2 6 8  e 3,7 9  e 4,5-6, (P  Q)(P  Q)  i 4-9

Semantic Entailment

Soundness and Completeness