Chapter 8: Syntax and Semantics I 80-210: Logic & Proofs July 21, 2009 Karin Howe.

Slides:



Advertisements
Similar presentations
Mother Goose Rhyme Time Fun Blue Valley Youth Services
Advertisements

Artificial Intelligence
Most Rhyme Rhyme is when the end of two or more words sound the same. Some are trivial Poetical Often some are put to Music.
The.
Summarizing Getting to the Point.
Now I know my ABC's, Next time won't you sing with me!
$2 $5 $10 $1 $2 $5 $10 $1 $2 $5 $10 $1 Nursery rhymes about animals and people Nursery Rhymes about people Nursery Rhymes about animals.
Little Bo-Peep has lost her sheep, And can't tell where to find them; Leave them alone, and they'll come home, Bringing their tails behind them.
Nursery Rhyme Crimes Goal Jack and Jill Jack and Jill went up the hill The fetch a pail of water; Jack feel down and broke his crown, And Jill came.
Knowledge Representation Methods
I Sing You Sing We All Sing. The Eentsy Weentsy Spider.
THE REAL MOTHER GOOSE Illustrated by Blanche Fisher Wright 1916.
Review Test 5 You need to know: How to symbolize sentences that include quantifiers of overlapping scope Definitions: Quantificational truth, falsity and.
Sing a Song of Sixpence Sing a song of sixpence, A pocket full of rye; Four and twenty blackbirds Baked in a pie.
Hey Diddle, Diddle Hey Diddle, Diddle, The cat and the fiddle. The cow jumped over the moon. The little dog laughed to see such sport. And the dish ran.
Nursery Rhymes Humpty Dumpty Little Bo Peep Baa, Baa, Black Sheep
Paraphrase Keep main idea Cannot change proper nouns Cannot change facts Must change adjectives Improve verbs Stays about the same length So…put main.
Little Miss Muffet sat on a tuffet, Eating her curds and whey; (mmm) Along came a spider and sat down beside her, And frightened Miss Muffet away. (Eek!)
Learning objective: To learn and recall nursery rhymes. Mrs A. Jones. Greenhill Primary School Area of Learning: Language, Literacy and Communication Skills.
Songs And Poems. Verb songs Jump Up, Sit Down Jump up, sit down, jump up, sit down Do a little dance dance dance Jump up, sit down, jump up, sit down.
Welcome to... A Game of X’s and O’s A Presentation.
From Dr. Jean’s CD “Dr. Jean & Friends”. Jack and Jill went up the hill To fetch a pail of water. Jack fell down and broke his crown, And Jill came tumbling.
PowerPoint Jeopardy FlowersNursery Rhymes WeatherSensesCounting Shapes
The Mystery. The Story A boy is hurt in a bicycle accident. The ambulance driver rushes the boy to a hospital and calls the child's father, Dr. Smith.
Little Miss Muffet Little Miss Muffet, sat on a tuffet, Eating her curds and whey; Along came a spider, Who sat down beside her And frightened Miss Muffet.
Determining Validity and Invalidity in Deductive Arguments PHIL 121: Methods of Reasoning February 6, 2013 Instructor:Karin Howe Binghamton University.
Summarizing Getting to the Point.
80-210: Logic & Proofs July 30, 2009 Karin Howe
Chapter 9: Syntax and Semantics II : Logic & Proofs July 23, 2009 Karin Howe.
The Itsy Bitsy Spider By Iza Tripani.
Propositional Logic Rather than jumping right into FOL, we begin with propositional logic A logic involves: §Language (with a syntax) §Semantics §Proof.
Outline Logic Propositional Logic Well formed formula Truth table
SUMMARIZING GETTING TO THE POINT. SUMMARY  A short account of the central ideas of a text  Summaries are NOT a place for… Opinions Background knowledge.
Pronunciation 1 Rhyme.
Simile-using like or as to compare 2 things. Ex. The butterfly was as beautiful as nature. Ex. Chelsey was as busy as a bee.
Rules Always answer in the form of a question Team names & buzzer sounds ready 50 points to be taken away for wrong answers. 10 points added for correctly.
Nursery Rhymes ECE: Art, Music, and Language Arts.
Nursery Rhymes Name Teacher.
Summarizing Getting to the Point. Summary A penny for your thoughts? If it’s a 1943 copper penny, it could be worth as much as fifty thousand dollars.
Starter Activity What am I? Cheetah Rainbow Candle Snake.
Summarizing Getting to the Point.
Summarizing Getting to the Point.
Ruby Class Nursery Rhymes and Songs
Summarizing Getting to the Point.
Jack and Jill Jack and Jill Went up the hill,
Nursery Rhymes Song.
Invent a fifth season. Give it a name and describe it.
Semantics In propositional logic, we associate atoms with propositions about the world. We specify the semantics of our logic, giving it a “meaning”. Such.
Summarizing Getting to the Point.
August 20-24, 2018 MORNING SONG LETTER OF THE WEEK CHAPEL
Summarizing Getting to the Point.
Summarizing Getting to the Point.
Summarizing Getting to the Point.
Jill Jack and A Nursery Rhyme.
Summarizing Getting to the Point.
Summarizing Getting to the Point.
Incy Wincy Spider.
Summarizing Getting to the Point.
Summarizing Getting to the Point.
6.4 Truth Tables for Arguments
Summarizing Getting to the Point.
Summarizing Getting to the Point.
Summarizing Getting to the Point.
Summarizing Getting to the Point.
Summarizing Getting to the Point.
Summarizing Getting to the Point.
Summarizing Getting to the Point.
Nursery Rhymes By Michael Herr.
Summarizing Getting to the Point.
Summarizing Getting to the Point.
Presentation transcript:

Chapter 8: Syntax and Semantics I : Logic & Proofs July 21, 2009 Karin Howe

Recall the Kangaroo Argument 1.All kangaroos can fly. 2.Jim is a kangaroo.____  Jim can fly. In "standard form:" 1.If it is a kangaroo, it can fly.K  F 2.Jim is a kangaroo._______K____  Jim can fly.  F

Isn't this a bit fishy? 1.If it is a kangaroo, it can fly.K  F 2.Jim is a kangaroo._______K____  Jim can fly.  F oNote the mismatch between the antecedent on line 1, and the statement on line 2! oAlso note that we've changed line 1 - used to read "All kangaroos can fly"!

The Kangaroo Argument done "right" 1.All kangaroos can fly. 2.Jim is a kangaroo.____  Jim can fly. 1.K 2.J___ FF oThere - that's better! Right? oWhoops! ….. now it's invalid! oYet, the Kangaroo Argument is clearly valid!! oNeed a way of representing the structure of the argument that can highlight the internal structure of the statements, and their relationship to each other. oPredicate logic to the rescue!

The Kangaroo Argument done RIGHT! 1.All kangaroos can fly. 2.Jim is a kangaroo.____  Jim can fly. Read this off as: 1.For all x, if x is a kangaroo, then x can fly. 2.Jim is a kangaroo.____________________  Jim can fly. Symbolized: 1.(  x)(K(x)  F(x))K(x) = x is a kangaroo 2.K(j)____________F(x) = x can fly  F(j)j = Jim

The language of predicate logic New symbols: –  : for all Use to symbolize words like "all," "every" –  : there exists Use to symbolize "some" (means at least one) Punctuation:, Keep old symbols: , &, , ,  Previous punctuation: ( )

Predicates n-ary predicates (n > 0) –Examples: x is a dog: D(x) x loves y: L(x,y) x gave y the z: G(x,y,z) In theory, you can have any number of places in a predicate: R(x 1, x 2, …, x 8, …. x 27, …) Can also have 0-place predicates: atomic formulae (e.g., P, Q, R, etc.)

Constants (Singular terms) Can also have constants in our language, that refer known individuals with a certain quality. Convention: these constants are restricted to letters a - t Use these constants to plug "holes" in predicates with the known individuals who have the indicated quality: _____ laughedL(x) m = MaryL(m) n = NancyL(n) o = OscarL(o) a = UrsulaL(a)

Truth and Falsity in Predicate Logic In an important sense, no different than in propositional logic Consider the atomic formula: A –A = Alligators live in Florida True or false? –A = Alligators live in Pittsburgh True or false? Consider the predicate formula: –K(x) = x is a kangaroo; j = Jim K(j) – true or false? –K(x) = x is a logic professor; j = Jim K(j) – true or false? All of the usual truth table rules (for the connectives) will still apply

Interpretations Definition: Truth and falsity with respect to an interpretation: 1.If  is a 0-place predicate letter, then  is true iff I(  ) = T. 2.If  is of the form  (x 1, …, x n ) where  is a n-place predicate letter (with n > 0), and x 1, …, x n are n terms, then  is true on I iff is in I(  ) Example: –S(x,y,z) = the sum of x and y is z –P(x,y,z) = the product of x and y is z –Domain: {0,1,2,3,4,5} –Interpretation: I(S) = {,,,,,,, …} I(P) = {,,,,,,, …} –True or False? S(1,3,4) S(0,1,1) S(3,1,4) S(4,3,5) P(0,1,0) P(1,1,1) P(2,3,5) P(5,3,4)

Change the Interpretation, Change the Truth Value Example: –S(x,y,z) = x is sitting between y and z –P(x,y,z) = x is next to y and two places to the left of z –Domain: {Amelie, Chris, Daniel, Nathan, Sungwoo, Tomasz} –Interpretation: I(S) = {,,,,, } I(P) = {,,,,, } –True or False? S(a,n,s) S(d,a,c) S(s,t,n) S(n,c,t) P(a,c,d) P(d,a,t) P(d,s,n) P(n,c,a)

Practice with Symbolization Hey diddle diddle, The cat and the fiddle, The cow jumped over the moon, Dictionary: J(x,y) = x jumped over y c = the cow m = the moon Symbolization: J(c,m) The little dog laughed to see such sport, Dictionary: L(x) = x laughed to see such sport d = the little dog Symbolization: L(d) And the dish ran away with the spoon Dictionary: R(x,y) = x ran away with y a = the dish s = the spoon Symbolization: R(a,s)

Jack and Jill went up the hill To fetch a pail of water. Dictionary: W(x,y,z) = x went up y to do z a = Jack i = Jill h = the hill f = fetch a pail of water Symbolization: W(a,h,f) & W(i,h,f) Jack fell down and broke his crown, Dictionary: F(x) = x fell down B(x) = x broke x's crown a = Jack Symbolization: F(a) & B(a) And Jill came tumbling after Dictionary: T(x) = x came tumbling after i = Jill Symbolization: T(i)

Hickory, dickory, dock, The mouse ran up the clock. Dictionary: R(x,y) = x ran up the y m = the mouse c = the clock Symbolization: R(m,c) The clock struck one, Dictionary: S(x,y) = x struck y c = the clock o = one Symbolization: S(c,o) The mouse ran down, Dictionary: R(x) = x ran down m = the mouse Symbolization: R(m) Hickory, dickory, dock

The itsy bitsy spider went up the water spout. Dictionary: W(x,y) = x went up the y s = the itsy bitsy spider a = the water spout Symbolization: W(s,a) Down came the rain, and washed the spider out. Dictionary: C(x) = x came down A(x,y) = x washed y out r = the rain s = the itsy bitsy spider Symbolization: C(r) & A(r,s) Out came the sun, and dried up all the rain Dictionary: O(x) = x came out D(x,y) = x dried up y b = the sun r = the rain Symbolization: O(b) & D(b,r) And the itsy bitsy spider went up the spout again Dictionary: B(x,y) = x went up the y again s = the itsy bitsy spider a = the water spout Symbolization: B(s,a)

Peter, Peter pumpkin eater, Had a wife but couldn't keep her; Dictionary: H(x,y) = x had y K(x,y) = x kept y p = Peter, Peter pumpkin eater a = Peter's wife Symbolization: H(p,a) &  K(p,a) He put her in a pumpkin shell Dictionary: P(x,y,z) = x put y in z p = Peter, Peter pumpkin eater a = Peter's wife s = pumpkin shell Symbolization: P(p,a,s) And there he kept her very well. Dictionary: W(x,y,z) = x kept y in z very well p = Peter, Peter pumpkin eater a = Peter's wife s = pumpkin shell Symbolization: W(p,a,s)

Pussy cat, pussy cat, where have you been? I've been to London to visit the Queen. Dictionary: V(x,y,z) = x went to y to visit the z p = pussy cat l = London q = the Queen Symbolization: V(p,l,q) Pussy cat, pussy cat, what did you do there? I frightened a little mouse, under her chair. Dictionary: F(x,y,z) = x frightened y under z p = pussy cat m = little mouse c = the Queen's chair Symbolization: V(p,m,c)

Proofs Involving Predicate Formulas Practice CPL Problems Lab #5