herbrand 2
This commit is contained in:
parent
4a9782c9c1
commit
593da2abb5
@ -52,7 +52,11 @@ computeHerbrand db =
|
||||
if changed then Just newFacts else Nothing where
|
||||
(newFacts, changed) = foldr amalgamateRelation (facts, False) allRelationNames
|
||||
amalgamateRelation :: Text -> NewFacts -> NewFacts
|
||||
amalgamateRelation relationName newFacts = newFacts
|
||||
amalgamateRelation relationName newFacts =
|
||||
maybe newFacts (amalgamateRelationSub newFacts) $ lookupRelation db relationName
|
||||
amalgamateRelationSub :: NewFacts -> Relation -> NewFacts
|
||||
amalgamateRelationSub newFacts relation =
|
||||
newFacts
|
||||
computeHerbrandSub :: Map Text Relation -> Map Text Relation
|
||||
computeHerbrandSub facts =
|
||||
maybe facts computeHerbrandSub (updateFacts facts)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user