The detailed description of how to write the input file <file_stem>.bg is described below. After having prepared the input files, M-ACL can be run, as described in the instruction on how to run M-ACL.
eminus([ancestor(b,a),ancestor(a,d),father(b,c),father(a,c)]).
parent(a,b).
parent(b,c).
parent(d,b).
male(a).
female(b).
ancestor(A,B):-parent(A,B).
/* Name: c122 GC: yes, LC: yes
Covered positive examples: [ancestor(b,c),ancestor(a,b)]
Covered positive abduced examples: []
Covered negative abduced examples: []
Abduced literals: [] */
ancestor(A,B):-parent(A,C),ancestor(C,B).
/* Name: c147 GC: yes, LC: yes
Covered positive examples: [ancestor(d,c)]
Covered positive abduced examples: []
Covered negative abduced examples: [ancestor(a,c)]
Abduced literals: [[not(ancestor(c,d)),c147],[not(ancestor(b,d)),c147],[not(ancestor(c,a)),c147]]
*/
father(A,B):-male(A),parent(A,B).
/* Name: c166 GC: yes, LC: yes
Covered positive examples: [father(a,b)]
Covered positive abduced examples: []
Covered negative abduced examples: []
Abduced literals: [] */
/* Backtracked clauses
c135: father(A,B):-male(A),ancestor(A,B).
*/
The last part of the output file records the clauses that have been
retracted because they generated a global inconsistency.
For the other examples, see the output files grandfather.rules
and odd_even.rules.
Back to the |
|
|
|
Go to the |
Go to the |