1 Propositional Logic: Fundamental Elements for Computer Scientists 0. Motivation for Computer Scientists 1. Propositions and Propositional Variables 2.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

Chapter 2 Fundamentals of Logic Dept of Information management National Central University Yen-Liang Chen.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
CS128 – Discrete Mathematics for Computer Science
Discrete Mathematics Lecture 1 Logic of Compound Statements Harper Langston New York University.
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
1 Math 306 Foundations of Mathematics I Math 306 Foundations of Mathematics I Goals of this class Introduction to important mathematical concepts Development.
Discrete Mathematics Math 6A Instructor: M. Welling.
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.
Chapter 2: The Logic of Compound Statements 2.1 Logical Forms and Equivalence 12.1 Logical Forms and Equivalences Logic is a science of the necessary laws.
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.
Adapted from Discrete Math
Discrete Mathematics Goals of a Discrete Mathematics Learn how to think mathematically 1. Mathematical Reasoning Foundation for discussions of methods.
Intro to Discrete Structures
Propositions and Truth Tables
MATERI II PROPOSISI. 2 Tautology and Contradiction Definition A tautology is a statement form that is always true. A statement whose form is a tautology.
Discrete Mathematics and Its Applications
Mathematical Structures A collection of objects with operations defined on them and the accompanying properties form a mathematical structure or system.
BY: MISS FARAH ADIBAH ADNAN IMK. CHAPTER OUTLINE: PART III 1.3 ELEMENTARY LOGIC INTRODUCTION PROPOSITION COMPOUND STATEMENTS LOGICAL.
MATH 224 – Discrete Mathematics
Review I Rosen , 3.1 Know your definitions!
Chap. 2 Fundamentals of Logic. Proposition Proposition (or statement): an declarative sentence that is either true or false, but not both. e.g. –Margret.
10/17/2015 Prepared by Dr.Saad Alabbad1 CS100 : Discrete Structures Proof Techniques(1) Dr.Saad Alabbad Department of Computer Science
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
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.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Chapter 7 Review Important Terms, Symbols, Concepts 7.1. Logic A proposition is a statement (not a question.
The Foundations Logic and Proofs by raedRASHEED 2014.
1 CMSC 250 Discrete Structures CMSC 250 Lecture 1.
DISCRETE COMPUTATIONAL STRUCTURES
January 30, 2002Applied Discrete Mathematics Week 1: Logic and Sets 1 Let’s Talk About Logic Logic is a system based on propositions.Logic is a system.
CSE 311 Foundations of Computing I Lecture 7 Logical Inference Autumn 2012 CSE
CompSci 102 Discrete Math for Computer Science
1 Introduction to Abstract Mathematics Expressions (Propositional formulas or forms) Instructor: Hayk Melikya
Propositional Logic ITCS 2175 (Rosen Section 1.1, 1.2)
Chapter 2 Logic 2.1 Statements 2.2 The Negation of a Statement 2.3 The Disjunction and Conjunction of Statements 2.4 The Implication 2.5 More on Implications.
1 Introduction to Abstract Mathematics Predicate Logic Instructor: Hayk Melikya Purpose of Section: To introduce predicate logic (or.
Chapter 1: The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and Proofs
The Foundations: Logic and Proof, Sets, and Foundations PROPOSITIONS A proposition is a declarative sentence that is either True or False, but not the.
Chapter 2 With Question/Answer Animations. Section 2.1.
Symbolic Logic The Following slide were written using materials from the Book: The Following slide were written using materials from the Book: Discrete.
CSE 311: Foundations of Computing Fall 2013 Lecture 8: Proofs and Set theory.
Week 4 - Friday.  What did we talk about last time?  Floor and ceiling  Proof by contradiction.
CSE 311 Foundations of Computing I Lecture 8 Proofs Autumn 2012 CSE
Mathematics for Comter I Lecture 3: Logic (2) Propositional Equivalences Predicates and Quantifiers.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
Methods of Proof Lecture 4: Sep 20 (chapter 3 of the book, except 3.5 and 3.8)
Chapter 2 1. Chapter Summary Sets (This Slide) The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions.
Chapter 1 Logic and proofs
Chapter 1 Propositional Logic
2. The Logic of Compound Statements Summary
Propositional Logic.
Advanced Algorithms Analysis and Design
Discrete Mathematics Lecture 1 Logic of Compound Statements
Discrete Mathematics Logic.
Thinking Mathematically
Lecture 03 Logic and Propositional Calculus Profs. Koike and Yukita
MATH 245 Spring 2009 This is mathematics for computer science
Information Technology Department
CHAPTER 1: LOGICS AND PROOF
CSE 311 Foundations of Computing I
Discrete Mathematics and Its Applications Kenneth H
Elementary Number Theory & Proofs
Discrete Mathematics Logic.
Discrete Mathematics CMP-200 Propositional Equivalences, Predicates & Quantifiers, Negating Quantified Statements Abdul Hameed
Foundations of Discrete Mathematics
Logic Logic is a discipline that studies the principles and methods used to construct valid arguments. An argument is a related sequence of statements.
Propositional Satisfiability
Presentation transcript:

1 Propositional Logic: Fundamental Elements for Computer Scientists 0. Motivation for Computer Scientists 1. Propositions and Propositional Variables 2. Operators 3. Truth Tables 4. Compound Propositions and Functions 5. Completeness of a Set of Operators 6. Tautologies and their significance in Proofs

2 0. Motivation for Computer Scientists Practice: to define, verify, check, etc real systems. Theory: Foundation of proof techniques, (and all other rational arguments).

3 1A. Propositions Definition: Propositions are unambiguous declarative statements which are either True (T) or False (F). Examples: is a true proposition. “Washington, DC is the capital of the U.S.” is a true proposition. is a false proposition. is not a proposition. Its truth value depends on. “Athens is in Georgia” is not a proposition. It is ambiguous. Athens, GA or Athens, Greece ? “What time is it?” is not a proposition. It is not declarative.

4 1A. Propositions (continued) Propositions can be more complex and interesting. Here are some further examples: “For every integer n, there exists an integer m, such that m is strictly greater than n” is also a true proposition. It is more complex because it involves statements like “for every” and “there exists”. But otherwise it says something pretty obvious.

5 1A. Propositions (continued) And yet another example: “For every prime number p, there exists a prime number q, such that q is strictly greater than q” is a true proposition. This is a very interesting proposition, because it is actually true. It’s truth implies that there are infinitely many prime numbers. This is a primordial mathematical fact. (“Primes are to numbers what notes are to music.”) It’s truth is also of major practical significance in cryptography, where increasingly larger prime numbers are needed to encrupt and decrypt messages.

6 1B. Propositional Variables Definition: Propositional variables are variables whose value is either T (true) or F (false). Notation: Just as we mostly use k, l, m, n to denote integer variables, or x, y, z to denote real variables, we mostly use p, q, (and to a lesser extend r, s, t) to denote propositional variables.

7 2. Operators Motivation: Eventually, beyond single one statement propositions, we want to express somewhat more interesting statements. Operators are the building blocks allowing us to express complex propositions, when we start from very simple propositions. Examples:

8 2. Operators (continued) Definition: Operators are functions from a finite set of propositional variables to the set Ok, ok, this is too formal right now… just move on to the next slide and it will be completely clear. Then come back to this slide and see what this definition is talking about.

9 3. Truth Tables Truth Table for NEGATION Truth Table for logical AND Truth Table for logical OR

10 3. Truth Tables Truth Table for logical IMPLICATION (continued) Note: Do not confuse this logical implication with “if” … “then” … commands in programming languages.

11 4. Compound Propositions and Functions Example: We usually denote this as

12 5. Completeness of a Set of Operators The set of operators are very important because they form a complete set: any compound proposition or function can be expressed in terms of For example, is exactly the same as For further example, is exactly the same as In general, we can use the operators to express the combinations of truth values of the variables that make the general function true.

13 6. Tautologies and their significance in Proofs Definition: A tautology is a function which is always true, ie, it is true for all combinations of truth values of the variables. Tautologies and Proofs: There is small set of tautologies that expresses many fundamental proof methods.

14 6. Tautologies and their significance in Proofs (continued) Here are some basic tautologies. De Morgan’s Laws:

15 6. Tautologies and their significance in Proofs (continued) Modus Ponens, aka Direct Proof it means reduction to a more general principal:

16 6. Tautologies and their significance in Proofs (continued) ModusTollens, aka Proof by Contradiction:

17 6. Tautologies and their significance in Proofs (continued) Contraposition:

18 6. Tautologies and their significance in Proofs (continued) Hypothetical Syllogism: