Skip to main content
QUICK REVIEW

[Paper Review] A Decidable Fragment of Second Order Logic With Applications to Synthesis

P. Madhusudan, Umang Mathur|arXiv (Cornell University)|Dec 15, 2017
Formal Methods in VerificationComputer Science2 references4 citations
TL;DR

This paper introduces EQSMT, a decidable fragment of many-sorted second-order logic with an ∃∗∀∗ quantifier prefix over first-order, relational, and functional variables. It enables synthesis of programs by reducing satisfiability to decidable ∃∗∀∗ queries over background theories like linear arithmetic, using black-box SMT solvers, thus providing a practical framework for automated program synthesis with decidability guarantees.

ABSTRACT

We propose a fragment of many-sorted second order logic called EQSMT and show that checking satisfiability of sentences in this fragment is decidable. EQSMT formulae have an $\exists^*\forall^*$ quantifier prefix (over variables, functions and relations) making EQSMT conducive for modeling synthesis problems. Moreover, EQSMT allows reasoning using a combination of background theories provided that they have a decidable satisfiability problem for the $\exists^*\forall^*$ FO-fragment (e.g., linear arithmetic). Our decision procedure reduces the satisfiability of EQSMT formulae to satisfiability queries of $\exists^*\forall^*$ formulae of each individual background theory, allowing us to use existing efficient SMT solvers supporting $\exists^*\forall^*$ reasoning for these theories; hence our procedure can be seen as effectively quantified SMT (EQSMT) reasoning. Errata: We have modified the transformation step-2 (page 9) to correct for a slight error. Also, the description above Theorem 10 is different from the published version.

Motivation & Objective

  • To develop a decidable second-order logic fragment suitable for expressing program synthesis problems.
  • To enable reasoning over combinations of background theories (e.g., linear arithmetic, real-closed fields) with decidable ∃∗∀∗ fragments.
  • To design a logic that supports both existentially and universally quantified second-order variables (relations and functions) while ensuring decidability.
  • To reduce EQSMT satisfiability to finitely many black-box calls to individual background theory solvers.
  • To provide a practical foundation for automated synthesis by integrating with existing SMT solvers.

Proposed method

  • Define EQSMT as a many-sorted logic with a foreground sort σ0 and background sorts σ1,…,σn, each equipped with a background theory Ti.
  • Restrict second-order variables: existentially quantified relations and functions are restricted to arguments and return types involving only the foreground sort σ0.
  • Ensure universes of background theories are disjoint and communicate only via the foreground sort, preserving decidability.
  • Transform EQSMT formulas into equivalent ∃∗∀∗ first-order formulas over individual background theories T1,…,Tn using logical reductions and sort-based constraints.
  • Reduce satisfiability of EQSMT to satisfiability of ∃∗∀∗ formulas in each background theory, enabling use of existing SMT solvers.
  • Use black-box calls to background theory solvers to check satisfiability of transformed formulas, ensuring modularity and efficiency.

Experimental results

Research questions

  • RQ1Can a decidable second-order logic fragment be designed that supports program synthesis and combines with background theories like linear arithmetic?
  • RQ2Is it possible to ensure decidability of second-order logic with ∃∗∀∗ quantifier prefixes while allowing rich second-order quantification over relations and functions?
  • RQ3How can communication between disjoint background theories be mediated through a foreground sort without breaking decidability?
  • RQ4Can the satisfiability of EQSMT formulas be reduced to satisfiability queries in individual background theories with decidable ∃∗∀∗ fragments?
  • RQ5To what extent can EQSMT be used to model and solve synthesis problems involving uninterpreted functions and arithmetic constraints?

Key findings

  • EQSMT is a decidable fragment of second-order logic with an ∃∗∀∗ quantifier prefix over first-order, relational, and functional variables.
  • The logic supports background theories such as Presburger arithmetic, real-closed fields, and linear real arithmetic, provided their ∃∗∀∗ fragments are decidable.
  • Satisfiability of EQSMT formulas reduces to finitely many satisfiability queries over individual background theories, enabling use of existing SMT solvers.
  • The decision procedure relies on black-box calls to background theory solvers, making it modular and practical for integration with current SMT technology.
  • The logic avoids undecidability by restricting second-order variable types and enforcing disjoint universes between background theories and the foreground sort.
  • The framework supports synthesis problems involving uninterpreted functions and arithmetic, offering a decidable alternative to undecidable second-order logic extensions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.