Lune

OOPSLA2025Top-tier venue

LOUD: Synthesizing Strongest and Weakest Specifications

Kanghee Park, Xuanyu Peng, Loris D'Antoni

Abstract

This paper tackles the problem of synthesizing specifications for nondeterministic programs. For such programs, useful specifications can capture demonic properties, which hold for every nondeterministic execution, but also angelic properties, which hold for some nondeterministic execution. We build on top of a recently proposed framework by Park et al. [37] in which given (i) a quantifier-free query ฮจ posed about a set of function definitions (i.e., the behavior for which we want to generate a specification), and (ii) a language L in which each extracted property is to be expressed (we call properties in the language L-properties), the goal is to synthesize a conjunction ๐‘– ๐œ‘ ๐‘– of L-properties such that each of the ๐œ‘ ๐‘– is a strongest L-consequence for ฮจ: ๐œ‘ ๐‘– is an over-approximation of ฮจ and there is no other L-property that over-approximates ฮจ and is strictly more precise than ๐œ‘ ๐‘– . This framework does not apply to nondeterministic programs for two reasons: it does not support existential quantifiers in queries (which are necessary to expressing nondeterminism) and it can only compute L-consequences, i.e., it is unsuitable for capturing both angelic and demonic properties.

This paper addresses these two limitations and presents a framework, loud, for synthesizing both strongest L-consequences and weakest L-implicants (i.e., under-approximations of the query ฮจ) for queries that can involve existential quantifiers. We devise algorithms for handling the quantifiers appearing in loud queries and implement them in a solver, aspire, for problems expressed in loud which can be used to describe and identify sources of bugs in both deterministic and nondeterministic programs, extract properties from concurrent programs, and synthesize winning strategies in two-player games.

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

  • Abstract interpretation repair cites Incorrectness logic
  • Nice to Meet You: Synthesizing Practical MLIR Abstract Transformers cites Synthesizing abstract transformers
  • Synthesizing abstract transformers cites Data-driven inference of representation invariants
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. Optimal Predicate Pushdown SynthesisRobert Zhang, Eric Hayden Campbell, Dixin Tang, Isil DilligPLDI 2026 ยท 1 citation
  2. Nice to Meet You: Synthesizing Practical MLIR Abstract TransformersXuanyu Peng, Dominic Kennedy, Yuyou Fan, Ben Greenman et al.POPL 2026

Builds on8

  1. Incorrectness logicPeter W. O'HearnPOPL 2020 ยท 122 citations
  2. Polynomial invariant generation for non-deterministic recursive programsKrishnendu Chatterjee, Hongfei Fu, Amir Kafshdar Goharshady, Ehsan Kafshdar GoharshadyPLDI 2020 ยท 46 citations
  3. Data-driven inference of representation invariantsAnders Miltner, Saswat Padhi, Todd D. Millstein, David WalkerPLDI 2020 ยท 33 citations
  4. Synthesizing abstract transformersPankaj Kumar Kalita, Sujit Kumar Muduli, Loris D'Antoni, Thomas W. Reps et al.OOPSLA 2022 ยท 21 citations
  5. Abstract interpretation repairRoberto Bruni, Roberto Giacobazzi, Roberta Gori, Francesco RanzatoPLDI 2022 ยท 15 citations

Related papers

  1. Synthesizing SpecificationsKanghee Park, Loris D'Antoni, Thomas W. RepsOOPSLA 2023 ยท 9 citations
  2. Bottom-up synthesis of recursive functional programs using angelic executionAnders Miltner, Adrian Trejo Nuรฑez, Ana Brendel, Swarat Chaudhuri et al.POPL 2022 ยท 38 citations
  3. Piecewise Analysis of Probabilistic Programs via ๐‘˜-InductionTengshun Yang, Shenghua Feng, Hongfei Fu, Naijun Zhan et al.POPL 2026
  4. Expecto: Extracting Formal Specifications from Natural Language Description for Trustworthy OraclesDongjae Lee, Kihong HeoPLDI 2026
  5. Specification synthesis with constrained Horn clausesSumanth Prabhu S, Grigory Fedyukovich, Kumar Madhukar, Deepak D'SouzaPLDI 2021 ยท 24 citations
Dusk over the sea between two cliffs drawn in fine vertical lines