74.757 Formal Logic Proof Methods Direct Proof / Natural Deduction Conditional Proof (Implication Introduction) Reductio ad Absurdum Resolution Refutation.

Slides:



Advertisements
Similar presentations
Artificial Intelligence 8. The Resolution Method
Advertisements

Resolution Proof System for First Order Logic
Inference Rules Universal Instantiation Existential Generalization
1 A formula in predicate logic An atom is a formula. If F is a formula then (~F) is a formula. If F and G are Formulae then (F /\ G), (F \/ G), (F → G),
Knowledge & Reasoning Logical Reasoning: to have a computer automatically perform deduction or prove theorems Knowledge Representations: modern ways of.
Introduction to Theorem Proving
Propositional and First Order Reasoning. Terminology Propositional variable: boolean variable (p) Literal: propositional variable or its negation p 
Automated Reasoning Systems For first order Predicate Logic.
First Order Logic Resolution
Inference and Reasoning. Basic Idea Given a set of statements, does a new statement logically follow from this. For example If an animal has wings and.
We have seen that we can use Generalized Modus Ponens (GMP) combined with search to see if a fact is entailed from a Knowledge Base. Unfortunately, there.
For Friday No reading Homework: –Chapter 9, exercise 4 (This is VERY short – do it while you’re running your tests) Make sure you keep variables and constants.
Logic Use mathematical deduction to derive new knowledge.
13 Automated Reasoning 13.0 Introduction to Weak Methods in Theorem Proving 13.1 The General Problem Solver and Difference Tables 13.2 Resolution.
Logic Concepts Lecture Module 11.
Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus.
Prolog IV Logic, condensed. 2 Propositional logic Propositional logic consists of: The logical values true and false ( T and F ) Propositions: “Sentences,”
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
CSE (c) S. Tanimoto, 2008 Propositional Logic
1 Automated Reasoning Introduction to Weak Methods in Theorem Proving 13.1The General Problem Solver and Difference Tables 13.2Resolution Theorem.
Logic in Computer Science Transparency No Chapter 3 Propositional Logic 3.6. Propositional Resolution.
Inference and Resolution for Problem Solving
Logic in Computer Science Transparency No Chapter 3 Propositional Logic 3.6. Propositional Resolution 3.7. Natural Deduction.
Knoweldge Representation & Reasoning
Chapter 3 Propositional Logic
Artificial Intelligence
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.
Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus.
Knowledge & Reasoning Logical Reasoning: to have a computer automatically perform deduction or prove theorems Knowledge Representations: modern ways of.
CS1502 Formal Methods in Computer Science Lecture Notes 10 Resolution and Horn Sentences.
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
Inference is a process of building a proof of a sentence, or put it differently inference is an implementation of the entailment relation between sentences.
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.
Propositional Resolution Computational LogicLecture 4 Michael Genesereth Spring 2005.
Conjunctive normal form: any formula of the predicate calculus can be transformed into a conjunctive normal form. Def. A formula is said to be in conjunctive.
1 Chapter 8 Inference and Resolution for Problem Solving.
Marriage Problem Your the sovereign in a small kingdom. One of your jobs is to marry off the people in kingdom. There are three rules that apply.
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
CS344: Introduction to Artificial Intelligence Lecture: Herbrand’s Theorem Proving satisfiability of logic formulae using semantic trees (from Symbolic.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
Propositional calculus
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.
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
CS6133 Software Specification and Verification
Reasoning using First-Order Logic
第 1 6 章 谓词演算中的归结. 2 Outline Unification Predicate-Calculus Resolution Completeness and Soundness Converting Arbitrary wffs to Clause Form Using Resolution.
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.
For Wednesday Finish reading chapter 10 – can skip chapter 8 No written homework.
Knowledge Repn. & Reasoning Lec. #5: First-Order Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004.
1-1 An Introduction to Logical Programming Sept
1 Section 6.2 Propositional Calculus Propositional calculus is the language of propositions (statements that are true or false). We represent propositions.
Copyright 1999Paul F. Reynolds, Jr. Foundations of Logic Programming.
Introduction to Logic for Artificial Intelligence Lecture 2
Knowledge Representation and Reasoning
Resolution in the Propositional Calculus
Propositional Logic Resolution
Elementary Metamathematics
Logic Use mathematical deduction to derive new knowledge.
Natural deduction Gerhard Gentzen.
Biointelligence Lab School of Computer Sci. & Eng.
CS 416 Artificial Intelligence
Computer Security: Art and Science, 2nd Edition
Biointelligence Lab School of Computer Sci. & Eng.
Reasoning with the Propositional Calculus
Reasoning with the Propositional Calculus
Reasoning with the Propositional Calculus
Reasoning with the Propositional Calculus
Logic Logic is a discipline that studies the principles and methods used to construct valid arguments. An argument is a related sequence of statements.
RESOLUTION.
Presentation transcript:

Formal Logic Proof Methods Direct Proof / Natural Deduction Conditional Proof (Implication Introduction) Reductio ad Absurdum Resolution Refutation (Negation as Failure) Tableaux Induction

References 1.Direct Proof / Natural Deduction 2.Conditional Proof (Implication Introduction) 3.Reductio ad Absurdum 4.Resolution Refutation (Negation as Failure) 5.Tableaux 6.Induction For 1 see Frost (handout) or any other source. For 2 and 3, see Konyndyk (handout). For 4, see Frost (handout). Other sources as well. For 5, see Frost (handout) For 6, see Hughes&Creswell.

Direct Proof 1.Axioms and Inference Rules of the Logic System (e.g. PC, FOPL) are given. 2.Find a derivation from the set of universally valid formulas of the given logic, its axioms, with the conclusion  (the formula to be proven), by repeatedly applying inference rules and thus generating formulae. 3.A chain of inferences, leading from the axioms (or a subset thereof) to the conclusion  is a proof of . 4.If nothing else is used than the axioms and inference rules of the given logic system, the derived formulae are theorems of the logic system. They are universally valid formulae of this logic system. 5.If proper axioms are used (i.e. a theory), the derived formula is a theorem of this theory.

Natural Deduction 1.Use empty set of logical axioms and special sets of inference rules. 2.Inference rules are divided into Exploitation Rules and Introduction Rules. 3.To prove a formula, we make "assumption" (suppose P), and use inference rules, to derive formulae. 4.The assumption is the condition part in an implication formula, as a result of this process. 5.Reduce this formula until you derive the formula to be proven. There are different variations of this type of proof method.

Conditional Proof (Implication Introduction) 1.State what you want to proof. 2.Make assumption  (antecedent). This is start of (a part of) the proof. Each assumption has a scope. Scopes can be nested (like programs). 3.Derive formulae  (consequent), within the scope of an assumption, based on the assumption (and earlier consequents), through applying inference rules. 4.Terminate the assumption by adding a new line (outside the scope), stating the implication  (implication introduction). This discharges the assumption. You can also terminate an assumption by leaving its scope without conclusion. 5.If you can finally introduce an implication reflecting the original formula, you are done.

Reductio ad Absurdum (Negation Introduction) Reductio ad Absurdum is a modification of the Conditional Proof (Implication Introduction) method. Add: If you find two formulae  and  within the scope of an assumption , you can terminate the assumption with the conclusion .

Resolution Refutation (Negation as Failure) 1.Transform formula into conjunctive normal form (CNF) = a conjunction of disjunctions of literals. (p 1 ...  p n ) ...  (q 1 ...  q m ) A literal is an atomic formula or its negation. Steps: eliminate implications  reduce the scope of negation  apply distributivity rules to collect disjuncts

Resolution Refutation (Negation as Failure) 2.Clause form A disjunction of literals written as a set. p  q   r  {p, q,  r} Such a set {p, q,  r} is called a clause. 3.Horn Clause If a clause contains at most one positive literal, it is called a Horn clause (  PROLOG). 4.Clause Set A conjunction of clauses written as a set. {{p, q,  r}, {p, q, r}}  ((p  q   r)  (p  q  r)) Such a set is called a clause set (or Horn clause set).

Resolution Refutation (Negation as Failure) Principle of Resolution Refutation: Given a formula (in conjunctive NF / as clause set) ((p  q   r)  (  p   q  r)) Obviously, such a formula is not satisfiable, if each literal in one clause has a corresponding negated literal in the other clause (why?). Let's do this: If two clauses have the same atomic formula, one clause as positive literal, the other one as negative literal, then throw the literals of the two clauses together into one clause, crossing out positive literals and their negations, e.g. p and  p. The resulting clause is called the Resolvent (of the two clauses).

The Resolution Rule Resolution Rule: If two clauses contain the same atomic formula, one clause as a positive literal, the other clause as a negative literal, then throw the literals of both clauses together into one clause, crossing out positive literals and their negations, e.g. p and  p, one each from each clause. The resulting clause is called the Resolvent (of the two clauses). Duplicates have to be removed, e.g. p, p. Continue this process until you either cannot build a new resolvent, or until you resolve the empty clause. If you derive the empty clause, the negated assumption has been proven to be contradictory with the other (true) formulae. Thus, the (negated) assumption is false, and the (positive) assumption must therefore be true. This means that the to be proven formula β can be derived from the given set of formulae .

Resolution Refutation (Negation as Failure) Principle of Resolution Refutation (contd.): If we have several clauses in a clause set, like: ((p  q   r)  (  p   q)  (  q  r)) we can resolve incrementally, in each single step building the resolvent of two clauses. If we get at some point in time an empty clause, we are done (why?).

FOPL and Proof Theory A logic system is decidable, if it is always possible to determine whether a theory is consistent or not. A logic system is semi-decidable, if it is always possible to determine inconsistency but not always possible to determine consistency. !Full FOPL is semi-decidable. !Function-free FOPL is decidable.

Tableau Proof Methods see Priest, section 1.5, page 8ff, and Frost, section 4.2.5, page 186ff. The basis of the Tableau Proof method is to find out whether a formula (to be proven)  leads to a contradiction with a true formula (like a logical axiom or proper axiom) . We construct a tree of formulae starting with the initial formulae (the true formula) and the negated conclusion, i.e. the formulae to be proven in negated form. Successively split up the formulae (according to reverse inference rules) in order to derive simpler formulae. Similar to resolution, branches of the tree which contain a formula and its negation are closed. They are "cut out". If every branch of a tableau closes, the tableau is compete and the proof is done.

Tableau Proof see Priest, section 1.5, page 8ff Steps to set up the Tableau (as tree): 1.Write assumption and negated conclusion under each other. Formulae underneath each other are conjunctive. 2.Split formulae (if necessary take out implications). 3.Conjunctively joint sub-formulae go into the same branch of the tree, under each other. 4.Disjunctively joined sub-formulae go into separate sub- branches of the tree. 5.Compare atomic propositions in the branches. 6.If a branch contains a proposition and its negation, it will be closed. Write x on its leaves. 7.If all branches are closed, the tableau is complete. Done.

Tableau Proof - Rules (Priest)

Tableau Proof (example 1)

Tableau Proof (example 2)

Tableau Proof with Inverse Sequent Rules (Frost) see Frost, section 4.2.5, page 186ff. Steps to set up the Tableau (as table): 1.Write true formula  and to be proven conclusion  on two sides of a column. (  left and  right) 2.Apply inverse sequent logic rules (  inverse inference rules). 1)E.g. substitute P  Q by P and Q in same column. 2)E.g. substitute R  S on the right side by adding R to the left side and S to the right side. 3.If the same atomic formula appears on both sides, the tableau closes. Done.

Sequent Logic and Sequent Proofs see Frost, section 4.2.3, page 183ff. Sequent:A 1,..., A m  C 1,..., C n A 1,..., A m, C 1,..., C n arbitrary formulae A 1,..., A m  C 1,..., C n corresponds to A 1 ...  A m  C 1 ...  C n  inference in sequent calculus; not the same as  nor as |- Inference Rules in Sequent Logic:  Antecedent Introduction Rules  Consequent Introduction Rules  Modification Rules

Sequent Logic and Sequent Proofs see Frost, section 4.2.3, page 183ff. Inference Rules in Sequent Logic:  Antecedent Introduction Rules T  U, ab, W  x (A  ) a  b, T, W  U, x a, T  Ub, T  U (A  ) a  b, T  Ua  b, T  U a, T  U b, T  U (A  ) a  b, T  U T  U, a (A  )  a, T  U

Sequent Logic and Sequent Proofs see Frost, section 4.2.3, page 183ff. Inference Rules in Sequent Logic:  Consequent Introduction Rules a, T  U, b (C  ) T  U, a  b T  U, aT  U, b (C  ) T  U, a  b T  U, a T  U, b (C  ) T  U, a  bT  U, a  b a, T  U (C  ) T  U,  a

Sequent Logic and Sequent Proofs see Frost, section 4.2.3, page 183ff. Inference Rules in Sequent Logic:  Modification Rules T  UT  U Thinning / Weakening a, T  U T  U, a a, a, T  UT  U, a, a Contraction a, T  UT  U, a T, a, b, U  WT  U, a, b, W Interchange T, b, a, U  W T  U, b, a, W T  U, aa, W  x Cut T, W  U, x

Resolution Theorem Proving in FOPL

see Frost, section and 4.4, page 227ff. Principle of Resolution Refutation in FOPL: 1.Bring formula into prenex form, i.e. move all quantifiers to the left end (apply equivalences). Change variable- names if necessary (rectification). 2.In negatively quantified formulae, replace their bound variables with Skolem-functions (or -constants). 3.Introduce Skolem-Constants to replace existentially quantified variables. 4.Remaining formula in Skolem NF contains only (implicitly) all quantified variables.

Prenex Form - Equivalences

Skolemization

Steps for Resolution in FOPL

Resolution - Example