CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page 1 Lecture 3 CS 1813 – Discrete Mathematics Truth Inference and the Logical Way.

Slides:



Advertisements
Similar presentations
Discrete Math Methods of proof 1.
Advertisements

Introduction to Proofs
Logic 3 Tautological Implications and Tautological Equivalences
TR1413: Discrete Mathematics For Computer Science Lecture 3: Formal approach to propositional logic.
So far we have learned about:
TR1413: Discrete Mathematics For Computer Science Lecture 4: System L.
Introduction to Proofs ch. 1.6, pg. 87,93 Muhammad Arief download dari
Introduction to Proofs Goals 1.Introduce notion of proof & basic proof methods. 2.Distinguish between correct & incorrect arguments 3.Understand & construct.
Chapter 10 Sequences, Induction, and Probability Copyright © 2014, 2010, 2007 Pearson Education, Inc Mathematical Induction.
EE1J2 – Discrete Maths Lecture 5 Analysis of arguments (continued) More example proofs Formalisation of arguments in natural language Proof by contradiction.
Lecture , 3.1 Methods of Proof. Last time in 1.5 To prove theorems we use rules of inference such as: p, p  q, therefore, q NOT q, p  q, therefore.
Discrete Mathematics and its Applications
Fall 2002CMSC Discrete Structures1 Let’s proceed to… Mathematical Reasoning.
Methods of Proof & Proof Strategies
Intro to Discrete Structures
CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page 1 Lecture 18 CS 1813 – Discrete Mathematics Loops Without Invariants Are Like.
MATH 224 – Discrete Mathematics
March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 1Arguments Just like a rule of inference, an argument consists of one or more.
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page 1 Lecture 10 CS 1813 – Discrete Mathematics Quantify What? Reasoning with Predicates.
9.4 Mathematical Induction
1.1 Introduction to Inductive and Deductive Reasoning
1 CMSC 250 Discrete Structures CMSC 250 Lecture 1.
Theory of Computation, Feodor F. Dragan, Kent State University 1 TheoryofComputation Spring, 2015 (Feodor F. Dragan) Department of Computer Science Kent.
1 Lecture 3.3: Recursion CS 250, Discrete Structures, Fall 2012 Nitesh Saxena Adopted from previous lectures by Cinda Heeren, Zeph Grunschlag.
Programming Languages and Design Lecture 3 Semantic Specifications of Programming Languages Instructor: Li Ma Department of Computer Science Texas Southern.
CS6133 Software Specification and Verification
Formal Logic Mathematical Structures for Computer Science Chapter 1 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
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.
CS 103 Discrete Structures Lecture 13 Induction and Recursion (1)
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.
2.3 Methods of Proof.
CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page 1 Lecture 14 CS 1813 – Discrete Mathematics A Little Bit of Set Theory.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
Metalogic Soundness and Completeness. Two Notions of Logical Consequence Validity: If the premises are true, then the conclusion must be true. Provability:
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
1 Discrete Mathematical Mathematical Induction ( الاستقراء الرياضي )
Section 1.7. Section Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction.
1.2 Reasoning Mathematically Two Types of Reasoning Remember to Silence Your Cell Phone and Put It in Your Bag!
Reasoning and Proof Unit 2.
Formal Modeling Concepts
2-1 Patterns and Inductive Reasoning
Lecture 4 CS 1813 – Discrete Mathematics
Lecture 15 CS 1813 – Discrete Mathematics
CS 1813 – Discrete Mathematics
Lecture 12 CS 1813 – Discrete Mathematics
Lecture 6 CS 1813 – Discrete Mathematics
Lecture 13 CS 1813 – Discrete Mathematics
CS 1813 – Discrete Mathematics
Lecture 16 CS 1813 – Discrete Mathematics
CS201: Data Structures and Discrete Mathematics I
Quizzes CS 1813 – Discrete Mathematics
Mathematical Reasoning
Lecture 1 CS 1813 – Discrete Mathematics
CS 270 Math Foundations of CS
CS 220: Discrete Structures and their Applications
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
Lecture 8 CS 1813 – Discrete Mathematics
Foundations of Discrete Mathematics
Mathematical Reasoning
1.1 Introduction to Inductive and Deductive Reasoning
Chapter 2: Geometric Reasoning
CS201: Data Structures and Discrete Mathematics I
Agenda Proofs (Konsep Pembuktian) Direct Proofs & Counterexamples
Presentation transcript:

CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page 1 Lecture 3 CS 1813 – Discrete Mathematics Truth Inference and the Logical Way

CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page 2  Inference (courtesy of Merriam-Webster)  verb - the act of passing from one proposition, statement, or judgment considered as true to another whose truth is believed to follow from that of the former  noun – a proposition arrived at by inferring  Formal Inference (mathematical logic)  Object Language – notation for stating premises and conclusions WFFs form the object language  Inference Rules – ways to conclude new WFFs from proven WFFs  Metalanguage – notation for proofs of theorems  Formal Inference (Proof) – a set of assumptions together with an ordered collection of inference rules applied to reach a conclusion  Theorem (sequent) – a set of assumptions and a conclusion for which there is a formal inference (that is, a proof) Logical Inference

CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page 3 Theorem – a statement that can be proved premises (WFFs) conclusion (WFF) turnstile w 1, w 2, …, w n w Theorem Meaning of turnstile: If the premises are true, then there is a path through the rules of inference that leads to the conclusion Fact – a statement that is true (whether provable or not) w 1, w 2, …, w n w double turnstile We will focus on theorems rather than mere facts Theorems  Facts

CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page 4 Rules of Inference Fig 2.1, Hall/O’Donnell Discrete Mathematics with a Computer Springer, 2000 Conclusion (inferred) Premises (already proven)  Metavariables in rules stand for WFFs name of rule  Rule says: infer conclusion (bottom) if top (premises) has been proven — applying a rule is proves a theorem  Sequents in rules stand for proofs Can be any WFF Proof goes here

CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page 5 Theorem and Proof  Theorem (  Commutes)  a  b |– b  a  Proof a  b  {  E L } a a  b  {  E R } b  {  I} b  a proof of b given a  b 2 proofs needed to apply  I rule Step uses  E R rule assumption Proof(s) above line Conclusion below line {rule} Natural Deduction proof of a given a  b OK to reuse assumption of theorem Proofs form tree structure: Leaves = premises (assumptions) Root = conclusion Inference rule citations = branches Assumption stands in place of proof  {  I} a  b ab

CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page 6 Notation for Proof Checker  Theorem (  Commutes)  a  b |– b  a  Proof a  b  {  E L } a a  b  {  E R } b  {  I} b  a natural deduction format Theorem [A `And` B] (B `And` A) AndI (AndER (Assume(A `And` B)) B, AndEL (Assume(A `And` B)) A ) (B `And` A) Notation for Automated Proof Checker

CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page 7 Some Intrinsic Data Structures in Haskell  Sequences (aka lists — in primitive PLs, these are “linked lists”)  [x 1, x 2, …] all x’s must have same type  Examples: [t] is the type of a sequence whose elements have 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)  (c 1, c 2 ) pair – components may have different types  (c 1, c 2, c 3 ) 3-tuple (longer tuples OK—must be at least 2 components)  Examples: (t 1, t 2 ) means a pair where component k has type t k (7, And A B) type: (Integer, Prop) (AndEL (Assume(A `And` B)) A, Assume B) type: (Proof, Proof) Proof

CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page 8 Type Definitions in Haskell  data Prop = A | B | And Prop Prop | Or Prop Prop Type names start with capital letters Constructor names start with capital letters These constructors require two arguments of type Prop (Prop is an inductive type)  data Theorem = Theorem [Prop] Prop Only one constructor for this type First arg (premises) is a sequence whose elements have type Prop Second arg (conclusion) is a value of type Prop … Full definition of Prop type matches structure of WFF definition

CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page 9 Another Type Definition  data Proof = Assume Prop | AndI (Proof, Proof) Prop | AndEL Proof Prop | AndER Proof Prop Proof  {  I} Prop Proof  {  E L } Prop  Conclusion: each Proof constructor has a conclusion of type Prop (this represents the proven proposition)  Premises: Proof constructors have one or more premises  Each premise is a Proof (that is, an entity of type Proof)  Exception: the Assume constructor has no premises  Constructors: the full definition of the type Proof in the proof checker has one constructor for each inference rule......

CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page 10 End of Lecture 3