Logic-Based Systems AI Lecture Prof. Carolina Ruiz Worcester - - PowerPoint PPT Presentation

logic based systems
SMART_READER_LITE
LIVE PREVIEW

Logic-Based Systems AI Lecture Prof. Carolina Ruiz Worcester - - PowerPoint PPT Presentation

Logic-Based Systems AI Lecture Prof. Carolina Ruiz Worcester Polytechnic Institute Using Theorem Provers AS ASSISTANTS AS REASONING SYSTEMS tool for mathemathicians Proof-Checkers: to implement independent agents that


slide-1
SLIDE 1

Logic-Based Systems

AI Lecture

  • Prof. Carolina Ruiz

Worcester Polytechnic Institute

slide-2
SLIDE 2

AI Lecture - Prof. Carolina Ruiz 2

Using Theorem Provers

AS REASONING SYSTEMS

– to implement independent agents that make decisions and act

  • n their own.

AS ASSISTANTS tool for mathemathicians

  • Proof-Checkers:

– mathematician provides a sketch of the proof and TP checks it and fills in the details.

  • Socratic Reasoners:

– (e.g. ONTIC). Mathematician and TP construct proof together.

slide-3
SLIDE 3

AI Lecture - Prof. Carolina Ruiz 3

Practical uses of Theorem Provers (TPs)

SAM

Semi-automated math. Guard et al, 1969

Lattice theory

AURA

Wos & Winker, 1983

Open questions in several areas of mathematics

BOYER & MOORE

Boyer & Moore, 1979 Produced 1st fully computerized proof

  • f Godel’s

incompleteness thm

OTTER

Organized techniques for theorem proving McCure 1992 Open questions in combinatorical logic

slide-4
SLIDE 4

AI Lecture - Prof. Carolina Ruiz 4

CS/ECE: Verification of Systems

  • SOFTWARE

procedure swap(x,y) var t; {Pre: x = C1, y = C2} t := x; x:= y; y:= t {Post: x = C2, y = C1}

  • HARDWARE

x y w z w = ( x OR y) and ~z

slide-5
SLIDE 5

AI Lecture - Prof. Carolina Ruiz 5

CS/ECE: Verification of Systems

  • SOFTWARE

– Boyer & Moore:

  • verified the RSA

public key encryption algorithm

  • verified the Boyer

& Moore string matching algorithm

  • HARDWARE

– Aura:

  • Verifies design of a

10-bit adder – MRS:

  • performs diagnosis
  • f computer

systems

slide-6
SLIDE 6

AI Lecture - Prof. Carolina Ruiz 6

CS/ECE: Synthesis of Systems

  • SOFTWARE

procedure swap(x,y) {Pre: x = C1, y = C2} ? {Post: x = C2, y = C1}

Prove that there exists a program satisfying the specification. If the proof is constructed, a program can be extracted.

  • HARDWARE

x

?

y w z w = ( x OR y) and ~z AURA: used to design circuits more compact than before

slide-7
SLIDE 7

AI Lecture - Prof. Carolina Ruiz 7

Inside a Logic-based System

Knowledge Representation First order logic Problem Solving Strategy Refutation using resolution

slide-8
SLIDE 8

AI Lecture - Prof. Carolina Ruiz 8

Knowledge representation

1st order logic

  • Everybody who can read is literate

– x, r(x) -> l(x)

  • Dolphins are not literate

– x, d(x) -> !l(x)

  • Some dolphins are intelligent

– Э x, [d(x) & i(x) ]

  • Some who are intelligent cannot read

– Э x, [i(x) & !r(x)]

A A

slide-9
SLIDE 9

AI Lecture - Prof. Carolina Ruiz 9

Problem Solving

Problem Statement

  • A1: Everybody who can read is literate

– x, r(x) -> l(x)

  • A2: Dolphins are not literate

– x, d(x) -> !l(x)

  • A3: Some dolphins are intelligent

– Э x, [d(x) & i(x) ]

  • Conclusion: Some who are intelligent cannot read

– Э x, [i(x) & !r(x)] A A

slide-10
SLIDE 10

AI Lecture - Prof. Carolina Ruiz 10

Problem Solving

Proof by Refutation

  • A1: Everybody who can read is literate

– x, r(x) -> l(x)

  • A2: Dolphins are not literate

– x, d(x) -> !l(x)

  • A3: Some dolphins are intelligent

– Э x, [d(x) & i(x) ]

  • ! Conclusion: it is not the case that some who are

intelligent cannot read

– !Э x, [i(x) & !r(x)] = x, [!i(x) || !!r(x)] = x, [!i(x) || r(x)] A A A A

slide-11
SLIDE 11

AI Lecture - Prof. Carolina Ruiz 11

Problem Solving

Proof by Refutation using Resolution translating formulas into clausal form

  • A1:

x, r(x) -> l(x)

  • A2:

x, d(x) -> !l(x)

  • A3: Э x, [d(x) & i(x)]
  • !C:

x, [!i(x) || r(x)]

A A A

  • A1:

x, !r(x) || l(x)

  • A2:

x, !d(x) || !l(x)

  • A3: Э x, [d(x) & i(x)]
  • !C:

x, [!i(x) || r(x)]

A A A

slide-12
SLIDE 12

AI Lecture - Prof. Carolina Ruiz 12

Problem Solving

Proof by Refutation using Resolution translating formulas into clausal form – done!

  • A1:

!r(x) || l(x)

  • A2:

!d(x) || !l(x)

  • A3.1: d(a)
  • A3.2: i(a)
  • !C:

!i(x) || r(x)

  • A1:

x, !r(x) || l(x)

  • A2:

x, !d(x) || !l(x)

  • A3: Э x, [d(x) & i(x) ]
  • !C:

x, [!i(x) || r(x)]

A A A

slide-13
SLIDE 13

AI Lecture - Prof. Carolina Ruiz 13

Problem Solving

Resolution

  • A1:

!r(x) || l(x)

  • A2:

!d(x) || !l(x)

  • A3.1: d(a)
  • A3.2: i(a)
  • !C:

!i(x) || r(x)

  • A1:

!r(x) || l(x)

  • A2:

!d(x) || !l(x)

  • A4:

!r(x) || !d(x)

  • A3.1: d(a)
  • A5:

!r(a)

  • !C:

!i(x) || r(x)

  • A6:

!i(a)

  • A3.2: i(a)
  • A7:
  • Hence C is a logical

consequence of A1,A2,A3 Contradiction!!! ☺