Probabilistic logic programming is increasingly important in artificial intelligence and related fields as a formalism to reason about uncertainty. It generalises logic programming with the possibility of annotating clauses with probabilities. This paper proposes a coalgebraic semantics on probabilistic logic programming. Programs are modelled as coalgebras for a certain functor F, and two semantics are given in terms of cofree coalgebras. First, the F-coalgebra yields a semantics in terms of derivation trees. Second, by embedding F into another type G, as cofree G-coalgebra we obtain a `possible worlds' interpretation of programs, from which one may recover the usual distribution semantics of probabilistic logic programming. Furthermore, we show that a similar approach can be used to provide a coalgebraic semantics to weighted logic programming.
翻译:概率逻辑编程在人工智能及相关领域越来越重要,作为解释不确定性的一种形式主义。它概括了逻辑编程,并有可能用概率说明条款。本文提议了概率逻辑编程的结合数语义。编程仿照了某种杀虫F的联数语义,用无联联数语义提供了两种语义。首先,F-coalgebra在引申树方面产生了一种语义。其次,将F嵌入另一类G,作为我们获得的“可自由G-coalgebra”对程序的一种“可能的世界”解释,从中可以恢复典型的概率逻辑编程的分布语义。此外,我们表明,可以使用类似的方法为加权逻辑编程提供一种联数语义。