Closed irina-dragoste closed 3 years ago
For a knowledge base with facts
B1_(a, b, c, d, provb1) . B2_(a, a, c, provb2) . H1_(a, n1_2_0, n1_2_0, n1_3_0, provH1) . H2_(n1_3_0, n1_5_0, provH2) . H3_(b, provH3) . H4_(n1_2_0, provH4) . inst(a, b, c, d, i, rule0) .
and rule prec(?b1, ?i), prec(?b2, ?i), conc(?i, ?h1), conc(?i, ?h2), conc(?i, ?h3), conc(?i, ?h4) :- B1_(?x1, ?x2, ?y1, ?y2, ?b1), B2_(?x1, ?x1, ?y1, ?b2), H1_(?x1, ?z1, ?z1, ?z2, ?h1), H2_(?z2, ?z3, ?h2), H3_(?x2, ?h3), H4_(?z1, ?h4), inst(?x1, ?x2, ?y1, ?y2, ?i, rule0) .
prec(?b1, ?i), prec(?b2, ?i), conc(?i, ?h1), conc(?i, ?h2), conc(?i, ?h3), conc(?i, ?h4) :- B1_(?x1, ?x2, ?y1, ?y2, ?b1), B2_(?x1, ?x1, ?y1, ?b2), H1_(?x1, ?z1, ?z1, ?z2, ?h1), H2_(?z2, ?z3, ?h2), H3_(?x2, ?h3), H4_(?z1, ?h4), inst(?x1, ?x2, ?y1, ?y2, ?i, rule0) .
the derivation is incorrect:
conc(i, n1_3_0) . conc(i, provH2) . conc(i, provH3) . conc(i, provH4) . prec(provb1, i) . prec(provb2, i) .
where conc(i, n1_3_0) . should actually be conc(i, provH1) . (please correct me if I am wrong)
conc(i, n1_3_0) .
conc(i, provH1) .
For a knowledge base with facts
and rule
prec(?b1, ?i), prec(?b2, ?i), conc(?i, ?h1), conc(?i, ?h2), conc(?i, ?h3), conc(?i, ?h4) :- B1_(?x1, ?x2, ?y1, ?y2, ?b1), B2_(?x1, ?x1, ?y1, ?b2), H1_(?x1, ?z1, ?z1, ?z2, ?h1), H2_(?z2, ?z3, ?h2), H3_(?x2, ?h3), H4_(?z1, ?h4), inst(?x1, ?x2, ?y1, ?y2, ?i, rule0) .
the derivation is incorrect:
where
conc(i, n1_3_0) .
should actually beconc(i, provH1) .
(please correct me if I am wrong)