mlsanityData to 14 Oct 2026

Polygon: Symbolic Reasoning for SQL using Conflict-Driven Under-Approximation Search

arXiv 2504.06542 ↗First posted 9 Apr 2025cs.PL cs.AI cs.DBcited by 0

On the map: LLM reasoning → Knowledge- and tool-augmented reasoning

Abstract (arXiv)

We present a novel symbolic reasoning engine for SQL which can efficiently generate an input I for n queries P1, cdots, Pn, such that their outputs on I satisfy a given property (expressed in SMT). This is useful in different contexts, such as disproving equivalence of two SQL queries and disambiguating a set of queries. Our first idea is to reason about an under-approximation of each Pi -- that is, a subset of Pi's input-output behaviors. While it makes our approach both semantics-aware and lightweight, this idea alone is incomplete (as a fixed under-approximation might miss some behaviors of interest). Therefore, our second idea is to perform search over an expressive family of under-approximations (which collectively cover all program behaviors of interest), thereby making our approach complete. We have implemented these ideas in a tool, Polygon, and evaluated it on over 30,000 benchmarks across two tasks (namely, SQL equivalence refutation and query disambiguation). Our evaluation results show that Polygon significantly outperforms all prior techniques.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Knowledge- and tool-augmented reasoning, one of 17 directions in LLM reasoning. Builds on 13 of its 69 references that are in the map. First posted on arXiv 9 Apr 2025.

Builds on

13 of 69 references.

References · 13

  1. 2016A Survey of Symbolic Execution Techniquescited by 36
  2. 2017Program Synthesis using Conflict-Driven Learningcited by 26
  3. 2018Axiomatic Foundations and Algorithms for Deciding Semantic Equivalences of SQL Queriescited by 11
  4. 2016HoTTSQL: Proving Query Rewrites with Univalent SQL Semanticscited by 10
  5. 2024VeriEQL: Bounded Equivalence Verification for Complex SQL Queries with Integrity Constraintscited by 8
  6. 2014Data Generation for Testing and Grading SQL Queriescited by 7
  7. 2023Hyper Hoare Logic: (Dis-)Proving Program Hyperproperties (extended version)cited by 3
  8. 2022CUBES: A Parallel Synthesizer for SQL Using Examplescited by 2
  9. 2016Beginner's Luck: A Language for Property-Based Generatorscited by 1
  10. 2018A True Positives Theorem for a Static Race Detector - Extended Versioncited by 1
  11. 2020Data Migration using Datalog Program Synthesiscited by 1
  12. 2020An Under-Approximate Relational Logic: Heralding Logics of Insecurity, Incorrect Implementation & Morecited by 1
1 more
  1. 2023Polymorphic Coverage Typescited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025SteinerSQL: Graph-Guided Mathematical Reasoning for Text-to-SQL Generation
  2. 2023LLM-SQL-Solver: Can LLMs Determine SQL Equivalence?
  3. 2024Enhancing SQL Query Generation with Neurosymbolic Reasoning
  4. 2026IESR:Efficient MCTS-Based Modular Reasoning for Text-to-SQL with Large Language Models
  5. 2026Learning When to Reason for Text-to-SQL via SFT and DPO
  6. 2025STaR-SQL: Self-Taught Reasoner for Text-to-SQL
  7. 2025JudgeSQL: Reasoning over SQL Candidates with Weighted Consensus Tournament
  8. 2026DecoSearch: Complexity-Aware Routing and Plan-Level Repair for Text-to-SQL