CS 1813 – Discrete Mathematics

Slides:



Advertisements
Similar presentations
Introduction to Proofs
Advertisements

Introduction to Theorem Proving
CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page 1 Lecture 3 CS 1813 – Discrete Mathematics Truth Inference and the Logical Way.
CS128 – Discrete Mathematics for Computer Science
CS1001 Lecture 22. Overview Mechanizing Reasoning Mechanizing Reasoning G ö del ’ s Incompleteness Theorem G ö del ’ s Incompleteness Theorem.
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.
EE1J2 – Discrete Maths Lecture 4 Analysis of arguments Logical consequence Rules of deduction Rules of equivalence Formal proof of arguments See: Anderson,
Adapted from Discrete Math
Methods of Proof & Proof Strategies
Formal Theories SIE 550 Lecture Matt Dube Doctoral Student - Spatial.
Introduction to Proofs
David Evans CS200: Computer Science University of Virginia Computer Science Class 24: Gödel’s Theorem.
MATH 224 – Discrete Mathematics
Chap. 2 Fundamentals of Logic. Proposition Proposition (or statement): an declarative sentence that is either true or false, but not both. e.g. –Margret.
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
1 Math/CSE 1019C: Discrete Mathematics for Computer Science Fall 2011 Suprakash Datta Office: CSEB 3043 Phone: ext
COS 150 Discrete Structures Assoc. Prof. Svetla Boytcheva Fall semester 2014.
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
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.
CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page 1 Lecture 7 CS 1813 – Discrete Mathematics Equational Reasoning Back to the Future:
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.
1 Introduction to Abstract Mathematics Expressions (Propositional formulas or forms) Instructor: Hayk Melikya
CS6133 Software Specification and Verification
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 3 The Foundations: Logic and Proof,
CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page 1 Lecture 2 CS 1813 – Discrete Mathematics Proofs Propositions and Calculuses.
Thinking in Methodologies Class Notes. Gödel’s Theorem.
Chapter 2 Fundamentals of Logic 1. What is a valid argument or proof?
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 01: Boolean Logic Sections 1.1 and 1.2 Jarek Rossignac.
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
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.
Chapter 1 Logic and proofs
2. The Logic of Compound Statements Summary
CSE15 Discrete Mathematics 02/01/17
Advanced Algorithms Analysis and Design
Chapter 4 (Part 1): Induction & Recursion
CSE15 Discrete Mathematics 01/23/17
Lecture 1 – Formal Logic.
COMP 1380 Discrete Structures I Thompson Rivers University
Methods of proof Section 1.6 & 1.7 Wednesday, June 20, 2018
Lecture 03 Logic and Propositional Calculus Profs. Koike and Yukita
COT 3100, Spr Applications of Discrete Structures
Discrete Mathematics Lecture # 2.
Lecture 4 CS 1813 – Discrete Mathematics
CS 1813 – Discrete Mathematics
Lecture 12 CS 1813 – Discrete Mathematics
Lecture 6 CS 1813 – Discrete Mathematics
Information Technology Department
Propositional Equivalence (§1.2)
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.
Sets and Logic…. Chapter 3
CS201: Data Structures and Discrete Mathematics I
Quizzes CS 1813 – Discrete Mathematics
Mathematical Reasoning
Methods of Proof. Methods of Proof Definitions A theorem is a valid logical assertion which can be proved using Axioms: statements which are given.
Lecture 22: Gödel’s Theorem CS200: Computer Science
CS 270 Math Foundations of CS
Lecture 11 CS 1813 – Discrete Mathematics
CS 220: Discrete Structures and their Applications
Applied Discrete Mathematics Week 1: Logic
First Order Logic Rosen Lecture 3: Sept 11, 12.
Back to “Serious” Topics…
The Method of Deduction
MA/CSSE 474 More Math Review Theory of Computation
Computer Security: Art and Science, 2nd Edition
Lecture 5 CS 1813 – Discrete Mathematics
Lecture 8 CS 1813 – Discrete Mathematics
COMP 1380 Discrete Structures I Thompson Rivers University
Mathematical Reasoning
CS201: Data Structures and Discrete Mathematics I
Presentation transcript:

CS 1813 – Discrete Mathematics Lecture 10 - CS 1813 Discrete Math, University of Oklahoma 11/22/2018 CS 1813 – Discrete Mathematics Review of Propositional Calculus CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

Truth Tables for Logical Operators P Q P  Q False False False False True False True False False True True True P  Q False True P  Q PQ PQ  P CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

Semantic Reasoning with Truth Tables Proposition (WFF): ((P  Q)((P)Q)) P Q False False False True True False True True (P  Q) (P) ((P)Q) ((PQ)((P)Q)) Some True: prop is Satisfiable False True False False True True True True True False True True All False: Contradiction (not satisfiable) If prop is True when all variables areTrue: P, Q ((PQ)((P)Q)) True False If they were all True: Tautology True True Formal statement about meaning Proved via truth table double turnstile CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

Lecture 10 - CS 1813 Discrete Math, University of Oklahoma 11/22/2018 Rules of Inference Discrete Mathematics with a Computer Springer, 2000 Fig 2.1, Hall/O’Donnell After presenting this slide, put up a copy on the overhead projector to refer to in upcoming proofs. CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

Some Intrinsic Data Structures in Haskell Lecture 10 - CS 1813 Discrete Math, University of Oklahoma 11/22/2018 Some Intrinsic Data Structures in Haskell Sequences (aka lists — in primitive PLs, done as linked lists) [x1, x2, …] all x’s must have same type Examples: [t] means a sequence with elements of type t [1, 9, 3, 27] type: [Integer] [And A B, Or P Q, B] type: [Prop] Tuples (like structs or records in other programming languages) (c1, c2) pair – components may have different types (c1, c2 , c3) 3-tuple (longer tuples OK—must be at least 2 components) Examples: (t1, t2) means a pair where component k has type tk (7, And A B) type: (Integer, Prop) (AndEL (Assume(A `And` B)) A, Assume B) type: (Proof, Proof) Constructors are things that build data of the type in which they appear as part of the definition. Proof Proof CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

Some Theorems in Rule Form a  b {Comm} b  a And Commutes a  b {Comm} b  a Or Commutes a a { +&- } False NeverBoth ab bc {Chain} ac Implication Chain Rule (a  b) {()Comm} (b  a) Not Or Commutes a  b b {modTol} a Modus Tollens a  b {conPosF} (b)(a) Contrapositive Fwd {noMiddle} a  (a) Law of Excluded Middle a  b {F} (a)  b Implication Fwd (a)  b {F} a  b Implication Bkw CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

More Theorems in Rule Form (a  b) {DeMF} (a)(b) DeMorgan Or Fwd (a)(b) {DeMB} (a  b) DeMorgan Or Bkw (a  b) {DeMF} (a)(b) DeMorgan And Fwd (a)(b) {DeMB} (a  b) DeMorgan And Bkw a  b a {disjSyll} b Disjunctive Syllogism (a) { F} a Double Negation Fwd a { B} (a) Double Negation Bkw CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

Laws of Boolean Algebra page 1 From Fig 2.1, Hall & O’Donnell, Discrete Math with a Computer, Springer, 2000 CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

Laws of Boolean Algebra page 2 From Fig 2.1, Hall & O’Donnell, Discrete Math with a Computer, Springer, 2000 CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

Some Theorems in Boolean Algebra (a  b)  b = b { absorption} (a  b)  b = b { absorption} (a  b)  c = (a  c)  (b  c) { imp} CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

Boolean Equations and Tautologies Tautology WFF that is true for all combinations of values of its atomic consituents Let p, q stand for arbitrary WFFs Suppose Boolean laws prove p = q Then the following WFFs are tautologies p  q q  p p  q CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

Theorems and Tautologies Let p, q, … stand for arbitrary WFFs p |– q If this is a theorem, then p  q is a tautology p, q, r |– s If this is a theorem, then (p  q  r)  s is a tautology |– p If this is a theorem, then p is a tautology CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

CS 1813 Discrete Mathematics, Univ Oklahoma What It All Means Notions of Consistency in Formal Systems If a |– b, then a |= b (a, b arbitrary WFFs) Completeness in Formal Systems If a |= b, then a |– b (a, b arbitrary WFFs) If b is true whenever a is, there is a proof of a |– b Propositional Logic Consistency — propositional logic is consistent Inference preserves tautologies Inconsistency would make all WFFs tautologies Some WFFs aren’t tautologies — QED (consistency) Completeness — propositional logic is complete That’s no surprise, is it? CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

Kurt Gödel — the first computer scientist Arithmetic is consistent comforting, but not surprising Arithmetic is not complete Some statements about numbers are consistent with all the axioms, but cannot be proved A humongous surprise for mathematicians in the 1930s Consistency and Completeness Impossible goal No formal system can be both Except stripped-down systems (less powerful than arithmetic) In essence, this has nothing to do with numbers It has to do with the limits of formal systems (computers) Über formal unentscheidbare Sätze der Principia Mathematica und verwandter Systeme I — Gödel, 1931 46 definitions + many lemmas precede main point Translation by Meltzer — $6.25, Amazon.com The recognition of Kurt Gödel as the first computer scientist is an insight of John Allen, a present-day logician and computer scientist, author of Anatomy of Lisp. CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

Practice Problem (a)  b |– a  b Implication Backward Lecture 10 - CS 1813 Discrete Math, University of Oklahoma 11/22/2018 Practice Problem (a)  b |– a  b Implication Backward a { B} (a)  b (a) {disjSyll} b {I} a  b Form teams of 5 students each. Give them the following practice problems, one at a time. Give them 8 to 10 minutes to work on a problem. Ask a successful team to present it’s solution to the class. CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

Practice Problem (a)  (b) |– b  a contrapositive backwards {conPosF} { F} { F} (b)  (a) b a {F} {IL} {IR} ((b))  (a) (b)  a (b)  a {E} (b)  a {B} b  a That’s ugly! There must be a better way. CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

Practice Problem (a)  (b) |– b  a contrapositive backwards Better way b { B} (a)  (b) (b) {modTol} (a) { F} a {I} b  a CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

Practice Problem a  ((a)  b) = a  b = (a  (a))  (a  b) { dist/} = False  (a  b) { comp} = (a  b)  False { commutes} = a  b { id} CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page

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