CIS730-Lecture-14-20070924 - PowerPoint PPT Presentation

1 / 24
About This Presentation
Title:

CIS730-Lecture-14-20070924

Description:

Find example and think about KE process for your project domain ... I'll Notify Spock's Eminent Underground Dissidents On Romulus ... – PowerPoint PPT presentation

Number of Views:20
Avg rating:3.0/5.0
Slides: 25
Provided by: kddres
Category:

less

Transcript and Presenter's Notes

Title: CIS730-Lecture-14-20070924


1
Lecture 14 of 42
First-Order Logic Unification,
Inference Discussion PS3, Constraint Logic
Monday, 24 September 2007 William H.
Hsu Department of Computing and Information
Sciences, KSU KSOL course page
http//snipurl.com/v9v3 Course web site
http//www.kddresearch.org/Courses/Fall-2007/CIS73
0 Instructor home page http//www.cis.ksu.edu/bh
su Reading for Next Class Section 9.2 9.4, p.
275 295, Russell Norvig 2nd edition
2
Lecture Outline
  • Reading for Next Class Section 9.2 9.4, RN 2e
  • Recommended Nilsson and Genesereth (Chapter 5
    online)
  • Today
  • Generalized Modus Ponens
  • Unification
  • Constraint logic
  • Wednesday
  • Resolution theorem proving
  • Prolog as related to resolution
  • MP4 5 preparations
  • Friday
  • Logic programming in real life
  • Industrial-strength Prolog
  • Lead-in to MP4
  • Week of 01 Oct 2007 KR and Ontologies

3
Logical AgentsReview
Adapted from slides by S. Russell, UC Berkeley
4
Example ProofReview
  • Apply Sequent Rules to Generate New Assertions
  • Modus Ponens And Introduction
    Universal Elimination

Adapted from slides by S. Russell, UC Berkeley
5
Knowledge Engineering
  • KE Process of
  • Choosing logical language (basis of KR)
  • Building KB
  • Implementing proof theory
  • Inferring new facts
  • Analogy Programming Languages / Software
    Engineering
  • Choosing programming language (basis of software
    engineering)
  • Writing program
  • Choosing / writing compiler
  • Running program
  • Example Domains
  • Electronic circuits (Section 8.3 RN)
  • Exercise
  • Look up, read about protocol analysis
  • Find example and think about KE process for your
    project domain

6
UnificationDefinitions and Idea Sketch
Adapted from slides by S. Russell, UC Berkeley
7
Generalized Modus Ponens
Adapted from slides by S. Russell, UC Berkeley
8
Soundness of GMP
Adapted from slides by S. Russell, UC Berkeley
9
Forward Chaining
Adapted from slides by S. Russell, UC Berkeley
10
ExampleForward Chaining
Adapted from slides by S. Russell, UC Berkeley
11
Backward Chaining
Adapted from slides by S. Russell, UC Berkeley
12
ExampleBackward Chaining
Adapted from slides by S. Russell, UC Berkeley
13
Backward Chaining
  • Question How Does This Relate to Proof by
    Refutation?
  • Answer
  • Suppose Query, For The Sake Of Contradiction
    (FTSOC)
  • Attempt to prove that KB ? Query ? ?

14
Resolution Inference Rule
Adapted from slides by S. Russell, UC Berkeley
15
Conjunctive Normal (aka Clausal) FormConversion
(Nilsson) and Mnemonic
  • Implications Out
  • Negations Out
  • Standardize Variables Apart
  • Existentials Out (Skolemize)
  • Universals Made Implicit
  • Distribute And Over Or (i.e., Disjunctions In)
  • Operators Out
  • Rename Variables
  • A Memonic for Star Trek The Next Generation Fans
  • Captain Picard
  • Ill Notify Spocks Eminent Underground
    Dissidents On Romulus
  • Ill Notify Sareks Eminent Underground
    Descendant On Romulus

Adapted from slides by S. Russell, UC Berkeley
16
Skolemization
Adapted from slides by S. Russell, UC Berkeley
17
Resolution Theorem Proving
Adapted from slides by S. Russell, UC Berkeley
18
ExampleResolution Proof
Adapted from slides by S. Russell, UC Berkeley
19
Offline ExerciseRead-and-Explain Pairs
  • For Class Participation (PS5)
  • With Your Assigned Partner(s)
  • Read Chapter 10 RN
  • By 13 Oct 2007

20
Logic Programming vs. Imperative Programming
Adapted from slides by S. Russell, UC Berkeley
21
A Look AheadLogic Programming as Horn Clause
Resolution
Adapted from slides by S. Russell, UC Berkeley
22
A Look AheadLogic Programming (Prolog) Examples
Adapted from slides by S. Russell, UC Berkeley
23
Summary Points
  • From Propositional to First-Order Proofs
  • Generalized Modus Ponens
  • Resolution
  • Unification Problem
  • Roles in Computer Science
  • Type inference
  • Theorem proving
  • What do these have to do with each other?
  • Search Patterns
  • Forward chaining
  • Backward chaining
  • Fan-in, fan-out

24
Terminology
  • From Propositional to First-Order Proofs
  • Generalized Modus Ponens
  • Resolution
  • Unification Problem
  • Most General Unifier (MGU)
  • Roles in Computer Science
  • Type inference
  • Theorem proving
  • What do these have to do with each other?
  • Search Patterns
  • Forward chaining
  • Backward chaining
  • Fan-in, fan-out
Write a Comment
User Comments (0)
About PowerShow.com