pushed the problem of Herbrand construction down 1 layer
This commit is contained in:
parent
ae2f4d7552
commit
97c9e2d34b
@ -57,6 +57,9 @@ computeHerbrand db =
|
||||
maybe newFacts (amalgamateRelationSub newFacts) $ lookupRelation db relationName
|
||||
amalgamateRelationSub :: NewFacts -> Relation -> NewFacts
|
||||
amalgamateRelationSub newFacts relation =
|
||||
foldr amalgamateRule newFacts (_rules relation) where
|
||||
amalgamateRule :: RelationRule -> NewFacts -> NewFacts
|
||||
amalgamateRule rule newFacts =
|
||||
newFacts
|
||||
computeHerbrandSub :: Map Text Relation -> Map Text Relation
|
||||
computeHerbrandSub facts =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user