Discrete Mathematics Math 6A Instructor: M. Welling.

Slides:



Advertisements
Similar presentations
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 1: (Part 2): The Foundations: Logic and Proofs.
Advertisements

Propositions and Connectives Conditionals and Bi-conditionals Quantifiers.
CS128 – Discrete Mathematics for Computer Science
First Order Logic. Propositional Logic A proposition is a declarative sentence (a sentence that declares a fact) that is either true or false, but not.
CSE115/ENGR160 Discrete Mathematics 01/20/11 Ming-Hsuan Yang UC Merced 1.
Adapted from Discrete Math
Predicates and Quantifiers
The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and Proofs
Discrete Mathematics Goals of a Discrete Mathematics Learn how to think mathematically 1. Mathematical Reasoning Foundation for discussions of methods.
The Foundations: Logic and Proofs
Logical Equivalence & Predicate Logic
Propositions and Truth Tables
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
MATH 213 A – Discrete Mathematics for Computer Science Dr. (Mr.) Bancroft.
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.
1 Logic Logic is a discipline that studies the principles and methods used in correct reasoning It includes: A formal language for expressing statements.
Chapter 1: The Foundations: Logic and Proofs
BY: MISS FARAH ADIBAH ADNAN IMK. CHAPTER OUTLINE: PART III 1.3 ELEMENTARY LOGIC INTRODUCTION PROPOSITION COMPOUND STATEMENTS LOGICAL.
Fall 2002CMSC Discrete Structures1 Let’s get started with... Logic !
The Foundations Logic and Proofs by raedRASHEED 2014.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
Lecture Propositional Equivalences. Compound Propositions Compound propositions are made by combining existing propositions using logical operators.
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.
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.
Chapter 1: The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and Proofs
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 1 The Foundations: Logic and Proofs Predicates and Quantifiers.
Discrete Structures – CNS 2300
Chapter 2 Symbolic Logic. Section 2-1 Truth, Equivalence and Implication.
CSNB143 – Discrete Structure Topic 4 – Logic. Learning Outcomes Students should be able to define statement. Students should be able to identify connectives.
Chapter 2 Fundamentals of Logic 1. What is a valid argument or proof?
Discrete Mathematics Mathematical reasoning: think logically; know how to prove Combinatorial analysis: know how to count Discrete structures: represent.
Section 1.1. Propositions A proposition is a declarative sentence that is either true or false. Examples of propositions: a) The Moon is made of green.
 To combine propositions using connectives  To construct the truth table of a given compound proposition  To define de Morgan Law for logic  To define.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
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.
CS104 The Foundations: Logic and Proof 1. 2 What is Discrete Structure?  Discrete Objects  Separated from each other (Opposite of continuous)  e.g.,
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.
Introduction to Discrete Mathematics Discrete Mathematics: is the part of mathematics devoted to the study of discrete objects. Discrete Mathematics is.
Chapter 1. Chapter Summary  Propositional Logic  The Language of Propositions (1.1)  Logical Equivalences (1.3)  Predicate Logic  The Language of.
Chapter 1 Logic and proofs
Advanced Algorithms Analysis and Design
CSE15 Discrete Mathematics 01/23/17
DISCRETE MATHEMATICS CHAPTER I.
CSNB 143 Discrete Mathematical Structures
6/20/2018 Arab Open University Faculty of Computer Studies M131 - Discrete Mathematics 6/20/2018.
CPCS222 Discrete Structures I
CMSC Discrete Structures
Chapter 1 The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
Principles of Computing – UFCFA3-30-1
CSCI 3310 Mathematical Foundation of Computer Science
CS100: Discrete structures
Information Technology Department
CHAPTER 1: LOGICS AND PROOF
(1.4) An Introduction to Logic
Discrete Mathematics and Its Applications Kenneth H
Discrete Mathematics CMP-200 Propositional Equivalences, Predicates & Quantifiers, Negating Quantified Statements Abdul Hameed
Cs Discrete Mathematics
Predicates and Quantifiers
1.2 Propositional Equivalences
The Foundations: Logic and Proofs
Logic Logic is a discipline that studies the principles and methods used to construct valid arguments. An argument is a related sequence of statements.
1.3 Propositional Equivalences
The Foundations: Logic and Proofs
Presentation transcript:

Discrete Mathematics Math 6A Instructor: M. Welling

1.1 Propositions Logic allows consistent mathematical reasoning. Many applications in CS: construction and verification computer programs, circuit design, etc. Proposition: A statement that is either true (T) or false (F). example: Toronto is the capital of Canada in 2003 (F). 1+1=2 (T). counter-example: Study this material well. Compound Propositions: New propositions formed by existing propositions and logical operators. Let “P” be a proposition. Then (“NOT P”) is another one stating that: It is not the case that “P”.

1.1 Propositions example: P: Today is Tuesday. NOT P: Today is not Tuesday. truth table NOT is the negation operator. Another class of operators are the “connectives”. P AND Q conjunction P OR Q disjunction, inclusive OR. P XOR Q exclusive OR. example: Bob is married to Carol. (T) Bob is married to Betty or to Carol. (T) Bob is married to Betty and to Carol (F).

1.1 Implications Implication : P  Q, P IMPLIES Q. P is hypothesis, Q is consequence. some names: if P then Q, Q when P, Q follows from P, P only if Q. example: If you make no mistakes, then you’ll get an A. Bidirectional implication: P  Q, P if and only if (iff) Q. Implications are often used in mathematical proofs. weird? Consider: P  Q. converse: Q  P. contra-positive: (NOT Q)  (NOT P) (equiv.) inverse: (NOT P)  (NOT Q).

1.1 Precedence, Bits. Order of precedence: NOT, AND, OR, XOR, , . example: P  Q AND NOT R = P  (Q AND (NOT R) ). Bits are units of information. 1=T, 0=F. Bit-strings are sequences of bits: We can use our logic operators to manipulate these bit-strings: example: 0110 AND 1100 = 0100 puzzle: Is this a proposition: “This statement is false”? if S = T  S = F, if S = F  S = T whoa: it is neither true nor false! Some examples on white board

1.2 Propositional Equivalences Tautology: Proposition that is always true. for example: P OR (NOT P). Contradiction: Proposition that is always false. for example: P AND (NOT P). Others: Contingencies. Two propositions are logically equivalent if P  Q is always true (tautology). This is denoted by. Example: Morgan’s Law:

1.2 Propositional Equivalences Proving equivalences by truth tables can easily become computationally demanding: equivalence with 1 prop.: truth table has columns of size 2. equivalence with 2 prop.: equivalence with 3 prop.: equivalence with n prop.: (How many times do we need to fold the NY-times to fit between the earth and the moon ?) Solution: we use a list of known logical equivalences (building blocks) and manipulate the expression. See page 24 for a list of equivalences. Some examples on white board

1.3 Predicates & Quantification Let’s consider statements with variables: x > 3. x is the subject. >3 is the predicate or property of the subject. We introduce a propositional function, P(x), that denotes x>3. If X has is a specific number, the function becomes a proposition (T or F). example: P(2) = F, P(4) = T. More generally, we can have “functions” of more than one variable. For each input value it assigns either T or F. example: Q(x,y) = ( x=y+3 ). Q(1,2) = ( 1=2+3 ) = F Q(3,0) =( 3=0+3)=T

1.3 Predicates and Quantification We do not always have to insert specific values. We can make propositions for general values in a domain (or universe of discourse): This is called: quantification. Universal Quantification: P(x) is true for all values of x in the domain: Existential Quantification: There exists an element x in the domain such that P(x) is true: example: domain x is real numbers. P(x) is x > -1. (F : counter-example: x=-2) (T) example: domain is positive real numbers, P(x) is x>-1. (T)

1.3 Binding & negations A variable is bound if it has a value or a quantifier is “acting” on it. A statement can only become a proposition if all variables are bound. example: x is bound, y is free. The scope of a quantifier is the part of the statement on which it is acting. example: scope xscope y We can also negate propositions with quantifiers. Two important equivalences: It is not the case that for all x P(x) is true = there must be an x for which P(x) is not true It is not true that there exists an x for which P(x) is true = P(x) must be false for all x some examples on white board