{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ai-lect8

# ai-lect8 - Last time Logic and Reasoning Knowledge Base(KB...

This preview shows pages 1–10. Sign up to view the full content.

1 Last time: Logic and Reasoning Knowledge Base (KB): contains a set of sentences  expressed using a  knowledge representation language TELL: operator to add a sentence to the KB ASK: to query the KB  Logics are KRLs where conclusions can be drawn Syntax Semantics Entailment: KB |= a iff a is true in all worlds where KB is true Inference: KB |– i   a  = sentence a can be derived from KB using procedure  i Sound: whenever KB |– i   a then KB |= a is true Complete: whenever KB |= a then KB |– i

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
2 Last Time: Syntax of propositional logic
3 Last Time: Semantics of Propositional logic

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
4 Last Time: Inference rules for propositional logic
5 This time First-order logic Syntax Semantics Wumpus world example

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
6 Why first-order logic? We saw that propositional logic is limited because it only makes the  ontological commitment that the world consists of  facts . Difficult to represent even simple worlds like the Wumpus world; e.g.,  “don’t go forward if the Wumpus is in front of you” takes 64 rules
7 First-order logic (FOL) Ontological commitments: Objects :  wheel, door, body, engine, seat, car, passenger, driver Relations :  Inside(car, passenger), Beside(driver, passenger) Functions :  ColorOf(car) Properties :  Color(car), IsOpen(door), IsOn(engine) Functions are relations with single value for each object

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
8 Examples: “One plus two equals three” Objects: Relations: Properties: Functions: “Squares neighboring the Wumpus are smelly” Objects: Relations: Properties: Functions:
9 Examples: “One plus two equals three” Objects: one, two, three, one plus two Relations: equals Properties: --

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern