Lune

POPL2025Top-tier venue

Finite-Choice Logic Programming

Chris Martens, Robert J. Simmons, Michael Arntzenius

Abstract

Logic programming, as exemplified by datalog, defines the meaning of a program as its unique smallest model: the deductive closure of its inference rules. However, many problems call for an enumeration of models that vary along some set of choices while maintaining structural and logical constraints-there is no single canonical model. The notion of stable models for logic programs with negation has successfully captured programmer intuition about the set of valid solutions for such problems, giving rise to a family of programming languages and associated solvers known as answer set programming. Unfortunately, the definition of a stable model is frustratingly indirect, especially in the presence of rules containing free variables.

We propose a new formalism, finite-choice logic programming, that uses choice, not negation, to admit multiple solutions. Finite-choice logic programming contains all the expressive power of the stable model semantics, gives meaning to a new and useful class of programs, and enjoys a least-fixed-point interpretation over a novel domain. We present an algorithm for exploring the solution space and prove it correct with respect to our semantics. Our implementation, the Dusa logic programming language, has performance that compares favorably with state-of-the-art answer set solvers and exhibits more predictable scaling with problem size.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Semi-declarative Language for Combinatorial Search cites Better Together: Unifying Datalog and Equality Saturation
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. Semi-declarative Language for Combinatorial SearchZiyi Yang, Ilya SergeyOOPSLA 2026
  2. Universal Scalability in Declarative Program Analysis (with Choice-Based Combination Pruning)Anastasios Antoniadis, Ilias Tsatiris, Neville Grech, Yannis SmaragdakisOOPSLA 2025

Builds on4

  1. Better Together: Unifying Datalog and Equality SaturationYihong Zhang, Yisu Remy Wang, Oliver Flatt, David Cao et al.PLDI 2023 · 38 citations
  2. Fixpoints for the masses: programming with first-class Datalog constraintsMagnus Madsen, Ondrej LhotákOOPSLA 2020 · 22 citations
  3. Computing correctly with inductive relationsZoe Paraskevopoulou, Aaron Eline, Leonidas LampropoulosPLDI 2022 · 16 citations
  4. Parsing randomnessHarrison Goldstein, Benjamin C. PierceOOPSLA 2022 · 11 citations

Related papers

  1. Stable Model Semantics for Recursive SHACLMedina Andresel, Julien Corman, Magdalena Ortiz, Juan L. Reutter et al.WWW 2020 · 47 citations
  2. Logic.py: Bridging the Gap between LLMs and Constraint SolversPascal Kesseli, Peter W. O'Hearn, Ricardo Silveira CabralNeurIPS 2025 · 10 citations
  3. Temporal Constraint Satisfaction Problems in Fixed-Point LogicManuel Bodirsky, Wied Pakusa, Jakub RydvalLICS 2020 · 10 citations
  4. Enumerating Minimal Unsatisfiable Cores of LTLf FormulaeAntonio Ielo, Giuseppe Mazzotta, Rafael Peñaloza, Francesco RiccaAAAI 2026
  5. Query Answering with Guarded Existential Rules under Stable Model SemanticsHai Wan, Guohui Xiao, Chenglin Wang, Xianqiao Liu et al.AAAI 2020 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines