paper

Optimal Convergence of Iterative Methods for Datalogo

arXiv:2610.04062

Abstract

has been introduced as an extension to Datalog that increases expressiveness, yet retains simple least fixpoint semantics and admits optimization techniques such as semi-naïve evaluation and demand transformation. accomplishes this by generalizing the {\em or} and {\em and} operators of Datalog to addition and multiplication over a semiring. Finding a (minimal) fixpoint of a program is equivalent to finding a solution to a system of polynomial equations over the underlying semiring. Solving these systems of polynomial equations is not only a fundamental problem in the theory of , but also has many applications in computer science, such as in databases, program analysis, and optimization. This paper resolves a key open problem in the theory of : we prove a tight upper bound on the number of steps until convergence of iterative methods for solving these polynomial equation systems over a commutative -stable semiring. In particular, we show that the number of steps until convergence is where is the output size of the program. As the number of steps until convergence is only a proxy for the runtime of evaluation, we also consider the number of semiring operations used and show that, for a natural class of algorithms, is a tight upper bound, where is the maximum number of semiring operations per iteration.