# Whiel: A Neurosymbolic Platform for Certified Relational Program Verification

arXiv: https://arxiv.org/abs/2611.05612 · HTML: https://mlsanity.com/paper/2611.05612/

## Key facts

- No citing papers in the map yet (data through 26 Nov 2026).
- Builds on 8 of its 61 references that are in the map.
- Submitted 3 Nov 2026.

## Builds on (most cited first, 8 of 8)

- [The Vadalog System: Datalog-based Reasoning for Knowledge Graphs](https://mlsanity.com/paper/1807.08709/) (2018)
- [VeriEQL: Bounded Equivalence Verification for Complex SQL Queries with Integrity Constraints](https://mlsanity.com/paper/2403.03193/) (2024)
- [Lobster: A GPU-Accelerated Framework for Neurosymbolic Programming](https://mlsanity.com/paper/2503.21937/) (2025)
- [GQL and SQL/PGQ: Theoretical Models and Expressive Power](https://mlsanity.com/paper/2409.01102/) (2024)
- [Graphiti: Bridging Graph and Relational Database Queries](https://mlsanity.com/paper/2504.03182/) (2025)
- [Verifying Equivalence of Database-Driven Applications](https://mlsanity.com/paper/1710.07660/) (2017)
- [On the automated verification of web applications with embedded SQL](https://mlsanity.com/paper/1610.02101/) (2016)
- [Logos: Certified Order-Sensitive SQL Rewrites with Mechanized Semantics and LLM Guidance](https://mlsanity.com/paper/2608.15709/) (2026)

## Abstract (arXiv)

We present the Whiel (a contraction of Whi(le-R)el) system for Lean-certified reasoning about imperative relational programs. The system can encode containment and equivalence problems for Datalog, its extensions with negation, and the core fragment of graph query languages. It can also represent optimized or incremental evaluation algorithms that are not expressible in the original query language, as well as first-order specifications of integrity constraints, schema mappings, and views arising in data integration, exchange, and sharing. Whiel's program states are database instances, and its imperative structure enables compositional Hoare-style reasoning with first-order relational specifications, using prophecy variables and leveled invariants to support inductive arguments. Whiel supports neurosymbolic discovery of loop invariants whose verification conditions can be checked using the Vampire first-order theorem prover. Counterexamples are fed back into the neurosymbolic pipeline, while proposed solutions are translated into Lean proof certificates. To validate the Whiel system, we evaluate its performance on a curated benchmark suite. In summary, we envision the Whiel system as a tool for tackling mathematically demanding, typically undecidable problems involving complex query and constraint languages, with a high degree of trust in its output.
