Lune

POPL2024Top-tier venue

Strong Invariants Are Hard: On the Hardness of Strongest Polynomial Invariants for (Probabilistic) Programs

Julian Müllner, Marcel Moosbrugger, Laura Kovács

Abstract

We show that computing the strongest polynomial invariant for single-path loops with polynomial assignments is at least as hard as the Skolem problem, a famous problem whose decidability has been open for almost a century. While the strongest polynomial invariants are computable for affine loops , for polynomial loops the problem remained wide open. As an intermediate result of independent interest, we prove that reachability for discrete polynomial dynamical systems is Skolem -hard as well. Furthermore, we generalize the notion of invariant ideals and introduce moment invariant ideals for probabilistic programs. With this tool, we further show that the strongest polynomial moment invariant is (i) uncomputable, for probabilistic loops with branching statements, and (ii) Skolem -hard to compute for polynomial probabilistic loops without branching statements. Finally, we identify a class of probabilistic loops for which the strongest polynomial moment invariant is computable and provide an algorithm for it.

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.

3 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

  • This is the moment for probabilistic loops cites Latticed k-Induction with an Application to Probabilistic Programs
  • Highly Incremental: A Simple Programmatic Approach for Many Objectives cites Latticed k-Induction with an Application to Probabilistic Programs
  • Highly Incremental: A Simple Programmatic Approach for Many Objectives cites This is the moment for probabilistic loops
  • Highly Incremental: A Simple Programmatic Approach for Many Objectives cites A Calculus for Amortized Expected Runtimes
  • Piecewise Analysis of Probabilistic Programs via 𝑘-Induction cites Latticed k-Induction with an Application to Probabilistic Programs
  • Piecewise Analysis of Probabilistic Programs via 𝑘-Induction cites This is the moment for probabilistic loops
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Simple Linear Loops: Algebraic Invariants and ApplicationsRida Ait El Manssour, George Kenison, Mahsa Shirmohammadi, Anton VaronkaPOPL 2025 · 2 citations
  2. Highly Incremental: A Simple Programmatic Approach for Many ObjectivesPhilipp Schröer, Joost-Pieter KatoenFM 2026 · 1 citation
  3. Piecewise Analysis of Probabilistic Programs via 𝑘-InductionTengshun Yang, Shenghua Feng, Hongfei Fu, Naijun Zhan et al.POPL 2026

Builds on6

  1. This is the moment for probabilistic loopsMarcel Moosbrugger, Miroslav Stankovic, Ezio Bartocci, Laura KovácsOOPSLA 2022 · 30 citations
  2. A Calculus for Amortized Expected RuntimesKevin Batz, Benjamin Lucien Kaminski, Joost-Pieter Katoen, Christoph Matheja et al.POPL 2023 · 22 citations
  3. Latticed k-Induction with an Application to Probabilistic ProgramsKevin Batz, Mingshuai Chen, Benjamin Lucien Kaminski, Joost-Pieter Katoen et al.CAV 2021 · 21 citations
  4. What's decidable about linear loops?Toghrul Karimov, Engel Lefaucheux, Joël Ouaknine, David Purser et al.POPL 2022 · 19 citations
  5. When Less Is More: Consequence-Finding in a Weak Theory of ArithmeticZachary Kincaid, Nicolas Koh, Shaowei ZhuPOPL 2023 · 8 citations

Related papers

  1. Porous InvariantsEngel Lefaucheux, Joël Ouaknine, David Purser, James WorrellCAV 2021 · 6 citations
  2. Sound and Complete Certificates for Quantitative Termination Analysis of Probabilistic ProgramsKrishnendu Chatterjee, Amir Kafshdar Goharshady, Tobias Meggendorfer, Dorde ZikelicCAV 2022 · 30 citations
  3. On the Complexity of the Skolem Problem at Low OrdersPiotr Bacik, Joël Ouaknine, James WorrellSODA 2026
  4. Solvable Polynomial Ideals: The Ideal Reflection for Program AnalysisJohn Cyphert, Zachary KincaidPOPL 2024 · 11 citations
  5. An Approximate Skolem Function CounterArijit Shaw, Brendan Juba, Kuldeep S. MeelAAAI 2024 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines