Lecture 6 CS 1813 – Discrete Mathematics

Slides:



Advertisements
Similar presentations
Introduction to Theorem Proving
Advertisements

Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
Logic Use mathematical deduction to derive new knowledge.
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.
CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page 1 Lecture 3 CS 1813 – Discrete Mathematics Truth Inference and the Logical Way.
Advanced Formal Methods Lecture 6: Isabelle - HOL Mads Dam KTH/CSC Course 2D1453, Material from L. Paulson.
Formal Logic Proof Methods Direct Proof / Natural Deduction Conditional Proof (Implication Introduction) Reductio ad Absurdum Resolution Refutation.
CSE (c) S. Tanimoto, 2008 Propositional Logic
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
Reading: Chapter 4, section 4 Nongraded Homework: Problems at the end of section 4. Graded Homework #4 is due at the beginning of class on Friday. You.
EE1J2 – Discrete Maths Lecture 5 Analysis of arguments (continued) More example proofs Formalisation of arguments in natural language Proof by contradiction.
No new reading for Monday or Wednesday Exam #2 is next Friday, and we’ll review and work on proofs on Monday and Wed.
EE1J2 – Discrete Maths Lecture 4 Analysis of arguments Logical consequence Rules of deduction Rules of equivalence Formal proof of arguments See: Anderson,
Mathematical Induction Assume that we are given an infinite supply of stamps of two different denominations, 3 cents and and 5 cents. Prove using mathematical.
CS2013 Maths for Computing Science Proof (part b) Adam Wyner University of Aberdeen Computing Science.
CSNB143 – Discrete Structure Topic 5 – Induction Part I.
MATH 224 – Discrete Mathematics
1 Inference Rules and Proofs (Z); Program Specification and Verification Inference Rules and Proofs (Z); Program Specification and Verification.
Chapter Six Sentential Logic Truth Trees. 1. The Sentential Logic Truth Tree Method People who developed the truth tree method: J. Hintikka— “model sets”
CSci 2011 Discrete Mathematics Lecture 6
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page 1 Lecture 7 CS 1813 – Discrete Mathematics Equational Reasoning Back to the Future:
Propositional Calculus – Methods of Proof Predicate Calculus Math Foundations of Computer Science.
Natural Deduction CS 270 Math Foundations of CS Jeremy Johnson.
1 CMSC 250 Discrete Structures CMSC 250 Lecture 1.
1 Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 2: Logic & Incidence Geometry Back To the Very Basic Fundamentals.
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.
Natural Deduction System for First Order Logic Student: Wei Lei Instructor: W. M. Farmer Department of Computing and Software McMaster University, Hamilton,
assumption procedures
Introductory Logic PHI 120 Presentation: “Solving Proofs" Bring the Rules Handout to lecture.
CS6133 Software Specification and Verification
CSE 311 Foundations of Computing I Lecture 9 Proofs and Set Theory Autumn 2012 CSE
CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page 1 Lecture 2 CS 1813 – Discrete Mathematics Proofs Propositions and Calculuses.
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.
CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page 1 Lecture 19 CS 1813 – Discrete Mathematics Trees and Inductive Definitions.
Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson.
Proof by Contradiction CS 270 Math Foundations of CS Jeremy Johnson.
1 Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 2: Logic & Incidence Geometry Back To the Very Basic Fundamentals.
CSE 311 Foundations of Computing I Lecture 8 Proofs Autumn 2011 CSE 3111.
1 Introduction to Abstract Mathematics Proof Methods , , ~, ,  Instructor: Hayk Melikya Purpose of Section:Most theorems in mathematics.
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
2. The Logic of Compound Statements Summary
Proof by Contradiction
Methods of proof Section 1.6 & 1.7 Wednesday, June 20, 2018
Lecture 4 CS 1813 – Discrete Mathematics
Lecture 12 CS 1813 – Discrete Mathematics
For Friday, read Chapter 4, section 4.
Lecture 13 CS 1813 – Discrete Mathematics
Elementary Metamathematics
7.1 Rules of Implication I Natural Deduction is a method for deriving the conclusion of valid arguments expressed in the symbolism of propositional logic.
CS 1813 – Discrete Mathematics
The Foundations: Logic and Proofs
Lecture 16 CS 1813 – Discrete Mathematics
CS201: Data Structures and Discrete Mathematics I
Quizzes CS 1813 – Discrete Mathematics
Logic Use mathematical deduction to derive new knowledge.
CS 270 Math Foundations of CS
Lecture 11 CS 1813 – Discrete Mathematics
Applied Discrete Mathematics Week 1: Logic
Computer Security: Art and Science, 2nd Edition
Lecture 5 CS 1813 – Discrete Mathematics
Reasoning with the Propositional Calculus
Reasoning with the Propositional Calculus
Lecture 8 CS 1813 – Discrete Mathematics
Proof Tactics, Strategies and Derived Rules
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.
CS201: Data Structures and Discrete Mathematics I
Introductory Logic PHI 120
Presentation transcript:

Lecture 6 CS 1813 – Discrete Mathematics Lecture 6 - CS 1813 Discrete Math, University of Oklahoma 11/18/2018 Lecture 6 CS 1813 – Discrete Mathematics toBe  (toBe) and Other Conundrums CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

The Discharge When Do You Do It? When you cite one of the following rules I discharge 1 assumption E discharge 2 assumptions RAA discharge 1 assumption Why these particular rules? They have turnstiles among their premises No other rules have this sequents as premises No other rule triggers a discharge When you cite any other rule or theorem to justify a deduction in a proof, do not discharge any assumption CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

The Discharge What Assumption Do You Do It To? Lecture 6 - CS 1813 Discrete Math, University of Oklahoma 11/18/2018 The Discharge What Assumption Do You Do It To? Find conclusion of sequent triggering discharge In subtree above conclusion, find leaf that matches rule Discharge all identical assumptions in the subtree In the end, remaining leaves are theorem premises a |– b  {I} ab discharge {IL} a  b {E} {I} a a  False False (a  b)  False triggers 1 discharge Before clicking to bring up orange animation pointing out False/b connection, ask a student from class to identify the conclusion of the sequent triggering the discharge. Before proceeding to the “Discharge all identical” line, ask a student in class to identify the subtree above the conclusion of the sequent triggering the discharge. In this example, the proposition “a” occurs as an assumption at only one point in the subtree corresponding to the sequent triggering the discharge. But, in other examples, the assumption a could occur in several places. Before, going to the “In the end” line, ask a student in class to identify places in this example where assumptions occur. Get the student to recognize that assumptions correspond to leaves in the tree. Therefore, the propositions residing at leaves that remain undischarged at the end of the proof are the assumptions of the theorem proved by the tree-proof. CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

How to Match for Discharge Lecture 6 - CS 1813 Discrete Math, University of Oklahoma 11/18/2018 How to Match for Discharge discharged assumption in a |– b subtree must be identical to the formula corresponding to a in ab Implication Introduction a |– b  {I} a  b I rule discharged assumption in a |– c subtree must be identical to the formula corresponding to a in ab a  b a |– c b |– c {E} c Or Elimination similar for b |– c subtree, except matching b in ab Note: RAA rule not illustrated in any proofs given so far. Comes up later in this lecture. For now, just observe formal structure of discharges in these 3 rules. a |– False {RAA} a Reductio ad Absurdum discharged assumption in a |– False subtree must be identical to a where a is formula below line CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

Tree A Mathematical Entity Informal definition tree: a branch or a leaf branch: an item of information, together with a collection of trees More formal definition tree ::= branch | leaf leaf ::= data branch ::= (data, tree-sequence) tree-sequence ::= sequence in which each component is a tree data and sequence not defined assumed to be terms already understood (1, [(2, [3, 4] ), 5] ) 2 1 4 3 5 CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

Representation of Trees an example leaf data Proof = Assume Prop | AndI (Proof, Proof) Prop | AndEL Proof Prop | AndER Proof Prop | OrIL Proof Prop | OrIR Proof Prop | OrE (Proof, Proof, Proof) Prop | ImpI Proof Prop | ImpE (Proof, Proof) Prop | ID Proof Prop | CTR Proof Prop | RAA Proof Prop | Use Theorem [Proof] Prop a Proof is a tree “sequence” of trees . data branch CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

A Proof Using Contradiction a  b, a |– b (disjunctive syllogism) False {CTR} a use CTR rule Plan Derive b from a Derive b from b Cite E a  b a |– c b |– c {E} c   a  b b b {E} b a  a { +&- } remaining assumptions discharge what? False {CTR} {ID} CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

CS 1813 Discrete Mathematics, Univ Oklahoma Reductio ad Absurdum (a) { F} a Double Negation Fwd (a) |– a Plan Derive False from a, given (a) Conclude a (citing RAA) a |– False {RAA} a a (a)  What rule for this? { +&- } remaining assumption False {RAA} a discharge what? CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

Law of the Excluded Middle |– (a)  a Plan Derive False from ((a)  a) Conclude (a)  a, citing RAA a |– False {RAA} a {()ER} a ((a)  a) ((a)  a) {()EL} (a)  False { +&- } {RAA} (a)  a discharge what? (a  b) {()ER} b anything else? conclusion What assumptions remain? CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

DeMorgan’s Law —  Forward (a  b) |– (a)  (b) Plan Derive a  b from ((a)  (b)) Note conflict with assumption Conclude (a)  (b), citing RAA (a  b) {DeMF} (a)(b) DeMorgan And Fwd Discharge? ((a)  (b)) {()EL} (a) ((a)  (b)) {()ER} (b) {F} b {F} a {I} a  b (a  b)  False { +&- } {RAA} (a)  (b) CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

Lecture 6 - CS 1813 Discrete Math, University of Oklahoma 11/18/2018 End of Lecture CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page