CS 730/730W/830: Intro AI What is KR? Prop. Logic Reasoning 2 - - PowerPoint PPT Presentation

cs 730 730w 830 intro ai
SMART_READER_LITE
LIVE PREVIEW

CS 730/730W/830: Intro AI What is KR? Prop. Logic Reasoning 2 - - PowerPoint PPT Presentation

CS 730/730W/830: Intro AI What is KR? Prop. Logic Reasoning 2 handouts: slides, assignment 2 730W entries were due Wheeler Ruml (UNH) Lecture 7, CS 730 1 / 15 What is KR? What is KR? History of Logic Advice Taker The PSSH


slide-1
SLIDE 1

CS 730/730W/830: Intro AI

What is KR?

  • Prop. Logic

Reasoning

Wheeler Ruml (UNH) Lecture 7, CS 730 – 1 / 15

2 handouts: slides, assignment 2 730W entries were due

slide-2
SLIDE 2

Introduction to Knowledge Representation and Reasoning

What is KR? ■ What is KR? ■ History of Logic ■ Advice Taker ■ The PSSH

  • Prop. Logic

Reasoning

Wheeler Ruml (UNH) Lecture 7, CS 730 – 2 / 15

slide-3
SLIDE 3

What is Knowledge Representation?

What is KR? ■ What is KR? ■ History of Logic ■ Advice Taker ■ The PSSH

  • Prop. Logic

Reasoning

Wheeler Ruml (UNH) Lecture 7, CS 730 – 3 / 15

Representing facts

Reasoning with facts Can computers be meaningful?

slide-4
SLIDE 4

History of Logic

What is KR? ■ What is KR? ■ History of Logic ■ Advice Taker ■ The PSSH

  • Prop. Logic

Reasoning

Wheeler Ruml (UNH) Lecture 7, CS 730 – 4 / 15

Philo of Megara (5C BC): truth tables Aristotle (322BC): tautologies of proper arguments Leibniz (1646-1716): inference as math-like logic (but bogus system) George Boole (1854): The Laws of Thought (almost propositional logic) Gottlob Frege (1879): Conceptual Notation (propositional and first-order logic) Dartmouth Conference (1956): modern AI movement CYCorp (1984- , www.cyc.com): slightly more complicated than first-order logic

slide-5
SLIDE 5

The Advice Taker (1958)

What is KR? ■ What is KR? ■ History of Logic ■ Advice Taker ■ The PSSH

  • Prop. Logic

Reasoning

Wheeler Ruml (UNH) Lecture 7, CS 730 – 5 / 15

John McCarthy: “AI”, Lisp, time-sharing

slide-6
SLIDE 6

Empirical Philosophy = Science

What is KR? ■ What is KR? ■ History of Logic ■ Advice Taker ■ The PSSH

  • Prop. Logic

Reasoning

Wheeler Ruml (UNH) Lecture 7, CS 730 – 6 / 15

The Physical Symbol System Hypothesis: A physical symbol system has the necessary and sufficient means for general intelligent action. (Newell and Simon) where a Symbol is a designating pattern that can be combined with

  • thers to form another designating pattern

and Designation means standing in for something in the world

slide-7
SLIDE 7

Propositional Logic

What is KR?

  • Prop. Logic

■ Prop. Logic ■ Logic ■ An Example ■ Break Reasoning

Wheeler Ruml (UNH) Lecture 7, CS 730 – 7 / 15

slide-8
SLIDE 8

Propositional Logic

What is KR?

  • Prop. Logic

■ Prop. Logic ■ Logic ■ An Example ■ Break Reasoning

Wheeler Ruml (UNH) Lecture 7, CS 730 – 8 / 15

it − is − raining i − am − wet it − is − raining → i − am − wet x y x ∧ y T T T T F F F T F F F F x y x → y T T T T F F F T T F F T x x → y modus y ponens ∧, ∨, ¬, → (⊃, ⇒), ↔

slide-9
SLIDE 9

Logic

What is KR?

  • Prop. Logic

■ Prop. Logic ■ Logic ■ An Example ■ Break Reasoning

Wheeler Ruml (UNH) Lecture 7, CS 730 – 9 / 15

A logic is a formal system:

syntax: defines sentences

semantics: relation to world

inference rules: reaching new conclusions three layers: proof, models, reality flexible, general, principled

slide-10
SLIDE 10

Encode in Propositional Logic

What is KR?

  • Prop. Logic

■ Prop. Logic ■ Logic ■ An Example ■ Break Reasoning

Wheeler Ruml (UNH) Lecture 7, CS 730 – 10 / 15

If the unicorn is mythical, then it is immortal, but if it is not mythical, then it is a mortal mammal. If the unicorn is either immortal or a mammal, then it is horned. The unicorn is magical if it is horned.

slide-11
SLIDE 11

Break

What is KR?

  • Prop. Logic

■ Prop. Logic ■ Logic ■ An Example ■ Break Reasoning

Wheeler Ruml (UNH) Lecture 7, CS 730 – 11 / 15

asst 1:

asst 2: first-order logic

  • ffice hours

third exam: 10:30-11:50 May 11, N133

slide-12
SLIDE 12

Reasoning

What is KR?

  • Prop. Logic

Reasoning ■ CNF ■ Reasoning ■ EOLQs

Wheeler Ruml (UNH) Lecture 7, CS 730 – 12 / 15

slide-13
SLIDE 13

Conversion to Conjunctive Normal Form

What is KR?

  • Prop. Logic

Reasoning ■ CNF ■ Reasoning ■ EOLQs

Wheeler Ruml (UNH) Lecture 7, CS 730 – 13 / 15

Syntax: ∧, ∨, ¬, → (⊃, ⇒), ↔ 1. eliminate ↔ 2. eliminate → 3. move ¬ inward: ¬¬x, ¬(x ∧ y), , ¬(x ∨ y) 4. distribute ∨: x ∨ (y ∧ z)

slide-14
SLIDE 14

Propositional Reasoning

What is KR?

  • Prop. Logic

Reasoning ■ CNF ■ Reasoning ■ EOLQs

Wheeler Ruml (UNH) Lecture 7, CS 730 – 14 / 15

modes ponens resolution (do unicorn proof)

slide-15
SLIDE 15

EOLQs

What is KR?

  • Prop. Logic

Reasoning ■ CNF ■ Reasoning ■ EOLQs

Wheeler Ruml (UNH) Lecture 7, CS 730 – 15 / 15

Please write down the most pressing question you have about the course material covered so far and put it in the box on your way out. Thanks!