# Predicate Logic. Example: All men are mortal. Socrates is a man. Socrates is mortal.

Save this PDF as:

Size: px
Start display at page:

Download "Predicate Logic. Example: All men are mortal. Socrates is a man. Socrates is mortal."

## Transcription

1 Predicate Logic Example: All men are mortal. Socrates is a man. Socrates is mortal. Note: We need logic laws that work for statements involving quantities like some and all. In English, the predicate is the part of the sentence that tells you something about the subject. 1

2 More on predicates Example: Nate is a student at UT. What is the subject? What is the predicate? Example: We can form two different predicates. Let P(x) be x is a student at UT. Let Q(x, y) be x is a student at y. Definition: A predicate is a property that a variable or a finite collection of variables can have. A predicate becomes a proposition when specific values are assigned to the variables. P(x 1, x 2,..., x n ) is called a predicate of n variables or n arguments. Example: She lives in the city. P(x,y): x lives in y. P(Mary, Austin) is a proposition: Mary lives in Austin. Example: Predicates are often used in if statements and loop conditions. if(x > 100) then y:= x x predicate T(x): x > 100 2

3 Domains and Truth Sets Definition: The domain or universe or universe of discourse for a predicate variable is the set of values that may be assigned to the variable. Definition: If P(x) is a predicate and x has domain U, the truth set of P(x) is the set of all elements t of U such that P(t) is true, ie {t U P(t) is true} Example: U = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} P(x): x is even. The truth set is: {2, 4, 6, 8, 10} 3

4 The Universal Quantifier: Turn predicates into propositions by assigning values to all variables: Predicate P(x): x is even Proposition P(6): 6 is even The other way to turn a predicate into a proposition: add a quantifier like all or some that indicates the number of values for which the predicate is true. Definition: The symbol is called the universal quantifier. The universal quantification of P(x) is the statement P(x) for all values x in the universe, which is written in logical notation as: xp(x) or sometimes x D, P(x). Ways to read xp(x): For every x, P(x) For every x, P(x) is true For all x, P(x) 4

5 More on the universal quantifier Definition: A counterexample for xp(x) is any t U, where U is the universe, such that P(t) is false. Some Examples Example: P(x, y): x + y = 8 Assign x to be 1, and y to be 7. We get proposition P(1, 7) which is true. Proposition P(2, 5) is false since Example: x[x 0] U = N (non-negative integers) We could re-write this proposition as: x N, x 0 Is the proposition true? What if the universe is R? Example: x y[x + y > x] Is this proposition true if: 1. If U = N? 2. If U = R? Example: x y[x > y] True if: universe for x = the non-negative integers universe for y = the non-positive integers 5

6 The Existential Quantifier: Definition: The symbol is call the existential quantifier and represents the phrase there exists or for some. The existential quantification of P(x) is the statement P(x) for some values x in the universe, or equivalently, There exists a value for x such that P(x) is true, which is written xp(x). Note: If P(x) is true for at least one element in the domain, then xp(x) is true. Otherwise it is false. Note: Let P(x) be a predicate and c U (U = domain). The following implications are true: xp(x) P(c) P(c) xp(x) Example: x [x is prime] where U = Z Is this proposition true or false? Example: x[x 2 < 0] where U = R True or false? Exercises: True or false? Prove your answer. 1. n[n 2 = n] where U = Z. 2. n[n 2 = n] where U = {4, 5, 6, 7}. 6

7 Translating Quantified Statements Translate the following into English. 1. x[x 2 0] where U = R. 2. t[(t > 3) (t 3 > 27)] where U = R. 3. x[(2 x) (2 x)] where U = N Translate the following into logic statements. 1. There is an integer whose square is twice itself. 2. No school buses are purple. 3. If a real number is even, then its square is even. Note: Let U = {1, 2, 3}. Proposition xp(x) is equivalent to P(1) P(2) P(3). Proposition xp(x) is equivalent to P(1) P(2) P(3). 7

8 Bound and Free Variables Definition: All variables in a predicate must be bound to turn a predicate into a proposition. We bind a variable by assigning it a value or quantifying it. Variables which are not bound are free. Note: If we bind one variable in a predicate P(x, y, z) with 3 variables, say by setting z = 4, we get a predicate with 2 variables: P(x, y, 4). Example: Let U = N. P(x, y, z) : x + y = z 3 free variables Let Q(y, z) = P(2, y, z) : 2 + y = z 2 free variables 8

9 Examples with Quantifiers Example: U = Z N(x): x is a non-negative integer E(x): x is even O(x): x is odd P(x): x is prime Translate into logical notation. 1. There exists an even integer. 2. Every integer is even or odd. 3. All prime integers are non-negative. 4. The only even prime is Not all integers are odd. 6. Not all primes are odd. 7. If an integer is not odd, then it is even. 9

10 Examples with Nested Quantifiers Note about nested quantifiers: For predicate P(x, y): x yp(x, y) has the same meaning as y xp(x, y). x yp(x, y) has the same meaning as y xp(x, y). We can not interchange the position of and like this! Example: U = set of married people. True or false? 1. x y[x is married to y] 2. y x[x is married to y] Example: U = Z. True or false? 1. x y[x + y = 0] 2. y x[x + y = 0] Exercise: U = N. L(x, y) : x < y S(x, y, z): x + y = z P(x, y, z) : xy = z Rewrite the following in logic notation. 1. For every x and y, there is a z such that x + y = z. 2. No x is less than For all x, x + 0 = x. 4. There is some x such that xy = y for all y. 10

11 Negating Quantified Statements Precedence of logical operators 1., 2. 3., 4., Example: Statement: All dogs bark. Negation: One or more dogs do not bark or some dogs do not bark. NOT No dogs bark. If at least one dog does not bark, then the original statement is false. One example of DeMorgan s laws for quantifiers: xp(x) x P(x) Example: Some cats purr. Negation: No cats purr. I.e., if it is false that some cats purr, then no cat purrs. DeMorgan s laws for quantifiers: xp(x) x P(x) xp(x) x P(x) 11

12 More Examples - Negating Statements with Quantifiers Example: Write the statements in logical notation.then negate the statements. 1. Some drivers do not obey the speed limit. 2. All dogs have fleas. Example: Using DeMorgan s laws to push negation through multiple quantifiers: x y zp(x, y, z) x y zp(x, y, z) x y zp(x, y, z) x y z P(x, y, z). Example: Write the following statement in logical notation and then negate it. For every integer x and every integer y, there exists an integer z such that y z = x. Logical notation: Negation (apply DeMorgan s laws): Let U = N. Show the original statement is false by showing the negation is true. 12

13 Some Definitions Definition: Let U be the universe of discourse and P(x 1,..., x n ) be a predicate. If P(x 1,..., x n ) is true for every choice of x 1,..., x n U, then we say P is valid in universe U. If P(x 1,..., x n ) is true for some (not necessarily all) choices of arguments from U, then we say that P is satisfiable in U. If P is not satisfiable in U, we say P is unsatisfiable in U. Definition: The scope if a quantifier is the part of a statement in which variables are bound by the quantifier. Example: R (P(x) Q(x)) Scope of : P(x) Q(x). Note: We can use parentheses to change the scope, but otherwise the scope is the smallest expression possible. Example: xp(x) Q(x) Scope of : P(x). Note that this is a predicate, not a proposition, since the variable in Q(x) is not bound. It is confusing to have 2 variables which are both denoted x. Rewrite as: xp(x) Q(z). 13

14 Quantifiers plus and Example: Show x(p(x) Q(x)) xp(x) xq(x). (That is, show that no matter what the domain is, these 2 propositions always have the same truth value). Proof: First assume that x(p(x) Q(x)) is true. So for all x, P(x) is true and Q(x) is true. Therefore xp(x) is true, and xq(x) is true. Therefore xp(x) xq(x) is true. Now assume xp(x) xq(x) is true. So xp(x) is true and xq(x) is true. So for all x, P(x) is true and for all x, Q(x) is true. Therefore, for all x, P(x) Q(x) is true. So x(p(x) Q(x)) is true. Therefore x(p(x) Q(x)) xp(x) xq(x). Terminology: We say that distributes over. 14

15 Distributing over Note: The existential quantifier does not distribute over. That is, x(p(x) Q(x)) xp(x) xq(x). Proof: We must find a counterexample - a universe and predicates P and Q such that one of the propositions is true and the other is false. Let U = N. Set P(x): x is prime and Q(x): x is composite (ie not prime). Then x(p(x) Q(x)) is false, but xp(x) xq(x) is true. Note: The following is true though: x(p(x) Q(x)) xp(x) xq(x). Proof: exercise Note: With, the situation is reversed. distributes over, but does not. 15

16 Distributing the Existential Quantifier Recall: x(p(x) Q(x)) xp(x) xq(x) This rule holds for arbitrary P and Q. Replace P by S and Q by R and negate both sides to see that: x(s(x) R(x)) xs(x) xr(x). Exercise: Show that 1. ( xp(x) xq(x)) x(p(x) Q(x)) is true. 2. xp(x) xq(x) x(p(x) Q(x)) 16

17 does not distribute over Note: does not distribute over. I.e., x(p(x) Q(x)) xp(x) xq(x). Proof: x(p(x) Q(x)) x(q(x) P(x)) by implication xq(x) x P(x) by distributivity of over xq(x) xp(x) by DeMorgan s law xp(x) xq(x) by implication law So we need to show that xp(x) xq(x) is not logically equivalent to xp(x) xq(x). Note that if xq(x) is false, xp(x) is false, and xp(x) is true, then we would have a counterexample, since one of the implications is true and the other is false. So let U = N, and set P(x) to be x is even and Q(x) to be x is negative. In this case xp(x) xq(x) and xp(x) xq(x) have different truth values. 17

18 Logical Relationships with Quantifiers Law Name xp(x) x P(x) DeMorgan s laws for quantifiers xp(x) x P(x) xp(x) xq(x) x(p(x) Q(x)) distributivity of over x(p(x) Q(x)) xp(x) xq(x) distributivity of over 18

19 Compact Notation Example: For every x > 0, P(x) is true. Current notation: x[(x > 0) P(x)]. More compact notation: x x>0 P(x) (or x > 0, P(x)). Example: There exists an x such that x 0 and P(x) is true. Compact notation: x x =0 P(x), instead of x[(x 0) P(x)]. The compact notation is more readable. Example: Definition: The limit of f(x) as x approaches c is k (denoted lim x c f(x) = k) if for every ε > 0, there exists δ > 0 such that for all x, if x c < δ, then f(x) k < ε. Notation: lim x c f(x) = k if ε ε>0 δ δ>0 x[ x c < δ f(x) k < ε]. 19

20 Arguments with Quantified Statements Rules of Inference with Quantifiers Rule of Universal Instantiation xp(x) P(c) (where c is some element of P s domain) Example: U = all men All men are mortal. Dijkstra is a man. Dijkstra is mortal. P(x): x is mortal. Argument: xp(x) P(Dijkstra) 20

21 x(p(x) Q(x)) P(c) Q(c) Universal Modus Ponens Example: All politicians are crooks. Joe Lieberman is a politician. Joe Lieberman is a crook. P(x): x is a politician, Q(x): x is a crook, U =all people. Example: If x is an even number, then x 2 is an even number. 206 is an even number is an even number. 21

22 x(p(x) Q(x)) Q(c) P(c) Example: All dogs bark. Otis does not bark. Otis is not a dog. Universal Modus Tollens U = all living creatures, P(x): x is a dog, Q(x): x barks. 22

23 x(p(x) Q(x)) x(q(x) R(x)) x(p(x) R(x)) Universal Hypothetical Syllogism Example: If integer x is even, then 2x is even. If 2x is even, then 4x 2 is even. If x is even, then 4x 2 is even. 23

24 Universal Generalization: P(c) for arbitrary c in U xp(x) Universal Generalization Example: For arbitrary real number x, x 2 is non-negative. Therefore the square of any real number is non-negative. Note: We use this rule to prove statements of the form xp(x). We assume that c is an arbitrary element of the domain, and prove P(c) is true. Then we conclude that xp(x). Prove: The square of every even integer n is even. Proof: Let c be an arbitrary even integer. Then c = 2k for some integer k, by the definition of even numbers. So c 2 = (2k) 2 = 4k 2 = 2(2k 2 ), and 2k 2 Z. So c 2 is even. Therefore it follows that the square of every even integer is even. 24

25 Existential Instantiation and Existential Generalization Existential Instantiation xp(x) P(c) for some c Existential Generalization P(c) for some element c xp(x) 25

26 Arguments with Quantifiers Def: An argument with quantifiers is valid if the conclusion is true whenever the premises are all true. Example: A horse that is registered for today s race is not a throughbred. Every horse registered for today s race has won a race this year. Therefore a horse that has won a race this year is not a thoroughbred. P(x): x is registered for today s race. Q(x): x is a thoroughbred. R(x): x has won a race this year. U = all horses x(p(x) Q(x)) x(p(x) R(x)) x(r(x) Q(x)) Proof: Step Reason 1. x(p(x) Q(x)) premise 2. P(a) Q(a) for some a step 1, existential instantiation 3. P(a) simplification, step 2 4. x(p(x) R(x)) premise 5. P(a) R(a) universal instantiation, step 4 6. R(a) modus ponens, steps 3 and 5 7. Q(a) step 2, simplification 8. R(a) Q(a) conjunction, steps 6 and 7 9. x(r(x) Q(x)) existential generalization, step 8 26

### MATH 55: HOMEWORK #2 SOLUTIONS

MATH 55: HOMEWORK # SOLUTIONS ERIC PETERSON * 1. SECTION 1.5: NESTED QUANTIFIERS 1.1. Problem 1.5.8. Determine the truth value of each of these statements if the domain of each variable consists of all

### Discrete Mathematics, Chapter : Predicate Logic

Discrete Mathematics, Chapter 1.4-1.5: Predicate Logic Richard Mayr University of Edinburgh, UK Richard Mayr (University of Edinburgh, UK) Discrete Mathematics. Chapter 1.4-1.5 1 / 23 Outline 1 Predicates

### 3. Predicates and Quantifiers

3. PREDICATES AND QUANTIFIERS 45 3. Predicates and Quantifiers 3.1. Predicates and Quantifiers. Definition 3.1.1. A predicate or propositional function is a description of the property (or properties)

### CS 2336 Discrete Mathematics

CS 2336 Discrete Mathematics Lecture 2 Logic: Predicate Calculus 1 Outline Predicates Quantifiers Binding Applications Logical Equivalences 2 Predicates In mathematics arguments, we will often see sentences

### Example. Statements in Predicate Logic. Predicate Logic. Predicate Logic. (Rosen, Chapter ) P(x,y) TOPICS. Predicate Logic

Predicate Logic Predicate Logic (Rosen, Chapter 1.4-1.6) TOPICS Predicate Logic Quantifiers Logical Equivalence Predicate Proofs n Some statements cannot be expressed in propositional logic, such as: n

### Review Name Rule of Inference

CS311H: Discrete Mathematics Review Name Rule of Inference Modus ponens φ 2 φ 2 Modus tollens φ 2 φ 2 Inference Rules for Quantifiers Işıl Dillig Hypothetical syllogism Or introduction Or elimination And

### Predicate Logic. Lucia Moura. Winter Predicates and Quantifiers Nested Quantifiers Using Predicate Calculus

Predicate Logic Winter 2010 Predicates A Predicate is a declarative sentence whose true/false value depends on one or more variables. The statement x is greater than 3 has two parts: the subject: x is

### CSI 2101 Discrete Structures Winter 2012

CSI 2101 Discrete Structures Winter 2012 Prof. Lucia Moura University of Ottawa Homework Assignment #1 (100 points, weight 5%) Due: Thursday Feb 9, at 1:00 p.m. (in lecture); assignments with lateness

### First Order Predicate Logic. Lecture 4

First Order Predicate Logic Lecture 4 First Order Predicate Logic Limitation of Propositional Logic The facts: peter is a man, paul is a man, john is a man can be symbolized by P, Q and R respectively

### DISCRETE MATH: LECTURE 4

DISCRETE MATH: LECTURE 4 DR. DANIEL FREEMAN 1. Chapter 3.1 Predicates and Quantified Statements I A predicate is a sentence that contains a finite number of variables and becomes a statement when specific

### The Foundations: Logic and Proofs. Chapter 1, Part III: Proofs

The Foundations: Logic and Proofs Chapter 1, Part III: Proofs Rules of Inference Section 1.6 Section Summary Valid Arguments Inference Rules for Propositional Logic Using Rules of Inference to Build Arguments

### Predicates and Quantifiers. Niloufar Shafiei

Predicates and Quantifiers Niloufar Shafiei Review Proposition: 1. It is a sentence that declares a fact. 2. It is either true or false, but not both. Examples: 2 + 1 = 3. True Proposition Toronto is the

### 1.4 Predicates and Quantifiers

Can we express the following statement in propositional logic? Every computer has a CPU No 1 Can we express the following statement in propositional logic? No Every computer has a CPU Let's see the new

### Propositional Logic. A proposition is a declarative sentence (a sentence that declares a fact) that is either true or false, but not both.

irst Order Logic Propositional Logic A proposition is a declarative sentence (a sentence that declares a fact) that is either true or false, but not both. Are the following sentences propositions? oronto

### 1.4/1.5 Predicates and Quantifiers

1.4/1.5 Predicates and Quantifiers Can we express the following statement in propositional logic? Every computer has a CPU No Outline: Predicates Quantifiers Domain of Predicate Translation: Natural Languauge

### Logic will get you from A to B. Imagination will take you everywhere.

Chapter 3 Predicate Logic Logic will get you from A to B. Imagination will take you everywhere. A. Einstein In the previous chapter, we studied propositional logic. This chapter is dedicated to another

### Predicate Logic. For example, consider the following argument:

Predicate Logic The analysis of compound statements covers key aspects of human reasoning but does not capture many important, and common, instances of reasoning that are also logically valid. For example,

### What is logic? Propositional Logic. Negation. Propositions. This is a contentious question! We will play it safe, and stick to:

Propositional Logic This lecture marks the start of a new section of the course. In the last few lectures, we have had to reason formally about concepts. This lecture introduces the mathematical language

### 31 is a prime number is a mathematical statement (which happens to be true).

Chapter 1 Mathematical Logic In its most basic form, Mathematics is the practice of assigning truth to welldefined statements. In this course, we will develop the skills to use known true statements to

### Chapter I Logic and Proofs

MATH 1130 1 Discrete Structures Chapter I Logic and Proofs Propositions A proposition is a statement that is either true (T) or false (F), but or both. s Propositions: 1. I am a man.. I am taller than

### Inference Rules and Proof Methods

Inference Rules and Proof Methods Winter 2010 Introduction Rules of Inference and Formal Proofs Proofs in mathematics are valid arguments that establish the truth of mathematical statements. An argument

Mathematics 0N1 Solutions 1 1. Write the following sets in list form. 1(i) The set of letters in the word banana. {a, b, n}. 1(ii) {x : x 2 + 3x 10 = 0}. 3(iv) C A. True 3(v) B = {e, e, f, c}. True 3(vi)

### Problems on Discrete Mathematics 1

Problems on Discrete Mathematics 1 Chung-Chih Li 2 Kishan Mehrotra 3 L A TEX at July 18, 2007 1 No part of this book can be reproduced without permission from the authors 2 Illinois State University, Normal,

### Chapter 1, Part II: Predicate Logic. With Question/Answer Animations

Chapter 1, Part II: Predicate Logic With Question/Answer Animations Summary Predicate Logic (First Order Logic (FOL), Predicate Calculus (not covered)) The Language of Quantifiers Logical Equivalences

### Section 7.1 First-Order Predicate Calculus predicate Existential Quantifier Universal Quantifier.

Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially or universally. A predicate describes a

### CS 441 Discrete Mathematics for CS Lecture 5. Predicate logic. CS 441 Discrete mathematics for CS. Negation of quantifiers

CS 441 Discrete Mathematics for CS Lecture 5 Predicate logic Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Negation of quantifiers English statement: Nothing is perfect. Translation: x Perfect(x)

### 9.1: Predicates and Quantifiers

9.1: Predicates and Quantifiers Expressive Limitations of Statement Logic Many intuitively valid arguments in ordinary language cannot be represented as valid in statement logic. For example: This house

### Quantifiers are used to describe variables in statements. - The universal quantifier means for all. - The existential quantifier means there exists.

11 Quantifiers are used to describe variables in statements. - The universal quantifier means for all. - The existential quantifier means there exists. The phrases, for all x in R if x is an arbitrary

### def: An axiom is a statement that is assumed to be true, or in the case of a mathematical system, is used to specify the system.

Section 1.5 Methods of Proof 1.5.1 1.5 METHODS OF PROOF Some forms of argument ( valid ) never lead from correct statements to an incorrect. Some other forms of argument ( fallacies ) can lead from true

### 1.5 Methods of Proof INTRODUCTION

1.5 Methods of Proof INTRODUCTION Icon 0049 Two important questions that arise in the study of mathematics are: (1) When is a mathematical argument correct? (2) What methods can be used to construct mathematical

### Translation To Predicate Logic, 8.1

Philosophy 109, Modern Logic, Queens College Russell Marcus, Instructor email: philosophy@thatmarcusfamily.org website: http://philosophy.thatmarcusfamily.org Office phone: (718) 997-5287 Translation To

### Rules of Inference Friday, January 18, 2013 Chittu Tripathy Lecture 05

Rules of Inference Today s Menu Rules of Inference Quantifiers: Universal and Existential Nesting of Quantifiers Applications Old Example Re-Revisited Our Old Example: Suppose we have: All human beings

### Mathematics for Computer Science/Software Engineering. Notes for the course MSM1F3 Dr. R. A. Wilson

Mathematics for Computer Science/Software Engineering Notes for the course MSM1F3 Dr. R. A. Wilson October 1996 Chapter 1 Logic Lecture no. 1. We introduce the concept of a proposition, which is a statement

Lecture Notes in Discrete Mathematics Marcel B. Finan Arkansas Tech University c All Rights Reserved 2 Preface This book is designed for a one semester course in discrete mathematics for sophomore or junior

### Predicate in English. Predicates and Quantifiers. Propositional Functions: Prelude. Predicate in Logic. Propositional Function

Predicates and Quantifiers By Chuck Cusack Predicate in English In English, a sentence has 2 parts: the subject and the predicate. The predicate is the part of the sentence that states something about

### Section 1. Statements and Truth Tables. Definition 1.1: A mathematical statement is a declarative sentence that is true or false, but not both.

M3210 Supplemental Notes: Basic Logic Concepts In this course we will examine statements about mathematical concepts and relationships between these concepts (definitions, theorems). We will also consider

### LOGICAL INFERENCE & PROOFs. Debdeep Mukhopadhyay Dept of CSE, IIT Madras

LOGICAL INFERENCE & PROOFs Debdeep Mukhopadhyay Dept of CSE, IIT Madras Defn A theorem is a mathematical assertion which can be shown to be true. A proof is an argument which establishes the truth of a

### DISCRETE MATHEMATICS W W L CHEN

DISCRETE MATHEMATICS W W L CHEN c W W L Chen, 1982, 2008. This chapter originates from material used by the author at Imperial College, University of London, between 1981 and 1990. It is available free

### Problems on Discrete Mathematics 1

Problems on Discrete Mathematics 1 Chung-Chih Li 2 Kishan Mehrotra 3 Syracuse University, New York L A TEX at January 11, 2007 (Part I) 1 No part of this book can be reproduced without permission from

### PREDICATE LOGIC. 1 Basic Concepts. Jorma K. Mattila LUT, Department of Mathematics and Physics

PREDICATE LOGIC Jorma K. Mattila LUT, Department of Mathematics and Physics 1 Basic Concepts In predicate logic the formalism of propositional logic is extended and is made it more finely build than propositional

### Lecture 8: Resolution theorem-proving

Comp24412 Symbolic AI Lecture 8: Resolution theorem-proving Ian Pratt-Hartmann Room KB2.38: email: ipratt@cs.man.ac.uk 2014 15 In the previous Lecture, we met SATCHMO, a first-order theorem-prover implemented

### Logic and Proofs. Chapter 1

Section 1.0 1.0.1 Chapter 1 Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers 1.5 Rules of Inference 1.6 Introduction to Proofs

### Predicate Calculus. There are certain arguments that seem to be perfectly logical, yet they cannot be expressed by using propositional calculus.

Predicate Calculus (Alternative names: predicate logic, first order logic, elementary logic, restricted predicate calculus, restricted functional calculus, relational calculus, theory of quantification,

### Handout #1: Mathematical Reasoning

Math 101 Rumbos Spring 2010 1 Handout #1: Mathematical Reasoning 1 Propositional Logic A proposition is a mathematical statement that it is either true or false; that is, a statement whose certainty or

### CHAPTER 3. Methods of Proofs. 1. Logical Arguments and Formal Proofs

CHAPTER 3 Methods of Proofs 1. Logical Arguments and Formal Proofs 1.1. Basic Terminology. An axiom is a statement that is given to be true. A rule of inference is a logical rule that is used to deduce

### Math 55: Discrete Mathematics

Math 55: Discrete Mathematics UC Berkeley, Fall 2011 Homework # 1, due Wedneday, January 25 1.1.10 Let p and q be the propositions The election is decided and The votes have been counted, respectively.

### Proof: A logical argument establishing the truth of the theorem given the truth of the axioms and any previously proven theorems.

Math 232 - Discrete Math 2.1 Direct Proofs and Counterexamples Notes Axiom: Proposition that is assumed to be true. Proof: A logical argument establishing the truth of the theorem given the truth of the

### Elementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University http://www.cs.stonybrook.

Elementary Number Theory and Methods of Proof CSE 215, Foundations of Computer Science Stony Brook University http://www.cs.stonybrook.edu/~cse215 1 Number theory Properties: 2 Properties of integers (whole

### Propositional Logic. Definition: A proposition or statement is a sentence which is either true or false.

Propositional Logic Definition: A proposition or statement is a sentence which is either true or false. Definition:If a proposition is true, then we say its truth value is true, and if a proposition is

### n logical not (negation) n logical or (disjunction) n logical and (conjunction) n logical exclusive or n logical implication (conditional)

Discrete Math Review Discrete Math Review (Rosen, Chapter 1.1 1.6) TOPICS Propositional Logic Logical Operators Truth Tables Implication Logical Equivalence Inference Rules What you should know about propositional

### Satisfiability Checking

Satisfiability Checking First-Order Logic Prof. Dr. Erika Ábrahám RWTH Aachen University Informatik 2 LuFG Theory of Hybrid Systems WS 14/15 Satisfiability Checking Prof. Dr. Erika Ábrahám (RWTH Aachen

### 1 Proposition, Logical connectives and compound statements

Discrete Mathematics: Lecture 4 Introduction to Logic Instructor: Arijit Bishnu Date: July 27, 2009 1 Proposition, Logical connectives and compound statements Logic is the discipline that deals with the

### Predicate Logic. M.A.Galán, TDBA64, VT-03

Predicate Logic 1 Introduction There are certain arguments that seem to be perfectly logical, yet they cannot be specified by using propositional logic. All cats have tails. Tom is a cat. From these two

### Math 3000 Running Glossary

Math 3000 Running Glossary Last Updated on: July 15, 2014 The definition of items marked with a must be known precisely. Chapter 1: 1. A set: A collection of objects called elements. 2. The empty set (

### Chapter 1. Logic and Proof

Chapter 1. Logic and Proof 1.1 Remark: A little over 100 years ago, it was found that some mathematical proofs contained paradoxes, and these paradoxes could be used to prove statements that were known

### Discrete Mathematics Lecture 1 Logic of Compound Statements. Harper Langston New York University

Discrete Mathematics Lecture 1 Logic of Compound Statements Harper Langston New York University Administration Class Web Site http://cs.nyu.edu/courses/summer05/g22.2340-001/ Mailing List Subscribe at

### Discrete Mathematics (2009 Spring) Foundations of Logic ( , 4 hours)

Discrete Mathematics (2009 Spring) ( 1.1-1.4, 4 hours) Chih-Wei Yi Dept. of Computer Science National Chiao Tung University March 1, 2010 Mathematical Logic is a tool for working with complicated compound

### One More Decidable Class of Finitely Ground Programs

One More Decidable Class of Finitely Ground Programs Yuliya Lierler and Vladimir Lifschitz Department of Computer Sciences, University of Texas at Austin {yuliya,vl}@cs.utexas.edu Abstract. When a logic

### Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 1

CS 70 Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 1 Course Outline CS70 is a course on Discrete Mathematics and Probability for EECS Students. The purpose of the course

### Chapter 1. Use the following to answer questions 1-5: In the questions below determine whether the proposition is TRUE or FALSE

Use the following to answer questions 1-5: Chapter 1 In the questions below determine whether the proposition is TRUE or FALSE 1. 1 + 1 = 3 if and only if 2 + 2 = 3. 2. If it is raining, then it is raining.

### CS 441 Discrete Mathematics for CS Lecture 4. Predicate logic. CS 441 Discrete mathematics for CS. Announcements

CS 441 Discrete Mathematics for CS Lecture 4 Predicate logic Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Announcements Homework assignment 1 due today Homework assignment 2: posted on the course

### 3. Mathematical Induction

3. MATHEMATICAL INDUCTION 83 3. Mathematical Induction 3.1. First Principle of Mathematical Induction. Let P (n) be a predicate with domain of discourse (over) the natural numbers N = {0, 1,,...}. If (1)

### Predicate Logic Review

Predicate Logic Review UC Berkeley, Philosophy 142, Spring 2016 John MacFarlane 1 Grammar A term is an individual constant or a variable. An individual constant is a lowercase letter from the beginning

### MAT Discrete Mathematics

RHODES UNIVERSITY Grahamstown 6140, South Africa Lecture Notes CCR MAT 102 - Discrete Mathematics Claudiu C. Remsing DEPT. of MATHEMATICS (Pure and Applied) 2005 Mathematics is not about calculations but

### INTRODUCTION TO PROOFS: HOMEWORK SOLUTIONS

INTRODUCTION TO PROOFS: HOMEWORK SOLUTIONS STEVEN HEILMAN Contents 1. Homework 1 1 2. Homework 2 6 3. Homework 3 10 4. Homework 4 16 5. Homework 5 19 6. Homework 6 21 7. Homework 7 25 8. Homework 8 28

### Section 1.3: Predicate Logic

1 Section 1.3: Purpose of Section: To introduce predicate logic (or first-order logic) which the language of mathematics. We see how predicate logic extends the language of sentential calculus studied

### (LMCS, p. 317) V.1. First Order Logic. This is the most powerful, most expressive logic that we will examine.

(LMCS, p. 317) V.1 First Order Logic This is the most powerful, most expressive logic that we will examine. Our version of first-order logic will use the following symbols: variables connectives (,,,,

### Math 3000 Section 003 Intro to Abstract Math Homework 2

Math 3000 Section 003 Intro to Abstract Math Homework 2 Department of Mathematical and Statistical Sciences University of Colorado Denver, Spring 2012 Solutions (February 13, 2012) Please note that these

### Knowledge Representation and Reasoning

Knowledge Representation and Reasoning Logic and Resolution - Example and Exercises Please read the relevant sections in the chapter Logic and Resolution that is available on the web (http://www.cs.ru.nl/

### 2. Methods of Proof Types of Proofs. Suppose we wish to prove an implication p q. Here are some strategies we have available to try.

2. METHODS OF PROOF 69 2. Methods of Proof 2.1. Types of Proofs. Suppose we wish to prove an implication p q. Here are some strategies we have available to try. Trivial Proof: If we know q is true then

### 1.2 The predicate Calculus

1.2 The predicate Calculus In propositional calculus, each atomic symbol (P, 0, etc.) denotes a proposition of some complexity. There is no way to access the components of an individual assertion. Predicate

### PUTNAM TRAINING POLYNOMIALS. Exercises 1. Find a polynomial with integral coefficients whose zeros include 2 + 5.

PUTNAM TRAINING POLYNOMIALS (Last updated: November 17, 2015) Remark. This is a list of exercises on polynomials. Miguel A. Lerma Exercises 1. Find a polynomial with integral coefficients whose zeros include

### The Syntax of Predicate Logic

The Syntax of Predicate Logic LX 502 Semantics I October 11, 2008 1. Below the Sentence-Level In Propositional Logic, atomic propositions correspond to simple sentences in the object language. Since atomic

### WOLLONGONG COLLEGE AUSTRALIA. Diploma in Information Technology

First Name: Family Name: Student Number: Class/Tutorial: WOLLONGONG COLLEGE AUSTRALIA A College of the University of Wollongong Diploma in Information Technology Mid-Session Test Summer Session 008-00

### Logic, Sets, and Proofs

Logic, Sets, and Proofs David A. Cox and Catherine C. McGeoch Amherst College 1 Logic Logical Statements. A logical statement is a mathematical statement that is either true or false. Here we denote logical

### Applications of Methods of Proof

CHAPTER 4 Applications of Methods of Proof 1. Set Operations 1.1. Set Operations. The set-theoretic operations, intersection, union, and complementation, defined in Chapter 1.1 Introduction to Sets are

### Likewise, we have contradictions: formulas that can only be false, e.g. (p p).

CHAPTER 4. STATEMENT LOGIC 59 The rightmost column of this truth table contains instances of T and instances of F. Notice that there are no degrees of contingency. If both values are possible, the formula

### Introduction to Predicate Calculus

Introduction to Predicate Calculus 1 Motivation Last time, we discuss the need for a representation language that was declarative, expressively adequate, unambiguous, context-independent, and compositional.

### How does x differ in what it represents in the following statements? x is real. x represents no values

Section. redicate Logic Discussion: In Maths we use variables usuall ranging over numbers in various was. How does differ in what it represents in the following statements? is real. = 0 represents one

### A set is an unordered collection of objects.

Section 2.1 Sets A set is an unordered collection of objects. the students in this class the chairs in this room The objects in a set are called the elements, or members of the set. A set is said to contain

### Review for Final Exam

Review for Final Exam Note: Warning, this is probably not exhaustive and probably does contain typos (which I d like to hear about), but represents a review of most of the material covered in Chapters

### Definition 10. A proposition is a statement either true or false, but not both.

Chapter 2 Propositional Logic Contrariwise, continued Tweedledee, if it was so, it might be; and if it were so, it would be; but as it isn t, it ain t. That s logic. (Lewis Carroll, Alice s Adventures

### Higher-Order Logic. Specification and Verification with Higher-Order Logic

Higher-Order Logic Specification and Verification with Higher-Order Logic Arnd Poetzsch-Heffter Software Technology Group Fachbereich Informatik Technische Universität Kaiserslautern Sommersemester 2010

### All plays by Ibsen are serious dramas. No serious dramas are light-hearted comedies. Therefore, no plays by Ibsen are light-hearted comedies.

8 Predicate Logic 8.1 Symbols and Translation Techniques were developed in earlier chapters for evaluating two basically different kinds of arguments. The chapter on categorical syllogisms dealt with arguments

### If an English sentence is ambiguous, it may allow for more than one adequate transcription.

Transcription from English to Predicate Logic General Principles of Transcription In transcribing an English sentence into Predicate Logic, some general principles apply. A transcription guide must be

### Chapter 7. Functions and onto. 7.1 Functions

Chapter 7 Functions and onto This chapter covers functions, including function composition and what it means for a function to be onto. In the process, we ll see what happens when two dissimilar quantifiers

### Resolution in Propositional and First-Order Logic

Resolution in Propositional and First-Order Logic Inference rules Logical inference creates new sentences that logically follow from a set of sentences (KB) An inference rule is sound if every sentence

### LECTURE 10: FIRST-ORDER LOGIC. Software Engineering Mike Wooldridge

LECTURE 10: FIRST-ORDER LOGIC Mike Wooldridge 1 Why not Propositional Logic? Consider the following statements: all monitors are ready; X12 is a monitor. We saw in an earlier lecture that these statements

### Computational Logic and Cognitive Science: An Overview

Computational Logic and Cognitive Science: An Overview Session 1: Logical Foundations Technical University of Dresden 25th of August, 2008 University of Osnabrück Who we are Helmar Gust Interests: Analogical

### Discrete Mathematics Lecture 3 Elementary Number Theory and Methods of Proof. Harper Langston New York University

Discrete Mathematics Lecture 3 Elementary Number Theory and Methods of Proof Harper Langston New York University Proof and Counterexample Discovery and proof Even and odd numbers number n from Z is called

### Mathematical Induction. Rosen Chapter 4.1 (6 th edition) Rosen Ch. 5.1 (7 th edition)

Mathematical Induction Rosen Chapter 4.1 (6 th edition) Rosen Ch. 5.1 (7 th edition) Mathmatical Induction Mathmatical induction can be used to prove statements that assert that P(n) is true for all positive

### WHAT ARE MATHEMATICAL PROOFS AND WHY THEY ARE IMPORTANT?

WHAT ARE MATHEMATICAL PROOFS AND WHY THEY ARE IMPORTANT? introduction Many students seem to have trouble with the notion of a mathematical proof. People that come to a course like Math 216, who certainly

### First-Order Stable Model Semantics and First-Order Loop Formulas

Journal of Artificial Intelligence Research 42 (2011) 125-180 Submitted 03/11; published 10/11 First-Order Stable Model Semantics and First-Order Loop Formulas Joohyung Lee Yunsong Meng School of Computing,

### 2. The Language of First-order Logic

2. The Language of First-order Logic KR & R Brachman & Levesque 2005 17 Declarative language Before building system before there can be learning, reasoning, planning, explanation... need to be able to

### Phil 2440 Chapter 5: Predicate Logic Symbolizations

Phil 2440 Chapter 5: Predicate Logic Symbolizations To discuss today: Atomic sentences in predicate logic Quantifiers Some important kinds of sentences Well-formed formulas About the predicate calculus

### 1.3 Induction and Other Proof Techniques

4CHAPTER 1. INTRODUCTORY MATERIAL: SETS, FUNCTIONS AND MATHEMATICAL INDU 1.3 Induction and Other Proof Techniques The purpose of this section is to study the proof technique known as mathematical induction.

### First-Order Logic: Review

First-Order Logic: Review First-order logic First-order logic (FOL) models the world in terms of Objects, which are things with individual identities Properties of objects that distinguish them from other

### Factoring Polynomials

Factoring a Polynomial Expression Factoring a polynomial is expressing the polynomial as a product of two or more factors. Simply stated, it is somewhat the reverse process of multiplying. To factor polynomials,