telingo = ASP + Time

We describe telingo, an extension of the ASP system clingo with temporal operators over finite linear time and provide insights into its implementation. telingo takes temporal logic programs as input whose rules contain only future and present operators in their heads and past and present operators in their bodies. Moreover, telingo extends the grammar of clingo’s input language with a variety of temporal operators that can even be used to represent nested temporal formulas. By using clingo’s interface for manipulating the abstract syntax tree of non-ground programs, temporal logic programs are transformed into regular ones before grounding. The resulting regular logic program is then solved incrementally by using clingo’s multi-shot interface. Notably, this involves the consecutive unfolding of future temporal operators that is accomplished via external atoms. Finally, we provide an empirical evaluation contrasting standard incremental ASP programs with their temporal counterparts in telingo’s input language.

[1]  Fred Kröger,et al.  Temporal Logic of Programs , 1987, EATCS Monographs on Theoretical Computer Science.

[2]  Danny De Schreye,et al.  Answer Set Planning , 1999 .

[3]  Martin Gebser,et al.  Theory Solving Made Easy with Clingo 5 , 2016, ICLP.

[4]  Pedro Cabalar,et al.  Temporal Equilibrium Logic: A First Approach , 2007, EUROCAST.

[5]  Martin Gebser,et al.  plasp 3: Towards Effective ASP Planning , 2017, LPNMR.

[6]  Martin Gebser,et al.  Advances in gringo Series 3 , 2011, LPNMR.

[7]  Wolfgang Faber,et al.  Logic Programming and Nonmonotonic Reasoning , 2011, Lecture Notes in Computer Science.

[8]  Pedro Cabalar,et al.  STeLP - A Tool for Temporal Answer Set Programming , 2011, LPNMR.

[9]  Torsten Schaub,et al.  Temporal Answer Set Programming on Finite Traces , 2018, Theory and Practice of Logic Programming.

[10]  Johan Anthory Willem Kamp,et al.  Tense logic and the theory of linear order , 1968 .

[11]  Pedro Cabalar,et al.  Temporal equilibrium logic: a survey , 2013, J. Appl. Non Class. Logics.

[12]  Martin Gebser,et al.  Multi-shot ASP solving with clingo , 2017, Theory and Practice of Logic Programming.

[13]  Laura Giordano,et al.  Reasoning about actions with Temporal Answer Sets , 2011, Theory and Practice of Logic Programming.

[14]  Tomi Janhunen,et al.  Modular Equivalence for Normal Logic Programs , 2006, ECAI.

[15]  Torsten Schaub,et al.  A Tutorial on Hybrid Answer Set Solving with clingo , 2017, RW.

[16]  Torsten Schaub,et al.  Introducing Temporal Stable Models for Linear Dynamic Logic , 2018, KR.

[17]  Giuseppe De Giacomo,et al.  Linear Temporal Logic and Linear Dynamic Logic on Finite Traces , 2013, IJCAI.