Damiano Azzolini 
Fabrizio Riguzzi 
Evelina Lamma 
AbstractThe aim of Probabilistic Logic Programming is to extend the expressiveness of Logic Programming by adding the possibility to manage uncertainty over the data with the introduction of probabilistic facts representing discrete random variables. Some years ago, to manage also continuous random variables, hybrid programs were proposed, but the semantics was imprecise. In this paper, we present a formal definition of a semantics that assigns a probability value to all queries for programs with a twovalued WellFounded model. This paper is a summary of ([1]) . ContributionProbabilistic Logic Programs (PLPs) usually support only discrete probabilistic facts (i.e., facts that can be true or false with a certain probability) representing Bernoulli random variables. However, many models of real world tasks also require managing continuous values. Hybrid Probabilistic Logic Programs ([1,6]) extend traditional PLPs with the introduction of continuous random variables (rvs). The resulting probability space, defined as the product of the probability spaces of discrete and continuous rvs, is usually infinite. Furthermore, even in programs with only discrete probabilistic facts, the number of variables may be infinite (for example, when there is at least one function symbol and one constant). When function symbols, continuous random variables, and constraints are combined, the definition of a welldefined semantics is crucial to assign a probability value to queries. We consider the probability space induced by the program as the product of the spaces of discrete and continuous random variables. Then, for every sample taken from the sample space for the whole program, a ground normal program is defined, called a world. If each world has a twovalued WellFounded model, we call the probabilistic program sound. We prove that every sound program is welldefined (each query has an assigned probability). If the program fails to have all worlds with a twovalued WellFounded model, other semantics must be used ([2]). During the years, several semantics for programs with both discrete and continuous random variables have been proposed, none of them managing function symbols. Hybrid ProbLog ([3]) was one of the first languages that allowed the definition of a finite set of continuous probabilistic facts. Similarly, continuous distributions are supported by Distributional Clauses (DC) ([4]) but negation in the body of rules is not allowed: this limitation is no more present in HALProbLog ([8]), one of its extension. The same happens with Extended PRISM ([5]). Finally, the semantics of Probabilistic Constraint Logic Programs ([7]) constrain the sample space of the whole program to be countable, a situation that may be violated when there is at least one constant and a function symbol, as explained before.
For example, consider a game where a player needs to pick a card from a deck and spin a wheel.
The card can be either blue or red and it is reinserted in the deck after every round.
The game continues until the player does not pick a red card and the axis of the wheel is between 0 and $\pi$.
In this simple example, there are both discrete (color of card) and continuous (position of the axis of the wheel) random variables.
We may be interested in computing the probability that the player draws at least one time, or that he/she never draws a red card: to compute the probability of these two queries, we need to consider an infinite number of trials.
The following program models the aforementioned scenario:
References

http://dx.doi.org/10.4204/EPTCS.345.37  bibtex  
Comments and questions to: eptcs@eptcs.org 
For website issues: webmaster@eptcs.org 