CMU-CS-12-126
Computer Science Department
School of Computer Science, Carnegie Mellon University



CMU-CS-12-126

Modeling Datalog Assertion and Retraction
in Linear Logic

Edmund S. L. Lam*, Iliano Cervesato*

June 2012

CMU-CS-12-126.pdf

Also appears as Qatar Campus Technical Report
CMU-CS-QTR-113


Keywords: Datalog, Linear Logic, Retraction, Assertion, Dynamic updates

Practical algorithms have been proposed to efficiently recompute the logical consequences of a Datalog program after a new fact has been asserted or retracted. This is essential in a dynamic setting where facts are frequently added and removed. Yet while assertion is logically well understood as incremental inference, the monotonic nature of first-order logic is ill-suited to model retraction. As such, the traditional logical interpretation of Datalog offers at most an abstract specification of Datalog systems, but has tenuous relations to the algorithms that perform efficient assertions and retractions in practical implementations. This report proposes a logical interpretation of Datalog based on linear logic. It not only captures the meaning of Datalog updates, but also provides an operational model that underlies the dynamic changes of the set of inferable facts, all within the confines of logic. We prove the correctness of this interpretation with respect to its traditional counterpart.

29 pages


*Carnegie Mellon University, Qatar


Return to: SCS Technical Report Collection
School of Computer Science

This page maintained by reports@cs.cmu.edu