Signature of the logic program:
Σ
0= IN ∪ { monika, karin, renate, susanne, aline, werner, klaus, gerd, peter, dominique}
Σ
3= { date }
∆
1= { female, male, human }
∆
2= { married, motherOf , fatherOf , parent, ancestor, born }
9
Formulas corresponding to the logic program:
female(monika) male(werner) married(werner,monika) motherOf(monika,karin) female(karin) male(klaus) married(gerd,renate motherOf(monika,klaus) female(renate) male(gerd) married(klaus,susanne) motherOf(renate,susanne)
female(susanne) male(peter) motherOf(renate,peter)
female(aline) male(dominique) motherOf(susanne,aline)
motherOf(susanne,dominique)
∀ X human( X )
∀F, W, C married(F, W ) ∧ motherOf (W, C ) → fatherOf (F, C )
∀ X, Y motherOf ( X, Y ) → parent( X, Y )
∀ X, Y fatherOf ( X, Y ) → parent( X, Y )
∀V, X parent(V, X ) → ancestor(V, X )
∀V, Y, X parent(V, Y ) ∧ ancestor(Y, X ) → ancestor(V, X )
10