Advertisement
logicmoo

Untitled

Oct 24th, 2015
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Prolog 0.26 KB | None | 0 0
  1. baseKB: [debug]  ?- KB=kb1,   I=(( (p(Y) =>  q(Z))  =>   (p(X) =>  q(X)))), nnf(KB,I,NNF), cnf(KB,NNF,CNF).
  2. KB = kb1,
  3. I = =>(=>(p(Y), q(Z)), =>(p(X), q(X))),
  4. NNF = p(Y)&not(q(Z))v (not(p(X))v q(X)),
  5. CNF =  (p(Y)v (not(p(X))v q(X)))& (not(q(Z))v (not(p(X))v q(X))).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement