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

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

Embed Size (px)

Citation preview

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

The Exciting World of The Exciting World of Natural Deduction!!!Natural Deduction!!!

By: By:

Dylan KaneDylan Kane

Jordan BradshawJordan Bradshaw

Virginia WalkerVirginia Walker

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

Natural DeductionNatural Deduction

Gerhard Gentzen Gerhard Gentzen Stanislaw JaskowskiStanislaw Jaskowski 19341934 Mimics the natural reasoning process, Mimics the natural reasoning process,

inference rules natural to humansinference rules natural to humans Called “natural” because does not Called “natural” because does not

require conversion to (unreadable) require conversion to (unreadable) normal formnormal form

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

Background:Background:Natural deduction proofsNatural deduction proofs

I’ll be back.

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

Natural DeductionNatural Deduction

Proof system for first-order logicProof system for first-order logic Designed to mimic the natural reasoning Designed to mimic the natural reasoning

processprocess Process:Process:

Make assumptions (“A” is true)Make assumptions (“A” is true) Letters like “A” can represent larger propositional phrasesLetters like “A” can represent larger propositional phrases The set of assumptions being relied on at a given The set of assumptions being relied on at a given

step is called the context.step is called the context. Use rules to draw conclusions.Use rules to draw conclusions. Discharge assumptions as they become no longer Discharge assumptions as they become no longer

necessary.necessary.

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

Natural DeductionNatural Deduction

Natural deduction is done in step by Natural deduction is done in step by step:step: RuleRule PremisesPremises ConclusionConclusion ……

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

Logical ConnectivesLogical Connectives

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

Truth Tables for Logical Truth Tables for Logical Connectives Connectives

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

Making ConclusionsMaking Conclusions

The rules used to draw conclusions consist The rules used to draw conclusions consist mostly of the introduction (I) and mostly of the introduction (I) and elimination (E) of these connectives.elimination (E) of these connectives.

Several of the rules serve to discharge Several of the rules serve to discharge earlier assumptions.earlier assumptions. The result does not rely on the assumption The result does not rely on the assumption

being true.being true. If the assumption is used by itself again If the assumption is used by itself again

somewhere else, it must be discharged again somewhere else, it must be discharged again in a step that follows.in a step that follows.

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

Introduction and EliminationIntroduction and Elimination

Introduction builds the conclusion out Introduction builds the conclusion out of the logical connective and the of the logical connective and the premises. premises.

Elimination eliminates the logical Elimination eliminates the logical connective from a premise. connective from a premise.

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

Rules: AND/ORRules: AND/OR

Rule “or E” discharges S and T.Rule “or E” discharges S and T.

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

Rules: IFRules: IF

Rule “if I” discharges SRule “if I” discharges S

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

Rules: CRules: C

Proof by contradictionProof by contradiction If by assuming S is false, youIf by assuming S is false, you

reach a contradiction, S is true.reach a contradiction, S is true. Discharges (not S)Discharges (not S)

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

Rules: forall (∀)Rules: forall (∀)

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

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

Rules: exists (∃)Rules: exists (∃)

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

Rule “∃E” also discharges S(a).Rule “∃E” also discharges S(a).

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

TautologyTautology

Always true. Always true. The proof of a tautology ultimately The proof of a tautology ultimately

relies on no assumptions. relies on no assumptions. The assumptions are discharged The assumptions are discharged

throughout the proof. throughout the proof.

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

Sample proof: a tautologySample proof: a tautology

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

Sample proof: a tautologySample proof: a tautology

A is discharged using the ->I rule.

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

Sample proof: a tautologySample proof: a tautology

B is discharged using the ->I rule.

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

Example using QuantifiersExample using Quantifiers

““Imagine how you would convince Imagine how you would convince someone else, who didn’t know any someone else, who didn’t know any formal logic, of the validity of the formal logic, of the validity of the entailment you are trying to entailment you are trying to demonstrate.”demonstrate.”

a.k.a. That a knowledge base entails a.k.a. That a knowledge base entails a sentence. a sentence.

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

Example using QuantifiersExample 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))|- forall x (F(x) -> H(x))

Take an arbitrary object aSuppose a is an FSince all Fs are Gs, a is a GSince all Gs are Hs, a is an HSo if a is an F then a is an HBut this argument works for

any aSo all Fs are Hs

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

Proof using Natural Proof using Natural DeductionDeduction

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

Rule exists (∃): RevisitedRule exists (∃): Revisited

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

Rule “∃E” also discharges S(a).Rule “∃E” also discharges S(a).

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

Incorrect Proof (exists E)Incorrect Proof (exists E)

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

Interesting Tidbits for Interesting Tidbits for Further ReadingFurther Reading

Natural Deduction book written in Natural Deduction book written in 1965 by Prawitz1965 by Prawitz

Gallier in 1986 used Gentzen’s Gallier in 1986 used Gentzen’s approach to expound the theoretical approach to expound the theoretical underpinning so f automated underpinning so f automated deduction. deduction.

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

CreditsCredits

Reeves, Steve and Mike Clarke. Reeves, Steve and Mike Clarke. Logic for Computer ScienceLogic for Computer Science. 2003.. 2003.

Russell, Stuart and Peter Norvig. Russell, Stuart and Peter Norvig. Artificial Intelligence: A modern Artificial Intelligence: A modern Approach. Approach. 22ndnd edition. 2003 edition. 2003