for all x, the assertion P(x) is false. there exists x, for which the assertion P(x) is true.

Similar documents
Section 2.2: Introduction to the Logic of Quantified Statements

CSC Discrete Math I, Spring Sets

CMPSCI 250: Introduction to Computation. Lecture #7: Quantifiers and Languages 6 February 2012

Propositional Logic Formal Syntax and Semantics. Computability and Logic

Mathematical Logic Part Two

Logical Connectives. All kittens are cute. ; I like pizza. ; The sky is blue. ; Triangles have three sides.

Recursively Enumerable Languages, Turing Machines, and Decidability

Propositional Calculus. Math Foundations of Computer Science

Section 2.4: Arguments with Quantified Statements

LECTURE 2 An Introduction to Boolean Algebra

CS40-S13: Functional Completeness

Midterm Exam II CIS 341: Foundations of Computer Science II Spring 2006, day section Prof. Marvin K. Nakayama

Mathematical Logic Prof. Arindama Singh Department of Mathematics Indian Institute of Technology, Madras. Lecture - 9 Normal Forms

Chapter 1.3 Quantifiers, Predicates, and Validity. Reading: 1.3 Next Class: 1.4. Motivation

LING 510, Lab 3 September 23, 2013

CS 3512, Spring Instructor: Doug Dunham. Textbook: James L. Hein, Discrete Structures, Logic, and Computability, 3rd Ed. Jones and Barlett, 2010

Back to the knights and knaves island

Proofwriting Checklist

My dear students, Believe in yourselves. Believe in your abilities. You can DO this! -Dr. M

Propositional Logic. Part I

MITOCW watch?v=kz7jjltq9r4

Chapter 3. Set Theory. 3.1 What is a Set?

Mathematical Logic Part Two

x 2 + 3, r 4(x) = x2 1

Mathematical Logic Part Two

Practice Problems: All Computer Science majors are people. Some computer science majors are logical thinkers. Some people are logical thinkers.

[Ch 6] Set Theory. 1. Basic Concepts and Definitions. 400 lecture note #4. 1) Basics

CSCI.6962/4962 Software Verification Fundamental Proof Methods in Computer Science (Arkoudas and Musser) Chapter p. 1/27

Foundations of Computation

CS103 Spring 2018 Mathematical Vocabulary

An Evolution of Mathematical Tools

Formal Methods of Software Design, Eric Hehner, segment 1 page 1 out of 5

Introduction to Axiomatic Semantics

First-Order Logic PREDICATE LOGIC. Syntax. Terms

Summary of Course Coverage

6.080 / Great Ideas in Theoretical Computer Science Spring 2008

Definition MATH Benjamin V.C. Collins, James A. Swenson MATH 2730

Lecture Notes 15 Number systems and logic CSS Data Structures and Object-Oriented Programming Professor Clark F. Olson

Mathematical Logic Part Two

L05 - Negating Statements

Interpretations and Models. Chapter Axiomatic Systems and Incidence Geometry

Repetition Through Recursion

Practice Final. Read all the problems first before start working on any of them, so you can manage your time wisely

Workbook Unit 13: Natural Deduction Proofs (IV)

STABILITY AND PARADOX IN ALGORITHMIC LOGIC

Notes. Notes. Introduction. Notes. Propositional Functions. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry.

6.034 Notes: Section 10.1

CPSC 121: Models of Computation. Module 5: Predicate Logic

Propositional Calculus. Math Foundations of Computer Science

HOL DEFINING HIGHER ORDER LOGIC LAST TIME ON HOL CONTENT. Slide 3. Slide 1. Slide 4. Slide 2 WHAT IS HIGHER ORDER LOGIC? 2 LAST TIME ON HOL 1

Program Verification & Testing; Review of Propositional Logic

CS103 Handout 29 Winter 2018 February 9, 2018 Inductive Proofwriting Checklist

Mathematical Logic Prof. Arindama Singh Department of Mathematics Indian Institute of Technology, Madras. Lecture - 37 Resolution Rules

Foundations, Reasoning About Algorithms, and Design By Contract CMPSC 122

CSE 20 DISCRETE MATH. Fall

CMSC 201 Fall 2016 Lab 09 Advanced Debugging

Propositional Calculus: Boolean Algebra and Simplification. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

First-Order Translation Checklist

CS 512, Spring 2017: Take-Home End-of-Term Examination

CSC 501 Semantics of Programming Languages

CSE 120. Computer Science Principles

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

Propositional Calculus. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

A Random Walk through CS70

CSE 20 DISCRETE MATH. Winter

Propositional Logic. Andreas Klappenecker

CSL105: Discrete Mathematical Structures. Ragesh Jaiswal, CSE, IIT Delhi

For next Tuesday. Read chapter 8 No written homework Initial posts due Thursday 1pm and responses due by class time Tuesday

1 The Axiom of Extensionality

First Order Predicate Logic CIS 32

To prove something about all Boolean expressions, we will need the following induction principle: Axiom 7.1 (Induction over Boolean expressions):

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

Deduction Rule System vs Production Rule System. Prof. Bob Berwick. Rules Rule

Strategies for Proofs

Part I Logic programming paradigm

Overview. Iteration 4 kinds of loops. Infinite Loops. for while do while foreach

Warmup Problem. Translate the following sentence from English into Propositional Logic. I want to eat ice cream even though I am on a diet.

Multi-Place Predicates and Multiple Quantifiers

CSE20: Discrete Mathematics

Typed Lambda Calculus

Sets 1. The things in a set are called the elements of it. If x is an element of the set S, we say

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

INDEPENDENT POSTULATES FOR THE "INFORMAL" PART OF PRINCIPIA MATHEMATICA*

CSE 215: Foundations of Computer Science Recitation Exercises Set #4 Stony Brook University. Name: ID#: Section #: Score: / 4

Warmups! Write down & Plot the points on the graph

Computational Geometry: Lecture 5

STRUCTURES AND STRATEGIES FOR STATE SPACE SEARCH

First order logic (Ch. 8)

6. Inference and resolution

9. MATHEMATICIANS ARE FOND OF COLLECTIONS

2. Sets. 2.1&2.2: Sets and Subsets. Combining Sets. c Dr Oksana Shatalov, Fall

MITOCW watch?v=4dj1oguwtem

Lecture 5. Logic I. Statement Logic

Lecture 3: Constructing the Natural Numbers

Typed Lambda Calculus for Syntacticians

Agenda. Predicate Testing. CSE 5321/4321, Ali Sharifara, UTA

Sets. Sets. Subset, universe. Specifying sets, membership. Examples: Specifying a set using a predicate. Examples

Math 187 Sample Test II Questions

Discrete Mathematics Lecture 4. Harper Langston New York University

To prove something about all Boolean expressions, we will need the following induction principle: Axiom 7.1 (Induction over Boolean expressions):

Transcription:

You can t prove a predicate is true because a predicate is not an assertion, you can t prove it is valid as it is not a deduction! If someone asks you to prove P(x), it is not totally clear what they mean. Here are examples of assertions we can make about a predicate. No matter which object x U we consider, P(x) will always be true. x, P(x) x U, P(x) x A, P(x) for all x, the assertion P(x) is true. No matter which object x U we consider, P(x) will always be false. x, P(x) x U, P(x) x A, P(x) for all x, the assertion P(x) is false. There is an example of an object x U for which, P(x) will be true. x, P(x) x U, P(x) x A, P(x) there exists x, for which the assertion P(x) is true. There is no example of an object x U for which, P(x) will be true. x, P(x) x U, P(x) x A, P(x) there does not exists x, for which the assertion P(x) is true. Are any of these logically equivalent? The variable name, x, is a placeholder, it could be anything, a, b, y, z, γ, ϕ, ξ. Math 2000 (University of Lethbridge) Spring 2018 1 / 9

Examples - Converting natural language sentances Symbolization Key: U: The set of all animals. B: The set of all bears. F : The set of all fish. j: Jasper. d: Dory. x E y: x likes to eat y. Jasper is a bear. Dory is a fish. Jasper likes to eat Dory. Some bears like to eat Dory. All bears like to eat Dory. Jasper likes to eat certain fish. Jasper likes to eat all fish. Some bears like to eat some fish. All bears like to eat all fish. For all bears there is some fish they like to eat. There are some fish that all bears like to eat. If every bear likes to eat every fish then Dory likes to eat Jasper. One key point is that and are different, so you need to be careful. Math 2000 (University of Lethbridge) Spring 2018 2 / 9

Larger Example Consider the following symbolization key: U: The set of all living things C: The set of all cats A: The set of all animals D: The set of all dogs B: The set of all bears xly: x is larger than y translate the following assertions into the notation of First-Order Logic: Either every bear is larger than every dog and cat, or there exists a cat which is larger than every dog. Step 1: Notice the or: Either every bear is larger than every dog and cat, or there exists a cat which is larger than every dog. ( ) ( ) Step 2: Now just the blue part: every bear is larger than every dog and cat, b B,( ) Step 3: What does the orange stuff mean? b is larger than every dog and cat, means b is larger than every dog and b is larger than every cat, ( d D, bld) & ( c C, blc) Summarizing where we are (Step 3 goes into step 2 which goes into step 1!): ( b B,(( d D, bld)&( c C, blc))) ( ) Step 4: Now the green part there exists a cat which is larger than every dog. x C, c is larger than every dog x C, y D, xly Step 5: Put it all together ( b B,(( d D, bld)&( c C, blc))) ( x C, y D, xly) Math 2000 (University of Lethbridge) Spring 2018 3 / 9

Logical Equivalences of Quantifier Expressions There are many quantifier expressions that are logically equivalent! One consequence is that there may not be a unique answer to a question. We do not expect you to be able to identify on sight that two logically equivalent expressions are such. On the next slide we will discuss some that you need to know, but here are some that might influence how you think about translating expressions: Consider the following symbolization key: U: The set of all living things C: The set of all cats F : The set of all cute things There exists a cute cat x U, (x C & x F ) x C, x F x F, x C x U, x C F All cats are cute cats x C, x F x U, (x C x F ) x C, (x F & x C) x C, x F C How you read the sentance, often changes how you translate it, and how you think about it, even among logically equivalent statements, recognizing this can in the long term be very powerful. Math 2000 (University of Lethbridge) Spring 2018 4 / 9

Examples - Negating Quantifiers Just like negating statements in propositional logic, being able to negate quantifier expressions is very helpful in proofs! It is important to remember the logical equivalences these imply. The key thing is to remember that if something isn t true for all examples... then there exists a counterexample. Conversely, if there doesn t exist an example, then everything is a counterexample. Consider the two sentences: There are no bears that like to eat Dory. Every bear does not like to eat Dory. These are logically equivalent, and so x A, P(x) x A, P(X ). Consider the two sentences: not every bear wants to eat Dory. There is a bear that does not want to eat Dory. These are logically equivalent, and so x A, P(x) x A, P(X ). Math 2000 (University of Lethbridge) Spring 2018 5 / 9

Simplify the following assertion. (so that does not appear). [ ( ) ( d D, (d S) & (d / T ) e E, (d T ) (e S) We have [ ( ) d D, (d S) & (d / T ) ( e E, (d T ) (e S) [ ( ) ( d D, (d S) & (d / T ) e E, (d T ) (e S) [ ( ) ( d D, (d S) & (d / T ) & e E, (d T ) (e S) [ ( ) ( d D, (d S) (d / T ) & e E, (d T ) (e S) [ ( ) ( d D, (d / S) (d T ) & e E, (d T )&(e / S) Notice that at each step, we move the negation sign deeper into the expression, and are just using one of the simple negation rules. Math 2000 (University of Lethbridge) Spring 2018 6 / 9

Examples Vacuous truth - Some Tautologies with Quantifiers If there are no counterexamples... then everything is an example... even if there are no examples. Consider the two sentences: Every fish on the moon is 100m long. There are no fish on the moon that are not 100m long. The statements are logically equivalent, and are both true, vacuously x, P(x) is vacuously true. x, P(x) clearly false. Math 2000 (University of Lethbridge) Spring 2018 7 / 9

Quantifiers and Assertions about Sets Assertions about sets are often the same as an assertion involving a quantifier. A B is the same as a A, a B. A is the same as a, a A. A consequence is that to prove: Theorem Given any two sets A and B we must have: A B A B We must prove x A B, x A B How to deal with proofs involving quantifiers will come soon. Math 2000 (University of Lethbridge) Spring 2018 8 / 9

Common Errors With Quantifiers/Sets/Translation All of the math symbols we have defined all have very specific grammar rules. The operations of propositional logic, &,, =. require the left and right hand side to be assertions The algebra operations on sets,, \. require the left and right hand side to both be sets The predicates of sets,,,,. require the left hand side to be a thing in the universe and the right hand side to be a set. The quantifiers of first order logic,,. always give exactly one comma, the thing which you are talking about So it never makes sense to write or and x A B x A, x B, x C x A & B only makes sense it B is an assertion, and not if B is an assertion and not a set!! The expressions you write should be things which you could hypothetically evaluate if you knew exactly what the objects were! Math 2000 (University of Lethbridge) Spring 2018 9 / 9