1 / 28

74.757 Formal Logic

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

jolanta
Download Presentation

74.757 Formal Logic

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

  2. References • Direct Proof / Natural Deduction • Conditional Proof (Implication Introduction) • Reductio ad Absurdum • Resolution Refutation (Negation as Failure) • Tableaux • 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, seeFrost (handout) For 6, see Hughes&Creswell.

  3. Direct Proof • Axioms and Inference Rules of the Logic System (e.g. PC, FOPL) are given. • 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. • A chain of inferences, leading from the axioms (or a subset thereof) to the conclusion  is a proof of . • 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 validformulae of this logic system. • If proper axioms are used (i.e. a theory), the derived formula is a theorem of this theory.

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

  5. Conditional Proof (Implication Introduction) • State what you want to proof. • Make assumption (antecedent). This is start of (a part of) the proof. Each assumption has a scope. Scopes can be nested (like programs). • Derive formulae  (consequent), within the scope of an assumption, based on the assumption (and earlier consequents), through applying inference rules. • 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. • If you can finally introduce an implication reflecting the original formula, you are done.

  6. 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 .

  7. Resolution Refutation(Negation as Failure) • Transform formula into conjunctive normal form (CNF) = a conjunction of disjunctions of literals. (p1 ... pn )  ...  (q1 ... qm ) A literalis an atomic formula or its negation. Steps: • eliminate implications  • reduce the scope of negation  • apply distributivity rules to collect disjuncts

  8. Resolution Refutation(Negation as Failure) • Clause form A disjunction of literalswritten as aset. p  q  r  {p, q, r} Such a set {p, q, r}is called aclause. • Horn Clause If a clause contains at most one positive literal, it is called a Horn clause (  PROLOG). • Clause Set A conjunction of clauseswritten as aset. {{p, q, r} , {p, q, r}}((p  q  r)  (p  q  r)) Such a set is called aclause set (or Horn clause set).

  9. 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).

  10. 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 .

  11. 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?).

  12. 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.

  13. 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.

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

  15. Tableau Proof - Rules (Priest)

  16. Tableau Proof (example 1)

  17. Tableau Proof (example 2)

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

  19. Sequent Logic and Sequent Proofs see Frost, section 4.2.3, page 183ff. Sequent:A1, ..., Am C1, ..., Cn A1, ..., Am, C1, ..., Cn arbitrary formulae A1, ..., Am C1, ..., Cncorresponds to A1 ... Am C1 ... Cn inference in sequent calculus;not the same as  nor as |- Inference Rules in Sequent Logic: • Antecedent Introduction Rules • Consequent Introduction Rules • Modification Rules

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

  21. 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, a T  U, b (C ) T U, a b T  U, a T  U, b (C ) T U, a  b T U, a  b a, T  U (C ) T  U, a

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

  23. Resolution Theorem Provingin FOPL

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

  25. Prenex Form - Equivalences

  26. Skolemization

  27. Steps for Resolution in FOPL

  28. Resolution - Example

More Related