Part Four: Epistemic Cognition, Focussing First on Deductive Reasoning Epistemic reasoning is driven by both input from perception and queries passed.

Slides:



Advertisements
Similar presentations
Inference in First-Order Logic
Advertisements

Some Prolog Prolog is a logic programming language
Resolution Proof System for First Order Logic
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.
Inference Rules Universal Instantiation Existential Generalization
The Foundations: Logic and Proofs
Inference in first-order logic Chapter 9. Outline Reducing first-order inference to propositional inference Unification Generalized Modus Ponens Forward.
Chapter 2 Fundamentals of Logic Dept of Information management National Central University Yen-Liang Chen.
13 Automated Reasoning 13.0 Introduction to Weak Methods in Theorem Proving 13.1 The General Problem Solver and Difference Tables 13.2 Resolution.
Predicate Calculus Formal Methods in Verification of Computer Systems Jeremy Johnson.
Valid Arguments An argument is a sequence of propositions. All but the final proposition are called premises. The last statement is the conclusion. The.
Chapter 1 The Logic of Compound Statements. Section 1.3 Valid & Invalid Arguments.
Discussion #17 1/15 Discussion #17 Derivations. Discussion #17 2/15 Topics Derivations  proofs in predicate calculus Inference Rules with Quantifiers.
Formal Logic Proof Methods Direct Proof / Natural Deduction Conditional Proof (Implication Introduction) Reductio ad Absurdum Resolution Refutation.
CSE (c) S. Tanimoto, 2008 Propositional Logic
Inference in FOL Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 9 Spring 2004.
1 Automated Reasoning Introduction to Weak Methods in Theorem Proving 13.1The General Problem Solver and Difference Tables 13.2Resolution Theorem.
Inference and Resolution for Problem Solving
Inference in First-Order Logic
CSE (c) S. Tanimoto, 2007 Unification 1 Unification Predicate calculus rules are sometimes so general that we need to create specializations of.
Plan for the rest of the quarter TuesdayThursday Week 7ResolutionProof carrying code Week 8No class (Sorin in DC for workshop) Predicate abstraction (Mystery.
Introduction to Logic for Artificial Intelligence Lecture 2 Erik Sandewall 2010.
Copyright © Curt Hill Rules of Inference What is a valid argument?
Chapter 3: Methods of Inference
Inference in First-Order logic Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
Propositional Calculus Composed of symbols –P – some true statement P might represent something like “It is Monday” or “the car is red” And sentences –a.
Chap. 2 Fundamentals of Logic. Proposition Proposition (or statement): an declarative sentence that is either true or false, but not both. e.g. –Margret.
Discrete Mathematics CS 2610 August 24, Agenda Last class Introduction to predicates and quantifiers This class Nested quantifiers Proofs.
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
Logical Inference 2 rule based reasoning
2.3Logical Implication: Rules of Inference From the notion of a valid argument, we begin a formal study of what we shall mean by an argument and when such.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Fundamentals of Logic 1. What is a valid argument or proof? 2. Study system of logic 3. In proving theorems or solving problems, creativity and insight.
Hazırlayan DISCRETE COMPUTATIONAL STRUCTURES Propositional Logic PROF. DR. YUSUF OYSAL.
Resolution Strategies One common strategy for applying resolution is called level saturation. Here you try to resolve every pair of clauses from the original.
Computing & Information Sciences Kansas State University Lecture 14 of 42 CIS 530 / 730 Artificial Intelligence Lecture 14 of 42 William H. Hsu Department.
1 Introduction to Abstract Mathematics Chapter 2: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 2.3.
CS6133 Software Specification and Verification
Artificial Intelligence 7. Making Deductive Inferences Course V231 Department of Computing Imperial College, London Jeremy Gow.
Chapter 2 Symbolic Logic. Section 2-1 Truth, Equivalence and Implication.
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.
CSE (c) S. Tanimoto, 2008 Predicate Calculus II 1 Predicate Calculus 2 Outline: Unification: definitions, algorithm Formal interpretations and satisfiability.
Rules of Inference Section 1.6. Arguments in Propositional Logic A argument in propositional logic is a sequence of propositions. All but the final proposition.
2007 D iscrete The foundations C ounting theory N umber theory G raphs & trees structure s
Inference in First Order Logic. Outline Reducing first order inference to propositional inference Unification Generalized Modus Ponens Forward and backward.
Chapter 2 Fundamentals of Logic 1. What is a valid argument or proof?
Chapter 7. Propositional and Predicate Logic Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
Week 4 - Friday.  What did we talk about last time?  Floor and ceiling  Proof by contradiction.
1 Outline Quantifiers and predicates Translation of English sentences Predicate formulas with single variable Predicate formulas involving multiple variables.
Chapter Nine Predicate Logic Proofs. 1. Proving Validity The eighteen valid argument forms plus CP and IP that are the proof machinery of sentential logic.
1 Section 7.3 Formal Proofs in Predicate Calculus All proof rules for propositional calculus extend to predicate calculus. Example. … k.  x p(x) P k+1.
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.
For Friday Finish chapter 9 Program 1 due. Program 1 Any questions?
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
Discrete Math by R.S. Chang, Dept. CSIE, NDHU1 Fundamentals of Logic 1. What is a valid argument or proof? 2. Study system of logic 3. In proving theorems.
Uniqueness Quantifier ROI for Quantified Statement.
Chapter 1 Logic and proofs
Chapter 7. Propositional and Predicate Logic
Introduction to Logic for Artificial Intelligence Lecture 2
Logical Inference 2 Rule-based reasoning
Logical Inference 2 Rule-based reasoning
CS201: Data Structures and Discrete Mathematics I
Relational Proofs Computational Logic Lecture 8
MA/CSSE 474 More Math Review Theory of Computation
Computer Security: Art and Science, 2nd Edition
Chapter 7. Propositional and Predicate Logic
Relational Proofs Computational Logic Lecture 7
Relational Proofs Computational Logic Lecture 7
The Foundations: Logic and Proofs
Presentation transcript:

Part Four: Epistemic Cognition, Focussing First on Deductive Reasoning Epistemic reasoning is driven by both input from perception and queries passed from practical cognition. The way in which epistemic interests effect the course of cognition is by initiating backward reasoning. Example of bidirectional reasoning

Epistemic Reasoning Epistemic reasoning is driven by both input from perception and queries passed from practical cognition. The way in which epistemic interests effect the course of cognition is by initiating backward reasoning. Example of bidirectional reasoning (P & Q) [(P  R) & (Q  S)]

Epistemic Reasoning Epistemic reasoning is driven by both input from perception and queries passed from practical cognition. The way in which epistemic interests effect the course of cognition is by initiating backward reasoning. Example of bidirectional reasoning (P & Q) [(P  R) & (Q  S)] P

Epistemic Reasoning Epistemic reasoning is driven by both input from perception and queries passed from practical cognition. The way in which epistemic interests effect the course of cognition is by initiating backward reasoning. Example of bidirectional reasoning (P & Q) [(P  R) & (Q  S)] QP

Epistemic Reasoning Epistemic reasoning is driven by both input from perception and queries passed from practical cognition. The way in which epistemic interests effect the course of cognition is by initiating backward reasoning. Example of bidirectional reasoning (P & Q) [(P  R) & (Q  S)] (P  R) QP

Epistemic Reasoning Epistemic reasoning is driven by both input from perception and queries passed from practical cognition. The way in which epistemic interests effect the course of cognition is by initiating backward reasoning. Example of bidirectional reasoning (P & Q) [(P  R) & (Q  S)] (P  R) QP

Epistemic Reasoning Epistemic reasoning is driven by both input from perception and queries passed from practical cognition. The way in which epistemic interests effect the course of cognition is by initiating backward reasoning. Example of bidirectional reasoning (P & Q) [(P  R) & (Q  S)] (P  R) PQ

Epistemic Reasoning Epistemic reasoning is driven by both input from perception and queries passed from practical cognition. The way in which epistemic interests effect the course of cognition is by initiating backward reasoning. Example of bidirectional reasoning (P & Q) [(P  R) & (Q  S)] (P  R) (Q  S) PQ

Epistemic Reasoning Epistemic reasoning is driven by both input from perception and queries passed from practical cognition. The way in which epistemic interests effect the course of cognition is by initiating backward reasoning. Example of bidirectional reasoning (P & Q) [(P  R) & (Q  S)] (P  R) (Q  S) PQ

Epistemic Reasoning Epistemic reasoning is driven by both input from perception and queries passed from practical cognition. The way in which epistemic interests effect the course of cognition is by initiating backward reasoning. Example of bidirectional reasoning (P & Q) [(P  R) & (Q  S)] (P  R) (Q  S) PQ

Epistemic Reasoning Epistemic reasoning is driven by both input from perception and queries passed from practical cognition. The way in which epistemic interests effect the course of cognition is by initiating backward reasoning. Example of bidirectional reasoning (P & Q) [(P  R) & (Q  S)] (P  R) (Q  S) PQ

OSCAR as a Deductive Reasoner OSCAR’s greatest virtue as an automated reasoner is that it is capable of performing defeasible reasoning. However, the defeasible reasoner is built on top of a deductive reasoner, and is best understood by looking at the deductive reasoner first.

Natural Deduction OSCAR’s reasoning is in the style of “natural deduction”. –I take this to mean that it reasons about what follows from the premises given suppositions. –This is implemented by having OSCAR reason about sequents. These are pairs where supposition is a set of formulas. Abbreviated formula / supposition. –The most characteristic rule of suppositional reasoning is CONDITIONALIZATION: Given an interest in (P  Q)/X suppose {P} and adopt interest in inferring Q/{P}  X. –Another example, DILEMMA: Given (P v Q) and an interest in R/X, adopt interest in R/X  {P} and R/X  {Q}.

Bidirectional Reasoning Perhaps the most novel feature of OSCAR’s deductive reasoning is that reason-schemas are segregated into backward and forward schemas. –forward schemas lead from conclusions to conclusions From (P & Q), infer P. –backward schemas lead from interests to interests From P, Q infer (P & Q).

adjunctionsimplification p/X q/Y (p&q)/X (p&q)/X  Y p/X q/X negation introduction negation elimination p/X~~p/X ~~p/Xp/X addition disjunctive syllogism p/X ~p/X, (pvq)/Y ~q/X, (pvq)/Y (pvq)/X (qvp)/X q/X  Y p/X  Y conditionalization modus ponens modus tollens q/X  {p} p/X, (p  q)/Y ~q/X, (p  q)/Y (p  q)/X q/X  Y ~p/X  Y reductio1 reductio2 p/X  {~p} (q & ~q)/X  {~p} p/X p/X Some Inference Rules

Directionality Most of these inference rules have natural directions, and are combinatorially explosive when applied in the opposite direction. A plausible classification: –Forwards reasonsBackwards reasons »simplificationadjunction »negation eliminationnegation introduction »disjunctive syllogismaddition »modus ponensconditionalization »modus tollensreductio1 Note that reductio2 fits neither category. I will return to this.

Interest-Driven Reasoning We can think of interest-driven reasoning as consisting of three operations: –(1) we reason forwards from previously drawn conclusions to new conclusions; –(2) we reason backwards from interests to interests; –(3) when we have reasoned backwards to a set of sequents as interests and forwards to the same set of sequents as conclusions, then we discharge interest and conclude the sequent that led to those interests.

Interest-Driven Reasoning We can think of interest-driven reasoning as consisting of three operations: –(1) we reason forwards from previously drawn conclusions to new conclusions; –(2) we reason backwards from interests to interests; –(3) when we have reasoned backwards to a set of sequents as interests and forwards to the same set of sequents as conclusions, then we discharge interest and conclude the sequent that led to those interests. (P & Q) [(P  R) & (Q  S)]

Interest-Driven Reasoning We can think of interest-driven reasoning as consisting of three operations: –(1) we reason forwards from previously drawn conclusions to new conclusions; –(2) we reason backwards from interests to interests; –(3) when we have reasoned backwards to a set of sequents as interests and forwards to the same set of sequents as conclusions, then we discharge interest and conclude the sequent that led to those interests. (P & Q) [(P  R) & (Q  S)] P

Interest-Driven Reasoning We can think of interest-driven reasoning as consisting of three operations: –(1) we reason forwards from previously drawn conclusions to new conclusions; –(2) we reason backwards from interests to interests; –(3) when we have reasoned backwards to a set of sequents as interests and forwards to the same set of sequents as conclusions, then we discharge interest and conclude the sequent that led to those interests. (P & Q) [(P  R) & (Q  S)] QP

Interest-Driven Reasoning We can think of interest-driven reasoning as consisting of three operations: –(1) we reason forwards from previously drawn conclusions to new conclusions; –(2) we reason backwards from interests to interests; –(3) when we have reasoned backwards to a set of sequents as interests and forwards to the same set of sequents as conclusions, then we discharge interest and conclude the sequent that led to those interests. (P & Q) [(P  R) & (Q  S)] (P  R) QP

Interest-Driven Reasoning We can think of interest-driven reasoning as consisting of three operations: –(1) we reason forwards from previously drawn conclusions to new conclusions; –(2) we reason backwards from interests to interests; –(3) when we have reasoned backwards to a set of sequents as interests and forwards to the same set of sequents as conclusions, then we discharge interest and conclude the sequent that led to those interests. (P & Q) [(P  R) & (Q  S)] (P  R) QP

Interest-Driven Reasoning We can think of interest-driven reasoning as consisting of three operations: –(1) we reason forwards from previously drawn conclusions to new conclusions; –(2) we reason backwards from interests to interests; –(3) when we have reasoned backwards to a set of sequents as interests and forwards to the same set of sequents as conclusions, then we discharge interest and conclude the sequent that led to those interests. (P & Q) [(P  R) & (Q  S)] (P  R) PQ

Interest-Driven Reasoning We can think of interest-driven reasoning as consisting of three operations: –(1) we reason forwards from previously drawn conclusions to new conclusions; –(2) we reason backwards from interests to interests; –(3) when we have reasoned backwards to a set of sequents as interests and forwards to the same set of sequents as conclusions, then we discharge interest and conclude the sequent that led to those interests. (P & Q) [(P  R) & (Q  S)] (P  R) PQ

Interest-Driven Reasoning We can think of interest-driven reasoning as consisting of three operations: –(1) we reason forwards from previously drawn conclusions to new conclusions; –(2) we reason backwards from interests to interests; –(3) when we have reasoned backwards to a set of sequents as interests and forwards to the same set of sequents as conclusions, then we discharge interest and conclude the sequent that led to those interests. (P & Q) [(P  R) & (Q  S)] (P  R) (Q  S) PQ

Interest-Driven Reasoning We can think of interest-driven reasoning as consisting of three operations: –(1) we reason forwards from previously drawn conclusions to new conclusions; –(2) we reason backwards from interests to interests; –(3) when we have reasoned backwards to a set of sequents as interests and forwards to the same set of sequents as conclusions, then we discharge interest and conclude the sequent that led to those interests. (P & Q) [(P  R) & (Q  S)] (P  R) (Q  S) PQ

Interest-Driven Reasoning We can think of interest-driven reasoning as consisting of three operations: –(1) we reason forwards from previously drawn conclusions to new conclusions; –(2) we reason backwards from interests to interests; –(3) when we have reasoned backwards to a set of sequents as interests and forwards to the same set of sequents as conclusions, then we discharge interest and conclude the sequent that led to those interests. (P & Q) [(P  R) & (Q  S)] (P  R) (Q  S) PQ

Interest-Driven Reasoning We can think of interest-driven reasoning as consisting of three operations: –(1) we reason forwards from previously drawn conclusions to new conclusions; –(2) we reason backwards from interests to interests; –(3) when we have reasoned backwards to a set of sequents as interests and forwards to the same set of sequents as conclusions, then we discharge interest and conclude the sequent that led to those interests. (P & Q) [(P  R) & (Q  S)] (P  R) (Q  S) PQ

Interest-Driven Reasoning reason-forwards –If a set of sequents X is a forwards reason for a sequent S, some member of X is newly concluded, and the other members of X have already been concluded, then conclude S. reason-backwards –If interest is adopted in a sequent S, and a set X of sequents is a backwards reason for S, then adopt interest in any members of X that have not already been concluded. If every member of X has been concluded, conclude S. discharge-interest –If interest was adopted in the members of X as a way of getting the sequent S, and some member of X is concluded and the other members of X have already been concluded, then conclude S.

Generalized Backwards Reasons This is inadequate for reductio2: reductio2 (q & ~q)/X  {~p} p/X The proper interpretation of this rule should be: Given an interest in p/X, suppose {~p}. Then for each conclusion q/X  {~p} drawn relative to the reductio supposition, adopt interest in ~q/X  {~p}. When such a contradiction is concluded, conclude p/X. Generalized backwards reasons have both forwards and backwards premises: example:(  x)(Fx  Gx)/X (forwards premise) Fa/X (backwards premise) Ga/X

Generalized Forward Reasons We can also allow forwards reasons to have backwards premises as well as forwards premises. The intent is that once the forwards premises have been instantiated by conclusions, we adopt interest in the backwards premises. reason-forwards –If a triple  X,Y,S  instantiates a forward reason-schema, some member of X is newly concluded, and the other members of X have already been concluded, then adopt interest in the first member of Y that has not already been concluded. If every member of Y has been concluded, conclude S.

reason-backwards –Given a new interest in a sequent S such that for some X,Y, the triple  X,Y,S  instantiates a backward reason-schema and all members of X have already been concluded, then adopt interest in the first member of Y that has not already been concluded. If every member of Y has been concluded, conclude S. If some members of X have not been concluded, then simply record X,Y as a potential reason for S, for use by discharge-interest. discharge-interest –If  X,Y,S  instantiates a backward reason-schema, interest has been adopted in S, some member of X is newly concluded and all other members of X have already been concluded, adopt interest in the first member of Y that has not already been concluded. If every member of Y has been concluded, conclude S. –If  X,Y,S  instantiates a forward reason-schema, all members of X have already been concluded, and some member of Y is newly concluded, adopt interest in the first member of Y that has not already been concluded. If every member of Y has been concluded, conclude S.

reason- inference- Interest-Driven Reasoning inference- graph interest- graph input ultimate- epistemic- interests forward s reason- backwards queue discharge- interests

conclusion reason forwards conclusion reason forwards interest validates discharge- link discharge- link target interest reason backwards make inference from link discharge link reason forwards discharge interest validates interest-link Backwards reasoning and the discharge of interest-links. partially instantiated backwards premise instantiated premise instantiated premise partially instantiated forwards premise partially instantiated backwards premise partially instantiated forwards premise interest- scheme conclusion matches premise conclusion matches premise discharge interest- scheme discharge interest discharge interest reason backwards reason backwards conclusion

Defining Reason-Schemas (def-forwards-reason symbol :forwards-premises list of formulas :backwards-premises list of formulas :conclusions list of formulas :variables list of symbols) (def-backwards-reason symbol :conclusions list of formulas :forwards-premises list of formulas :backwards-premises list of formulas :variables list of symbols)

Defining Reason-Schemas (def-forwards-reason MODUS-PONENS :conclusions Q :forwards-premises P (P  Q) :variables P Q) (def-backwards-reason ADDITION :conclusions (P&Q) :backwards-premises P Q :variables P Q) examples of reasoning in the propositional calculus

Quantifiers — Instantiation Rules Forwards reasons : quantifier negation eliminations: infer (  x)—P from ~(  x)P infer (  x)—P from ~(  x)P universal instantiation: infer Sb(c,x)P / X from (  x)P / X where c is a term already occurring in some conclusion Q/Y such that Y  X and Sb(c,x)P results from substituting c for all free occurrences of x in P. If there are no such terms, infer / X from (  x)P / X. existential instantiation: infer / X from (  x)P / X is a constant that has not previously occurred in any conclusions. Auxiliary rule for forwards reasoning: If Q/Y is a newly adopted conclusion, then for each conclusion of the form (  x)P / X such that Y  X, infer Sb(c,x)P / X from (  x)P / X where c is a term occurring in Q/Y but not occurring in any previous conclusions.

Quantifiers - instantiation rules Backwards reasons: quantifier negation introductions: adopt interest in (  x)—P to infer ~(  x)P adopt interest in (  x)—P to infer ~(  x)P universal generalization: adopt interest in Sb(^x,x)P / X to infer (  x)P / X, where ^x is a free variable that has not previously occurred in any conclusions. existential generalization: adopt interest in Sb(c,x)P / X to infer (  x)P / X where c is a term already occurring in some conclusion Q/Y such that Y  X. If there are no such terms, adopt interest in / X to infer (  x)P / X. Auxiliary rule for backwards reasoning: If Q/Y is a newly adopted conclusion, then for each interest of the form (  x)P / X  such that Y  X, adopt interest in Sb(c,x)P / X to infer (  x)P / X where c is a term occurring in Q/Y but not occurring in any previous conclusions.

Quantifiers — Skolemization and Unification In forwards-reasoning, universally bound variables are instantiated by free variables (this is the rule UI), and existentially bound variables are instantiated by skolem-functions whose arguments are all the free variables already occurring in the formula (this is EI). In backwards-reasoning, existentially bound variables are instantiated by free variables (this is the rule EG), and universally bound variables are instantiated by skolem-functions whose arguments are all the free variables already occurring in the formula (this is UG). Forwards reasoning and interest-discharge then use unification.

Deductive Reasoning in OSCAR OSCAR is surprisingly efficient as a deductive reasoner. –In a recent comparison with the the highly respected OTTER resolution-refutation theorem prover on a set of 163 problems chosen by Geoff Sutcliffe from the TPTP theorem proving library: »OTTER failed to get 16 »OSCAR failed to get 3 »On problems solved by both theorem provers, OSCAR (written in LISP) was on the average 40 times faster than OTTER (written in C) OSCAR’s advantage lies in its startling efficiency in proof-search. Completeness and Soundness of Natural Deduction examples

For further discussion, see the technical report “Natural Deduction”