From Propositional! to Predicate Logic" CSCI 2824, Fall 2011" classes/struct11/home.html "

Similar documents
1/ 19 2/17 3/23 4/23 5/18 Total/100. Please do not write in the spaces above.

Introduction p. 1 The Elements of an Argument p. 1 Deduction and Induction p. 5 Deductive Argument Forms p. 7 Truth and Validity p. 8 Soundness p.

Philosophy 405: Knowledge, Truth and Mathematics Spring Russell Marcus Hamilton College

First Order Logic. Xiaojin Zhu Computer Sciences Department University of Wisconsin, Madison. [Based on slides from Burr Settles]

Primes and Composites

On the Infinity of Primes of the Form 2x 2 1

Corinne: I m thinking of a number between 220 and 20. What s my number? Benjamin: Is it 25?

6.034 Notes: Section 4.1

1-5 Square Roots and Real Numbers. Holt Algebra 1

First Order Logic Part 2

Chapter 4. Predicate logic allows us to represent the internal properties of the statement. Example:

PHIL12A Section answers, 20 April 2011

MATH 195: Gödel, Escher, and Bach (Spring 2001) Notes and Study Questions for Tuesday, March 20

Fill in dates in the table as you set your objectives and reach them. I can understand simple instructions used in class.

The Philosophy of Language. Frege s Sense/Reference Distinction

Argument and argument forms

The Embedding Problem for Non-Cognitivism; Introduction to Cognitivism; Motivational Externalism

Peirce's Remarkable Rules of Inference

Complete ISN: Objective(s): I can TPCASTT a new poem and look For leadership characteristics. Purpose: To explain & analyze poems.

Reply to Stalnaker. Timothy Williamson. In Models and Reality, Robert Stalnaker responds to the tensions discerned in Modal Logic

Unit 07 PC Form A. 1. Use pencil and paper to answer the question. Plot and label each point on the coordinate grid.

TABLE OF CONTENTS. Free resource from Commercial redistribution prohibited. Language Smarts TM Level D.

1 The structure of this exercise

Vagueness & Pragmatics

Lecture 5: Tuning Systems

Alcohol-Specific Role Play Test

Language and Mind Prof. Rajesh Kumar Department of Humanities and Social Sciences Indian Institute of Technology, Madras

Blue - 1st. Double Blue - Yellow. Double. Green - Double Green - Orange - Pink - Free - Reader

Classifying the Patterns of Natural Arguments

boring sad uncertain lonesome

Transcriber(s): Yankelewitz, Dina Verifier(s): Reid, Adrienne, Farhat, Marcelle Date Transcribed: Spring 2009 Page: 1 of 6

Low Voltage Wall Mount Touch Panel RGB Controller

Answer Key Grade 5. Practice Test. The Road Not Taken Birches

cse371/mat371 LOGIC Professor Anita Wasilewska

Ratios. How are the numbers in each ad compared? Which ads are most effective?

Book Report Makeover: Power of Persuasion

Sentences. A sentence is a group of words that tells a complete thought. A sentence always tells who or what

The unbelievable musical magic of the number 12

Entering First Graders Review Packet * No Prep * (End of Kindergarten) *Common Core Aligned*

Universals. Some Existence Arguments

HEAVEN PALLID TETHER 1 REPEAT RECESS DESERT 3 MEMORY CELERY ABCESS 1

T/R 1: How many think one third? You all agree. Can you tell me why you would give it the number name one third?

Sidestepping the holes of holism

Write It Right: Brenda Lyons, Ed.D. Say It Right

PROOF AND PROVING: LOGIC, IMPASSES, AND THE RELATIONSHIP TO PROBLEM SOLVING MILOS SAVIC, B.S., M.S. A dissertation submitted to the Graduate School

Power Words come. she. here. * these words account for up to 50% of all words in school texts

What is a Sentence? The rabbit that is hopping around. the horse track. The bunch of red roses. in their bee hives. is in a purple vase.

What is the yellow cake, and what makes it yellow rather than merely cake?

TERMS & CONCEPTS. The Critical Analytic Vocabulary of the English Language A GLOSSARY OF CRITICAL THINKING

Getting to know a text:

The Language Revolution Russell Marcus Fall Class #7 Final Thoughts on Frege on Sense and Reference

Unit 7.2. Terms. Words. Terms. (Table - 1)

Cambridge Primary English as a Second Language Curriculum Framework mapping to English World

The central or main idea of a nonfiction text is the point the author is making about a topic.

In the sentence above we find the article "a". It shows us that the speaker does not need a specific chair. He can have any chair.

Apostolos Doxiadis. Euclid s Poetics. An examination of the similarity between narrative and proof 1

CS 151 Final. Instructions: Student ID. (Last Name) (First Name) Signature

pre-watching Look at these pictures. Talk about the pictures. Which words, feelings come to your mind?

Unit 3, Part 3 Whatif and Jimmy Jet and His TV Set

MATH 214 (NOTES) Math 214 Al Nosedal. Department of Mathematics Indiana University of Pennsylvania. MATH 214 (NOTES) p. 1/3

KAMPÉ DE FÉRIET AWARD ADDRESS. Enric Trillas.

What can you learn from the character? How do you know this? Use a part of the story in your answer. RL 1.2

SAMPLE COURSE OUTLINE PHILOSOPHY AND ETHICS GENERAL YEAR 12

Using Commas. c. Common introductory words that should be followed by a comma include yes, however, well.

DIFFERENTIATE SOMETHING AT THE VERY BEGINNING THE COURSE I'LL ADD YOU QUESTIONS USING THEM. BUT PARTICULAR QUESTIONS AS YOU'LL SEE

Product Specification

What is the meaning of the word as it is used in the passage?

Background to Gottlob Frege

ESL Helpful Handouts Page 1 of 10. The Present Progessive Tense, Information Questions, Short Answer Questions, Short Answers

STAAR Reading Terms 6th Grade. Group 1:

Transcriber(s): Yankelewitz, Dina Verifier(s): Lew, Kristen Date Transcribed: Spring 2009 Page: 1 of 5

Scientific Philosophy

The 4 Step Critique. Use the vocabulary of art to analyze the artwork. Create an outline to help you organize your information.

Problem 5 Example Solutions

Ten-Minute Grammar VERBALS. LITERATURE: This unit contains example selections from the novel Fallen Angels by Walter Dean Meyers.

META-COGNITIVE UNITY IN INDIRECT PROOFS

Lecture 10 Popper s Propensity Theory; Hájek s Metatheory

CS 2104 Intro Problem Solving in Computer Science READ THIS NOW!

Test Drive Report for BenQ FP71V+ LCD Monitor

4 DETERMINERS AND PRONOUNS

Appendix B. Elements of Style for Proofs

Practice Task: The Sieve of Eratosthenes

flower street snow bath suit rain sun block light pot coat star fish bird 5. A kind of lotion you put on your skin in the summer

1.0 GENERAL. 1.2 SUMMARY.1 Section Includes:

LESSON 71. Vocabulary Review. Reading Words EXERCISE 1 EXERCISE 2. Column 2 m. Find column 2. (Teacher reference:)

1. Use commas to separate independent clauses when they are joined by any of these seven coordinating conjunctions: and, but, for, or, nor, so, yet.

Chapter 6. University Library

Articulating Medieval Logic, by Terence Parsons. Oxford: Oxford University Press,

AAL Timetable and Abstracts

New Inside Out Beginner Units Tests

SAMPLE COURSE OUTLINE PHILOSOPHY AND ETHICS ATAR YEAR 11

Habits and Interpretation: defending the pragmatist

Calculated Percentage = Number of color specific M&M s x 100% Total Number of M&M s (from the same row)

Lesson 5: Possible or Impossible

Ling 130: Formal Semantics. Spring Natural Deduction with Propositional Logic. Introducing. Natural Deduction

Let's Learn About Notes

Critical Thinking 4.2 First steps in analysis Overcoming the natural attitude Acknowledging the limitations of perception

Enigma. Developed and patented (in 1918) by Arthur Scherbius Many variations on basic design Eventually adopted by Germany

Types of perceptual content

Dialogue Protocols for Formal Fallacies

Transcription:

From Propositional! to Predicate Logic" CSCI 2824, Fall 2011" http://l3d.cs.colorado.edu/~ctg/ classes/struct11/home.html "

Assignments To read this week: Sections 1.4-1.6 (Emsley/ Crawley) For next week: Chapter 2.1-2.4 "!!!!

Playing with Logic: Mastermind

Let s See if We Can Represent Mastermind Ideas in Propositional Logic First, let s make some proposition symbols. We ll say that BLUE1 stands for the proposition In the correct code, the blue peg is in position 1. There are a bunch of these propositions: BLUE2, BLUE3, BLUE4, ORANGE1, ORANGE2

More Mastermind In the correct code, there is one peg (of some color) in position 1 : BLUE1 OR ORANGE1 OR RED1 OR WHITE1 OR YELLOW1 OR PURPLE1 But that s not quite enough The statement above is consistent with the (incorrect) possibility that both a blue and orange (say) are in position 1.

So we need some additional statements: NOT (ORANGE1 AND BLUE1) NOT (ORANGE1 AND RED1) NOT (ORANGE1 AND PURPLE1) etc. These statements say It is not the case that there are two distinct colors in position 1

What do we learn from a guess? My guess: RED BLUE WHITE ORANGE Answer: X,0 From the X, I get: RED1 OR BLUE2 OR WHITE3 OR ORANGE4 NOT (RED1 AND BLUE2) NOT (RED1 AND WHITE3) NOT (RED1 AND ORANGE4) NOT (BLUE2 AND WHITE3) NOT (BLUE2 AND ORANGE4) NOT (WHITE3 AND ORANGE4)

What do we learn from a guess? My guess: RED BLUE WHITE ORANGE Answer: X,0 From the 0, I get: RED2 OR RED3 OR RED4 OR BLUE1 OR BLUE3 OR BLUE4 OR WHITE1 OR WHITE2 OR WHITE4 OR ORANGE1 OR ORANGE2 OR ORANGE3 NOT (RED2 AND BLUE1) many others of this form

How do we solve a code? Suppose we know: ORANGE1 OR BLUE1 NOT ORANGE1 Then we can conclude: BLUE1

What have we learned about propositional logic from this? One thing that we ve learned on the good side is that propositions do allow us to represent situations like Mastermind. On the not-so-good side, we ve found that doing real tasks with propositional logic (if you want to call Mastermind a real task) can require a surprising amount of infrastructure.

Why (or why not?) Propositional Logic It s simple to understand But it s rather inexpressive And simple to understand does not mean that all problems are simple: (x1 OR ~x5 OR x3) AND (~x1 OR ~x2 OR x6) AND (x3 OR x5 OR ~x6) AND.

A Brief Aside: Illogical Humans? Problems with Modus Ponens and Modus Tollens When are we logical?

K E 4 7 If a card has a vowel on one side, then it has an even number on the other side.

Drinking Coke Drinking Beer 21 years old 18 years old If a person is drinking an alcoholic beverage, then that person is at least twenty years old.

Propositional Logic: Where We ve Come So Far Basic objects are sentences with T/F values Connectors (AND, OR, NOT, etc.) are used to make compound sentences Basic rules of inference (Modus Ponens, etc.) are used to derive new sentences from a knowledge base of existing sentences

First-Order Predicate Logic We introduce a world of objects. Our logical sentences will refer to these objects. In many computer programs, the objects might refer to elements of a finite set (think about a database for, say, a library, or a business payroll) For our initial examples, we ll mainly use numbers as our objects (and we ll specify whether we mean a finite set, integers, rationals, reals, etc.)

Some Sample Predicates Prime (n) is the predicate n is a prime number (defined over the infinite set of positive integers) Even (n) is the predicate n is an even number Rational (x) is the predicate x is a rational number (defined over the infinite set of real numbers)

Some statements about positive integers (note: we still have the usual connectors): Prime (19) Even (7) OR Even (8) Prime(23) AND NOT(Even (23))

First-Order Predicate Logic: A Bit More Terminology We allow predicates of two or more arguments: Greater-Than(5, 3) Relatively-Prime (25, 6) Equal (2, 2) [often we just write 2 = 2 for simplicity] We have two quantifiers: THERE-EXISTS and FOR-ALL FOR-ALL(n) [(Prime(n) AND Greater-than(n, 2)) -> NOT (Even (n))] THERE-EXISTS(n) [Even(n) AND Prime(n)]

Predicate Logic Classics FOR-ALL(n)[ Prime(n) à THERE-EXISTS(q) [Greater-than(q, n) AND Prime(q)]]

Predicate Logic Classics FOR-ALL(n) [(Even(n) AND Greater-than(n, 2)) > THERE-EXISTS (p, q) [Prime(p) AND Prime(q) AND n = (p + q)]] The Goldbach Conjecture

Quantifiers in English: An Example You can fool all of the people some of the time, and some of the people all of the time, but you can t fool all of the people all of the time. FOR-ALL (x) [Person(x) --> THERE-EXISTS(t) [Time(t) AND Fool-at-time(x, t)]] THERE-EXISTS(x) [Person(x) AND (FOR-ALL(t) [Time(t) --> Fool-at-time(x, t)]] NOT(FOR-ALL(x, t)[(person(x) AND Time(t)) --> Fool-at-time(x,t)]

Quantifiers and Dean Martin Everybody loves somebody sometime. FOR-ALL(x)[Person(x) --> THERE-EXISTS(y, t) [Person(y) and Time(t) and Loves-at-time(x,y,t)]] THERE-EXISTS(t,y)[Time(t) AND Person(y) AND FOR-ALL(x)[Person(x) --> Loves-at-time(x,y, t)]]

THERE-EXISTS(t)[Time(t) AND FOR-ALL(x) [Person(x) --> THERE-EXISTS(y) THERE-EXISTS(y)[Person(y) AND [Person(y) AND Loves-at-time(x,y,t)]} FOR-ALL(x) [Person (x) --> THERE-EXISTS(t)[Time(t) AND Loves-at-time(x, y, t)]]

Mastermind Challenge Problem (due 9/6) Colors: Blue, Orange, Red, Yellow, Purple, White Repeat colors in the code are allowed. Clues: x = a peg in the right position o = a peg that has to be moved to be in the right position W O B R!!!xo! P Y R B!!!xo! R R O Y!!!ooo! Y R R W!!!xx!