hw4-soln - CISC 404/604 Homework 4 Solutions 1a. To show z...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CISC 404/604 Homework 4 Solutions 1a. To show z xP ( x,z,f ( x,z )) ⇒ ∃ z x yP ( x,z,y ) is valid using resolution. .. Negate: ¬ ( z xP ( x,z,f ( x,z )) ⇒ ∃ z x yP ( x,z,y )) Convert to prenex: z 1 z 2 x 2 y x 1 ¬ ( P ( x 1 ,z 1 ,f ( x 1 ,z 1 )) P ( x 2 ,z 2 ,y )) Skolemize: z 2 y x 1 ¬ ( P ( x 1 ,a,f ( x 1 ,a )) P ( g ( z 2 ) ,z 2 ,y )) Drop quantifiers: ¬ ( P ( x 1 ,a,f ( x 1 ,a )) P ( g ( z 2 ) ,z 2 ,y )) Convert to CNF: { [ P ( x,a,f ( x,a ))] , [ ¬ P ( g ( z ) ,z,y )] } Resolution/Unification: L = { [ P ( x,a,f ( x,a ))] , [ ¬ P ( g ( z ) ,z,y )] } sub = [ x | g ( z )] L sub = { [ P ( g ( z ) ,a,f ( g ( a ) ,a ))] , [ ¬ P ( g ( z ) ,z,y )] } sub = [ x | g ( z )] , [ z | a ] L sub = { [ P ( g ( a ) ,a,f ( g ( a ) ,a ))] , [ ¬ P ( g ( a ) ,a,y )] } sub = [ x | g ( z )] , [ z | a ] , [ y | f ( g ( a ) ,a )] L sub = { [ P ( g ( a ) ,a,f ( g ( a ) ,a ))] , [ ¬ P ( g ( a ) ,a,f ( g ( a ) ,a ))] } [ ] (by resolution)
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 12/07/2011.

Page1 / 2

hw4-soln - CISC 404/604 Homework 4 Solutions 1a. To show z...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online