SlideShare a Scribd company logo
Propositional Logic
• p  q
• NO internal structure
Predicate logic
• Loves (j, m)
• DOES have internal structure
Japan is a country
Japan is a country
• Country (x)
• x = japan
• Country (japan)
Easy so far?
• Yes
• But what is the point?
• Good question
It helps with computer programming
We use it to input data
And write code
Data
• You can put in any information you want
Peter fell over
• Predicate?
• Fell_over
• How many arguments?
• One – peter
• Fell_over (peter)
Jim donated $100 to the city hospital
• Donated (x,…..n)
• Donated (jim, $100, city_hospital)
• Donated (x, y, z)
• X = Jim
• Y = $100
• Z= the city hospital
Ben hates computers
• Hate (ben, computers)
Eri gave up
• Gave_up (eri)
Emi is a genius
• Genius (emi)
No limits as long as it’s organized
• Visit (mary, familiymart, sat_15th_april,)
• Computational Linguistics:
• Verb
• Subject
• Complement
Hit
• Hit ( )
• Hit (x, )
• Hit (x, y)
• X = bill
• Y = ken
• Bill hit Ken
Quantifiers
The Little Prince is wearing a brown
scarf
• Wearing_a_brown_scarf (p)
• Wearing (p, b_s)
But the Little Prince is the only person
in this world
Everyone is wearing a brown scarf
Imagine simple little worlds
What do quantifiers mean?
All – upside-down A
Think of sets
• Two sets
• Set A
• Set B
• Set A = the set of Linguists
• Linguist (x)
• Set B = the set of crazy people
• Crazy_person (x)
Who is in these sets?
• Linguist (x)
• {evans,
• imai,
• ono}
Computer database
• Linguist (evans)
• Linguist (imai)
• Linguist (ono)
• Set of linguists =
• {evans, imai, ono}
Who is in the set of crazy people?
• Crazy_person (x)
• {ken,
• jim,
• ben,
• mary,
• evans}
Computer database
• Crazy_person (evans)
• Crazy_person (ken)
• Crazy_person (jim)
• Crazy_person (ben)
• Crazy_person (mary)
Linguist (x)  Crazy_person (x)
All linguists are crazy
• ∀x (Linguist (x)  Crazy_person (x))
• Is this true?
• For all individuals x, if x is in the set of
Linguists, x is also in the set of Crazy persons.
• Set A = the set of Linguists
• Linguist (x)
• Set B = the set of crazy people
• Crazy_person (x)
Who is in these sets?
• Linguist (x)
• {evans,
• imai,
• ono}
Who is in the set of crazy people?
• Crazy_person (x)
• {ken,
• jim,
• ben,
• mary,
• evans}
All linguists are crazy
• ∀x (Linguist (x)  Crazy_person (x))
• Is Untrue
• Because two members of the set of linguists
are not in the set of crazy people.
Some linguists are crazy
• Is this True?
• Linguist (x) & Crazy_person (x)
Some linguists are crazy
• ∃x (Linguist (x) & Crazy_person (x))
• Backward E
• Existential Quantifier
• There is at least one individual x
• x is a linguist
• And x is crazy
Who is in the set of crazy people?
• Crazy_person (x)
• {ken,
• jim,
• ben,
• mary,
• evans}
Evans is in the set of crazy people
• So this is true
• ∃x (Linguist (x) & Crazy_person (x))
• Backward E
• Existential Quantifier
• There is at least one individual x
• x is a linguist
• And x is crazy
Predicate
• Mary is a girl
• Girl
• Girl (mary)
Predicate
• Mary lives in Tsuru
• Lives_in_Tsuru (mary)
Set of girls
• Girl (mary)
• Girl (eri)
• Girl (rie)
• Girl = {mary, eri, rie}
Set of people who live in Tsuru
• Live_in_tsuru (ben)
• Live_in_tsuru (ken)
• Live_in_tsuru (mary)
• Live in Tsuru = {ben, ken, mary}
A girl lives in Tsuru
• ∃x
• (
• Girl (x)
• & Lives_in_tsuru (x)
• )
• ∃x (Girl (x) & Lives_in_tsuru (x))
Set of girls
• Girl (mary)
• Girl (eri)
• Girl (rie)
• Girl = {mary, eri, rie}
Set of people who live in Tsuru
• Live_in_tsuru (ben)
• Live_in_tsuru (ken)
• Live_in_tsuru (mary)
• Live in Tsuru = {ben, ken, mary}
• ∃x (Girl (x) & Lives_in_tsuru (x))
• Is True!
A girl lives in Fujiyoshida
• ∃x
• (
• Girl (x)
• & Lives_in_fujiyoshida (x)
• )
• ∃x (Girl (x) & Lives_in_fujiyoshida (x))
Set of girls
• Girl (mary)
• Girl (eri)
• Girl (rie)
• Girl = {mary, eri, rie}
Set of people who live in Fujiyoshida
• Live_in_tsuru (ben)
• Live_in_tsuru (len)
• Live_in_tsuru (stan)
• Live in Tsuru = {ben, len, stan}
• ∃x (Girl (x) & Lives_in_fujiyoshida (x))
• Is False!
• But
• ¬∃x (Girl (x) & Lives_in_fujiyoshida (x))
• Is true
• ~∃x (Girl (x) & Lives_in_fujiyoshida (x))
• Is true
• -∃x (Girl (x) & Lives_in_fujiyoshida (x))
• Is true
Any problems with Predicate Logic?
• Yes
• We are not always trying to say things that are
true
The sky is blue
We don’t say the sky is blue at night
Even though it’s true
• We sometimes say things that are not true
• “My brain exploded”
• And do we really think in Logical Form?
• ¬∃x (Girl (x) & Lives_in_fujiyoshida (x))
• And if I say “A girl lives in Fujiyoshida” …
• … is it really a statement about existence of an
individual?
• Or am I more concerned with number
• Or the fact that we’re talking about a girl
rather than a boy?
• Or a girl rather than a woman?
• Or something else related to CONTEXT?
New ideas about how we understand
meaning
Language connects to the body
NOT all in the brain!
Also strong evidence for IMAGES
rather than CODE
Strong evidence for ACTION simulation
Mental Models as IMAGES
Many people say Logical Form cannot
be real
But Logic is VERY important in
Linguistics!
• The nurse kissed every child on his birthday.
• [The nurse] kissed [every child] on his birthday.
• Kissed (nurse, every_child)
• ∀x (Child (x)  Kissed (nurse, x)) on x’s
birthday
• The nurse kissed every child on his birthday
But Logic is VERY important in
Linguistics
And logic is the basis of computer
science
∃ (existential)
• M(jen,mary)
• M = mother
• Jen is Mary’s mother
• ∃xM(x,y)
• Someone is the mother of y
• ∀y∃xM(x,y)
• Everyone has a mother
• Likes (ben, emi)
• Ben likes Emi
• Likes (x, y)
• x likes y
X = boys, Y = girls
• Likes (x, y)
• x likes y
• (let’s say x = boys and y = girls)
• ∃y (Likes (x, y)
• There is some girl that x likes
• ∃y (Likes (x, y)
• There is some girl that x likes
• ∀x∃y (Likes (x, y)
• Each boy likes a girl
Each boy likes a girl
Boys Girls
∀x∃y (Likes (x, y)
Boys Girls
There’s one girl all the boys like
Boys Girls
All the boys like one girl
Boys Girls
∃y∀x (Likes (x, y)
Boys Girls
p → q
• p = Jim is dead
• q = Mary is sad
• p → q =
• If Jim is dead, Mary is sad
p V q
• p = My parrot is clever
• q = Taro fell over
• p V q =
• (either) my parrot is clever or Taro fell over
p → q
• p = I study hard
• q = I will pass the test
• p → q =
• If I study hard, I will pass the test
¬p → ¬q
• P = I study hard
• Q = I will pass the test
• ¬p → ¬q = If I do not study hard, I will not
pass the test
• If NOT(I study hard) then NOT (I will pass the
test)
p → q
• Normal everyday values for p and q
• p = a bear has warm blood
• q = a bear is a mammal
¬p → q
• Normal everyday values for p and q
• p = you study hard
• q = you will fail
• If you DON’T study hard, you will fail
Modern Linguistics
• Studying language helps us understand the
human brain
• Do you think the human brain works like
computer code?
• Do you think studying language tells us
something about the brain?

More Related Content

Similar to Predicate calculus

Sentence sem1update
Sentence sem1updateSentence sem1update
Sentence sem1update
Hywel Evans
 
Knowledge Representation and Reasoning.pptx
Knowledge Representation and Reasoning.pptxKnowledge Representation and Reasoning.pptx
Knowledge Representation and Reasoning.pptx
MohanKumarP34
 
Sem3
Sem3Sem3
Semantics Third
Semantics ThirdSemantics Third
Semantics Third
Hywel Evans
 
Les articles en français
Les articles en françaisLes articles en français
Les articles en françaiskvarela
 
X02PredCalculus.ppt
X02PredCalculus.pptX02PredCalculus.ppt
X02PredCalculus.ppt
MalligaarjunanN
 
PRIMER DIA DE CLASE EA GROUP 2022.pptx
PRIMER DIA DE CLASE EA GROUP 2022.pptxPRIMER DIA DE CLASE EA GROUP 2022.pptx
PRIMER DIA DE CLASE EA GROUP 2022.pptx
RocioFretes5
 
first_order_logic.pdf
first_order_logic.pdffirst_order_logic.pdf
first_order_logic.pdf
AhmedNURHUSIEN
 
First order logic.ppt
First order logic.pptFirst order logic.ppt
First order logic.ppt
visnuyaathav1
 
Test Review
Test ReviewTest Review
Test Review
Hywel Evans
 

Similar to Predicate calculus (11)

Sentence sem1update
Sentence sem1updateSentence sem1update
Sentence sem1update
 
Knowledge Representation and Reasoning.pptx
Knowledge Representation and Reasoning.pptxKnowledge Representation and Reasoning.pptx
Knowledge Representation and Reasoning.pptx
 
Sem3
Sem3Sem3
Sem3
 
Semantics Third
Semantics ThirdSemantics Third
Semantics Third
 
Lecture3
Lecture3Lecture3
Lecture3
 
Les articles en français
Les articles en françaisLes articles en français
Les articles en français
 
X02PredCalculus.ppt
X02PredCalculus.pptX02PredCalculus.ppt
X02PredCalculus.ppt
 
PRIMER DIA DE CLASE EA GROUP 2022.pptx
PRIMER DIA DE CLASE EA GROUP 2022.pptxPRIMER DIA DE CLASE EA GROUP 2022.pptx
PRIMER DIA DE CLASE EA GROUP 2022.pptx
 
first_order_logic.pdf
first_order_logic.pdffirst_order_logic.pdf
first_order_logic.pdf
 
First order logic.ppt
First order logic.pptFirst order logic.ppt
First order logic.ppt
 
Test Review
Test ReviewTest Review
Test Review
 

More from Hywel Evans

Sem9
Sem9Sem9
Sem8
Sem8Sem8
Sem7
Sem7Sem7
Sem6 up
Sem6 upSem6 up
Sem6 up
Hywel Evans
 
Sem2 oct42019
Sem2 oct42019Sem2 oct42019
Sem2 oct42019
Hywel Evans
 
Sem6 up
Sem6 upSem6 up
Sem6 up
Hywel Evans
 
Sem6
Sem6Sem6
Sem5
Sem5Sem5
Sem4
Sem4Sem4
Bare phrasestructure II
Bare phrasestructure IIBare phrasestructure II
Bare phrasestructure II
Hywel Evans
 
Bare phrase structure
Bare phrase structureBare phrase structure
Bare phrase structure
Hywel Evans
 
65 86 ling3
65 86 ling365 86 ling3
65 86 ling3
Hywel Evans
 
Phrase Structure Rules from 57
Phrase Structure Rules from 57Phrase Structure Rules from 57
Phrase Structure Rules from 57
Hywel Evans
 
Merge rec2
Merge rec2Merge rec2
Merge rec2
Hywel Evans
 
Ling2 gengram
Ling2 gengramLing2 gengram
Ling2 gengram
Hywel Evans
 
Eigo gaku5
Eigo gaku5Eigo gaku5
Eigo gaku5
Hywel Evans
 
Phon4 up
Phon4 upPhon4 up
Phon4 up
Hywel Evans
 
Phon4
Phon4Phon4
Phonetics (英語学概論)
Phonetics (英語学概論)Phonetics (英語学概論)
Phonetics (英語学概論)
Hywel Evans
 
Phonetics1
Phonetics1Phonetics1
Phonetics1
Hywel Evans
 

More from Hywel Evans (20)

Sem9
Sem9Sem9
Sem9
 
Sem8
Sem8Sem8
Sem8
 
Sem7
Sem7Sem7
Sem7
 
Sem6 up
Sem6 upSem6 up
Sem6 up
 
Sem2 oct42019
Sem2 oct42019Sem2 oct42019
Sem2 oct42019
 
Sem6 up
Sem6 upSem6 up
Sem6 up
 
Sem6
Sem6Sem6
Sem6
 
Sem5
Sem5Sem5
Sem5
 
Sem4
Sem4Sem4
Sem4
 
Bare phrasestructure II
Bare phrasestructure IIBare phrasestructure II
Bare phrasestructure II
 
Bare phrase structure
Bare phrase structureBare phrase structure
Bare phrase structure
 
65 86 ling3
65 86 ling365 86 ling3
65 86 ling3
 
Phrase Structure Rules from 57
Phrase Structure Rules from 57Phrase Structure Rules from 57
Phrase Structure Rules from 57
 
Merge rec2
Merge rec2Merge rec2
Merge rec2
 
Ling2 gengram
Ling2 gengramLing2 gengram
Ling2 gengram
 
Eigo gaku5
Eigo gaku5Eigo gaku5
Eigo gaku5
 
Phon4 up
Phon4 upPhon4 up
Phon4 up
 
Phon4
Phon4Phon4
Phon4
 
Phonetics (英語学概論)
Phonetics (英語学概論)Phonetics (英語学概論)
Phonetics (英語学概論)
 
Phonetics1
Phonetics1Phonetics1
Phonetics1
 

Recently uploaded

The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
DhatriParmar
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 

Recently uploaded (20)

The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 

Predicate calculus

  • 1. Propositional Logic • p  q • NO internal structure
  • 2. Predicate logic • Loves (j, m) • DOES have internal structure
  • 3. Japan is a country
  • 4. Japan is a country • Country (x) • x = japan • Country (japan)
  • 5. Easy so far? • Yes • But what is the point? • Good question
  • 6. It helps with computer programming
  • 7. We use it to input data
  • 9. Data • You can put in any information you want
  • 10. Peter fell over • Predicate? • Fell_over • How many arguments? • One – peter • Fell_over (peter)
  • 11. Jim donated $100 to the city hospital • Donated (x,…..n) • Donated (jim, $100, city_hospital) • Donated (x, y, z) • X = Jim • Y = $100 • Z= the city hospital
  • 12. Ben hates computers • Hate (ben, computers)
  • 13. Eri gave up • Gave_up (eri)
  • 14. Emi is a genius • Genius (emi)
  • 15. No limits as long as it’s organized • Visit (mary, familiymart, sat_15th_april,) • Computational Linguistics: • Verb • Subject • Complement
  • 16. Hit • Hit ( ) • Hit (x, ) • Hit (x, y) • X = bill • Y = ken • Bill hit Ken
  • 18. The Little Prince is wearing a brown scarf
  • 20. But the Little Prince is the only person in this world
  • 21. Everyone is wearing a brown scarf
  • 26. • Two sets • Set A • Set B
  • 27. • Set A = the set of Linguists • Linguist (x) • Set B = the set of crazy people • Crazy_person (x)
  • 28. Who is in these sets? • Linguist (x) • {evans, • imai, • ono}
  • 29. Computer database • Linguist (evans) • Linguist (imai) • Linguist (ono) • Set of linguists = • {evans, imai, ono}
  • 30. Who is in the set of crazy people? • Crazy_person (x) • {ken, • jim, • ben, • mary, • evans}
  • 31. Computer database • Crazy_person (evans) • Crazy_person (ken) • Crazy_person (jim) • Crazy_person (ben) • Crazy_person (mary)
  • 32. Linguist (x)  Crazy_person (x)
  • 33. All linguists are crazy • ∀x (Linguist (x)  Crazy_person (x)) • Is this true? • For all individuals x, if x is in the set of Linguists, x is also in the set of Crazy persons.
  • 34. • Set A = the set of Linguists • Linguist (x) • Set B = the set of crazy people • Crazy_person (x)
  • 35. Who is in these sets? • Linguist (x) • {evans, • imai, • ono}
  • 36. Who is in the set of crazy people? • Crazy_person (x) • {ken, • jim, • ben, • mary, • evans}
  • 37. All linguists are crazy • ∀x (Linguist (x)  Crazy_person (x)) • Is Untrue • Because two members of the set of linguists are not in the set of crazy people.
  • 38. Some linguists are crazy • Is this True?
  • 39. • Linguist (x) & Crazy_person (x)
  • 40. Some linguists are crazy • ∃x (Linguist (x) & Crazy_person (x)) • Backward E • Existential Quantifier • There is at least one individual x • x is a linguist • And x is crazy
  • 41. Who is in the set of crazy people? • Crazy_person (x) • {ken, • jim, • ben, • mary, • evans}
  • 42. Evans is in the set of crazy people • So this is true • ∃x (Linguist (x) & Crazy_person (x)) • Backward E • Existential Quantifier • There is at least one individual x • x is a linguist • And x is crazy
  • 43. Predicate • Mary is a girl • Girl • Girl (mary)
  • 44. Predicate • Mary lives in Tsuru • Lives_in_Tsuru (mary)
  • 45. Set of girls • Girl (mary) • Girl (eri) • Girl (rie) • Girl = {mary, eri, rie}
  • 46. Set of people who live in Tsuru • Live_in_tsuru (ben) • Live_in_tsuru (ken) • Live_in_tsuru (mary) • Live in Tsuru = {ben, ken, mary}
  • 47. A girl lives in Tsuru • ∃x • ( • Girl (x) • & Lives_in_tsuru (x) • ) • ∃x (Girl (x) & Lives_in_tsuru (x))
  • 48. Set of girls • Girl (mary) • Girl (eri) • Girl (rie) • Girl = {mary, eri, rie}
  • 49. Set of people who live in Tsuru • Live_in_tsuru (ben) • Live_in_tsuru (ken) • Live_in_tsuru (mary) • Live in Tsuru = {ben, ken, mary}
  • 50. • ∃x (Girl (x) & Lives_in_tsuru (x)) • Is True!
  • 51. A girl lives in Fujiyoshida • ∃x • ( • Girl (x) • & Lives_in_fujiyoshida (x) • ) • ∃x (Girl (x) & Lives_in_fujiyoshida (x))
  • 52. Set of girls • Girl (mary) • Girl (eri) • Girl (rie) • Girl = {mary, eri, rie}
  • 53. Set of people who live in Fujiyoshida • Live_in_tsuru (ben) • Live_in_tsuru (len) • Live_in_tsuru (stan) • Live in Tsuru = {ben, len, stan}
  • 54. • ∃x (Girl (x) & Lives_in_fujiyoshida (x)) • Is False!
  • 55. • But • ¬∃x (Girl (x) & Lives_in_fujiyoshida (x)) • Is true • ~∃x (Girl (x) & Lives_in_fujiyoshida (x)) • Is true • -∃x (Girl (x) & Lives_in_fujiyoshida (x)) • Is true
  • 56. Any problems with Predicate Logic? • Yes • We are not always trying to say things that are true
  • 57. The sky is blue
  • 58. We don’t say the sky is blue at night
  • 60. • We sometimes say things that are not true • “My brain exploded” • And do we really think in Logical Form? • ¬∃x (Girl (x) & Lives_in_fujiyoshida (x))
  • 61. • And if I say “A girl lives in Fujiyoshida” … • … is it really a statement about existence of an individual? • Or am I more concerned with number • Or the fact that we’re talking about a girl rather than a boy? • Or a girl rather than a woman? • Or something else related to CONTEXT?
  • 62. New ideas about how we understand meaning
  • 64. NOT all in the brain!
  • 65. Also strong evidence for IMAGES rather than CODE
  • 66. Strong evidence for ACTION simulation
  • 68. Many people say Logical Form cannot be real
  • 69. But Logic is VERY important in Linguistics! • The nurse kissed every child on his birthday. • [The nurse] kissed [every child] on his birthday. • Kissed (nurse, every_child)
  • 70. • ∀x (Child (x)  Kissed (nurse, x)) on x’s birthday • The nurse kissed every child on his birthday
  • 71. But Logic is VERY important in Linguistics
  • 72. And logic is the basis of computer science
  • 73. ∃ (existential) • M(jen,mary) • M = mother • Jen is Mary’s mother • ∃xM(x,y) • Someone is the mother of y
  • 75. • Likes (ben, emi) • Ben likes Emi • Likes (x, y) • x likes y
  • 76. X = boys, Y = girls • Likes (x, y) • x likes y • (let’s say x = boys and y = girls) • ∃y (Likes (x, y) • There is some girl that x likes
  • 77. • ∃y (Likes (x, y) • There is some girl that x likes • ∀x∃y (Likes (x, y) • Each boy likes a girl
  • 78. Each boy likes a girl Boys Girls
  • 79. ∀x∃y (Likes (x, y) Boys Girls
  • 80. There’s one girl all the boys like Boys Girls
  • 81. All the boys like one girl Boys Girls
  • 82. ∃y∀x (Likes (x, y) Boys Girls
  • 83. p → q • p = Jim is dead • q = Mary is sad • p → q = • If Jim is dead, Mary is sad
  • 84. p V q • p = My parrot is clever • q = Taro fell over • p V q = • (either) my parrot is clever or Taro fell over
  • 85. p → q • p = I study hard • q = I will pass the test • p → q = • If I study hard, I will pass the test
  • 86. ¬p → ¬q • P = I study hard • Q = I will pass the test • ¬p → ¬q = If I do not study hard, I will not pass the test • If NOT(I study hard) then NOT (I will pass the test)
  • 87. p → q • Normal everyday values for p and q • p = a bear has warm blood • q = a bear is a mammal
  • 88. ¬p → q • Normal everyday values for p and q • p = you study hard • q = you will fail • If you DON’T study hard, you will fail
  • 89. Modern Linguistics • Studying language helps us understand the human brain • Do you think the human brain works like computer code? • Do you think studying language tells us something about the brain?